rust/hgcli/Cargo.toml
branchstable
changeset 44729 26ce8e751503
parent 35569 964212780daf
parent 44639 bc847878f4c0
child 45685 57b5452a55d5
--- a/rust/hgcli/Cargo.toml	Mon Apr 13 16:30:13 2020 +0300
+++ b/rust/hgcli/Cargo.toml	Thu Apr 16 22:51:09 2020 +0530
@@ -1,35 +1,24 @@
 [package]
 name = "hgcli"
 version = "0.1.0"
+build = "build.rs"
 authors = ["Gregory Szorc <gregory.szorc@gmail.com>"]
+edition = "2018"
 license = "GPL-2.0"
-
-build = "build.rs"
+readme = "README.md"
 
 [[bin]]
 name = "hg"
 path = "src/main.rs"
 
-[features]
-# localdev: detect Python in PATH and use files from source checkout.
-default = ["localdev"]
-localdev = []
-
 [dependencies]
-libc = "0.2.34"
+jemallocator-global = { version = "0.3", optional = true }
+pyembed = { git = "https://github.com/indygreg/PyOxidizer.git", rev = "c772a1379c3026314eda1c8ea244b86c0658951d", default-features=false }
 
-# We currently use a custom build of cpython and python27-sys with the
-# following changes:
-# * GILGuard call of prepare_freethreaded_python() is removed.
-# TODO switch to official release when our changes are incorporated.
-[dependencies.cpython]
-version = "0.1"
-default-features = false
-features = ["python27-sys"]
-git = "https://github.com/indygreg/rust-cpython.git"
-rev = "c90d65cf84abfffce7ef54476bbfed56017a2f52"
-
-[dependencies.python27-sys]
-version = "0.1.2"
-git = "https://github.com/indygreg/rust-cpython.git"
-rev = "c90d65cf84abfffce7ef54476bbfed56017a2f52"
+[features]
+default = ["build-mode-pyoxidizer-exe"]
+jemalloc = ["jemallocator-global", "pyembed/jemalloc"]
+build-mode-pyoxidizer-exe = ["pyembed/build-mode-pyoxidizer-exe"]
+build-mode-prebuilt-artifacts = ["pyembed/build-mode-prebuilt-artifacts"]
+cpython-link-unresolved-static = ["pyembed/cpython-link-unresolved-static"]
+cpython-link-default = ["pyembed/cpython-link-default"]