mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +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
22 lines
529 B
TOML
22 lines
529 B
TOML
[package]
|
|
name = "cpython-ext"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
|
|
[features]
|
|
default = ["python2"]
|
|
python2 = ["python27-sys", "cpython/python27-sys"]
|
|
python3 = ["python3-sys", "cpython/python3-sys"]
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.20"
|
|
cpython = { version = "0.4", default-features = false }
|
|
encoding = { path = "../encoding" }
|
|
lazy_static = "1"
|
|
parking_lot = "0.9"
|
|
python27-sys = { version = "0.4", optional = true }
|
|
python3-sys = { version = "0.4", optional = true }
|
|
serde = "1"
|
|
thiserror = "1.0.5"
|
|
types = { path = "../types" }
|