mirror of
https://github.com/facebook/sapling.git
synced 2024-12-27 23:22:02 +03:00
1e63f205f4
Summary: Set up the `cpython-ext` and `hgcommands` libraries so that they can compile against py2 and py3 versions of rust-cpython. Make py2 the default so that cargo test still works. Reviewed By: singhsrb Differential Revision: D19615656 fbshipit-source-id: 3403e7077deb3c0a9dfe0e3b7d4f4ad1da73bba3
38 lines
1.4 KiB
TOML
38 lines
1.4 KiB
TOML
[package]
|
|
name = "hgcommands"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
|
|
[features]
|
|
default = ["python2"]
|
|
python2 = ["bindings/python2", "pytracing/python2", "python27-sys", "cpython-ext/python2", "cpython/python27-sys"]
|
|
python3 = ["bindings/python3", "pytracing/python3", "python3-sys", "cpython-ext/python3", "cpython/python3-sys"]
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.20"
|
|
bindings = { path = "../../edenscmnative/bindings", default-features = false }
|
|
blackbox = { path = "../blackbox" }
|
|
clidispatch = { path = "../clidispatch" }
|
|
cliparser = { path = "../cliparser", features = ["python"] }
|
|
cpython-ext = { path = "../cpython-ext", default-features = false }
|
|
cpython = { version = "0.4", default-features = false }
|
|
edenapi = { path = "../edenapi" }
|
|
edenfs-client = { path = "../edenfs-client"}
|
|
encoding = { path = "../encoding" }
|
|
flate2 = "1"
|
|
hgtime = { path = "../hgtime"}
|
|
indexedlog = { path = "../indexedlog" }
|
|
libc = "0.2"
|
|
mincode = { path = "../mincode"}
|
|
parking_lot = "0.9"
|
|
procinfo = { path = "../procinfo"}
|
|
python27-sys = { version = "0.4", optional = true }
|
|
python3-sys = { version = "0.4", optional = true }
|
|
pytracing = { path = "../../edenscmnative/bindings/modules/pytracing", default-features = false }
|
|
revisionstore = { path = "../revisionstore"}
|
|
tracing = "0.1"
|
|
tracing-collector = { path = "../tracing-collector" }
|
|
types = { path = "../types" }
|
|
util = { path = "../util" }
|
|
zstd = "0.4"
|