sapling/eden/scm/lib/hgcommands/Cargo.toml
Mark Thomas 1e63f205f4 rust-cpython: allow compilation for both py2 and py3
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
2020-01-28 20:17:20 -08:00

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"