From 1878f0cdea4bdda34ab8abde5365682540058bde Mon Sep 17 00:00:00 2001 From: arcnmx Date: Mon, 31 Jul 2017 01:13:37 -0400 Subject: [PATCH] remove python features, leave up to dependent crates --- Cargo.toml | 5 ----- examples/ec2-regions/Cargo.toml | 6 ++---- examples/echo/Cargo.toml | 5 ++++- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 32d0fcf..c11f659 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,8 +14,3 @@ exclude = [".gitignore", "builder", "examples"] serde_json = "1.0" cpython = { version = "0.1", default-features = false } cpython-json = { version = "0.2", default-features = false } - -[features] -default = ["python3-sys"] -python27-sys = ["cpython/python27-sys", "cpython-json/python27-sys"] -python3-sys = ["cpython/python3-sys", "cpython-json/python3-sys"] diff --git a/examples/ec2-regions/Cargo.toml b/examples/ec2-regions/Cargo.toml index dc0b1d4..6bbaeb9 100644 --- a/examples/ec2-regions/Cargo.toml +++ b/examples/ec2-regions/Cargo.toml @@ -10,12 +10,10 @@ crate-type = ["cdylib"] [dependencies] # Normally you'd write: crowbar = "0.2" -crowbar = { path = "../..", version = "0.2", default-features = false } +crowbar = { path = "../..", version = "0.2" } cpython = { version = "0.1", default-features = false } rusoto_core = "0.25" rusoto_ec2 = "0.25" [features] -default = ["python3-sys"] -python27-sys = ["crowbar/python27-sys", "cpython/python27-sys"] -python3-sys = ["crowbar/python3-sys", "cpython/python3-sys"] +default = ["cpython/python3-sys"] diff --git a/examples/echo/Cargo.toml b/examples/echo/Cargo.toml index 32f3684..4f975a7 100644 --- a/examples/echo/Cargo.toml +++ b/examples/echo/Cargo.toml @@ -11,4 +11,7 @@ crate-type = ["cdylib"] [dependencies] # Normally you'd write: crowbar = "0.2" crowbar = { path = "../..", version = "0.2" } -cpython = "0.1" +cpython = { version = "0.1", default-features = false } + +[features] +default = ["cpython/python3-sys"]