diff --git a/crates/rattler-bin/Cargo.toml b/crates/rattler-bin/Cargo.toml index af427f1b2..ff98b02fd 100644 --- a/crates/rattler-bin/Cargo.toml +++ b/crates/rattler-bin/Cargo.toml @@ -16,8 +16,8 @@ path = "src/main.rs" [features] default = ["native-tls"] -native-tls = ["reqwest/native-tls", "rattler/native-tls", "rattler_repodata_gateway/native-tls"] -rustls-tls = ["reqwest/rustls-tls", "rattler/rustls-tls", "rattler_repodata_gateway/rustls-tls"] +native-tls = ["reqwest/native-tls", "rattler/native-tls", "rattler_repodata_gateway/native-tls", "rattler_networking/native-tls"] +rustls-tls = ["reqwest/rustls-tls", "rattler/rustls-tls", "rattler_repodata_gateway/rustls-tls", "rattler_networking/rustls-tls"] [dependencies] anyhow = "1.0.71" @@ -29,7 +29,7 @@ indicatif = "0.17.5" itertools = "0.10.5" once_cell = "1.18.0" rattler = { version = "0.2.0", path = "../rattler", default-features = false } -rattler_networking = { version = "0.2.0", path = "../rattler_networking" } +rattler_networking = { version = "0.2.0", path = "../rattler_networking", default-features = false } rattler_conda_types = { version = "0.2.0", path = "../rattler_conda_types" } rattler_repodata_gateway = { version = "0.2.0", path = "../rattler_repodata_gateway", features = ["sparse"], default-features = false } rattler_solve = { version = "0.2.0", path = "../rattler_solve" } diff --git a/crates/rattler/Cargo.toml b/crates/rattler/Cargo.toml index db02e5a59..cb0320c66 100644 --- a/crates/rattler/Cargo.toml +++ b/crates/rattler/Cargo.toml @@ -34,7 +34,7 @@ once_cell = "1.18.0" pin-project-lite = "0.2.9" rattler_conda_types = { version = "0.2.0", path = "../rattler_conda_types" } rattler_digest = { version = "0.2.0", path = "../rattler_digest" } -rattler_networking = { version = "0.2.0", path = "../rattler_networking" } +rattler_networking = { version = "0.2.0", path = "../rattler_networking", default-features = false } rattler_package_streaming = { version = "0.2.0", path = "../rattler_package_streaming", features = ["reqwest", "tokio"], default-features = false } regex = "1.8.4" reqwest = { version = "0.11.18", default-features = false, features = ["stream", "json", "gzip"] } diff --git a/crates/rattler_networking/Cargo.toml b/crates/rattler_networking/Cargo.toml index e056eae76..8bb52e7c6 100644 --- a/crates/rattler_networking/Cargo.toml +++ b/crates/rattler_networking/Cargo.toml @@ -10,6 +10,10 @@ repository.workspace = true license.workspace = true readme.workspace = true +[features] +native-tls = ['reqwest/native-tls'] +rustls-tls = ['reqwest/rustls-tls'] + [dependencies] anyhow = "1.0.71" dirs = "5.0.1" diff --git a/crates/rattler_package_streaming/Cargo.toml b/crates/rattler_package_streaming/Cargo.toml index 8f9c765d5..6bcfb65dd 100644 --- a/crates/rattler_package_streaming/Cargo.toml +++ b/crates/rattler_package_streaming/Cargo.toml @@ -26,7 +26,7 @@ reqwest = { version = "0.11.18", optional = true, default-features = false } url = "2.4.0" zip = { version = "0.6.6" } zstd = "0.12.3" -rattler_networking = { version = "0.2.0", path = "../rattler_networking" } +rattler_networking = { version = "0.2.0", path = "../rattler_networking", default-features = false } [features] default = ['native-tls'] diff --git a/crates/rattler_repodata_gateway/Cargo.toml b/crates/rattler_repodata_gateway/Cargo.toml index ee23f1eb3..19caf14df 100644 --- a/crates/rattler_repodata_gateway/Cargo.toml +++ b/crates/rattler_repodata_gateway/Cargo.toml @@ -40,7 +40,7 @@ superslice = { version = "1.0.0", optional = true } itertools = { version = "0.10.5", optional = true } json-patch = "1.0.0" hex = { version = "0.4.3", features = ["serde"] } -rattler_networking = { version = "0.2.0", path = "../rattler_networking" } +rattler_networking = { version = "0.2.0", path = "../rattler_networking", default-features = false } [target.'cfg(unix)'.dependencies] libc = "0.2"