Skip to content

Commit

Permalink
expose reqwest tls features (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Apr 25, 2023
1 parent 9f59b7a commit 905ccaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/rattler_package_streaming/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tar = { version = "0.4.38" }
bzip2 = { version = "0.4" }
zip = { version = "0.6.3" }
zstd = "0.12.1"
reqwest = { version = "0.11.13", optional = true }
reqwest = { version = "0.11.13", optional = true, default-features = false }
tokio = { version = "1", optional = true }
tokio-util = { version = "0.7", optional = true }
futures-util = { version = "0.3.25", optional = true }
Expand All @@ -27,7 +27,10 @@ url = "2.3.1"
chrono = "0.4.24"

[features]
default = ['native-tls']
tokio = ["dep:tokio", "bzip2/tokio", "tokio/fs", "tokio-util/io", "tokio-util/io-util", "reqwest?/stream", "futures-util"]
native-tls = ['reqwest?/native-tls']
rustls-tls = ['reqwest?/rustls-tls']
reqwest = ["reqwest/blocking"]

[dev-dependencies]
Expand Down
3 changes: 3 additions & 0 deletions crates/rattler_repodata_gateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@ tokio = { version = "1.12.0", features = ["macros", "rt-multi-thread"] }
rstest = "0.17.0"

[features]
default = ['native-tls']
native-tls = ['reqwest/native-tls']
rustls-tls = ['reqwest/rustls-tls']
sparse = ["rattler_conda_types", "memmap2", "ouroboros", "serde_with", "superslice", "itertools"]

0 comments on commit 905ccaf

Please sign in to comment.