Skip to content

Commit

Permalink
fix: rustls-tls feature
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Sep 26, 2023
1 parent 2a9705a commit 3aa5655
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 4 deletions.
103 changes: 103 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions crates/index/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,20 @@ edition.workspace = true
readme.workspace = true
rust-version.workspace = true

[features]
default = ["native-tls"]
native-tls = ['rattler_installs_packages/native-tls', 'rip/native-tls']
rustls-tls = ['rattler_installs_packages/rustls-tls', 'rip/rustls-tls']

[dependencies]
clap = { version = "4.4.5", features = ["derive"] }
dirs = "5.0.1"
indexmap = "2.0.0"
indicatif = "0.17.7"
miette = { version = "5.10.0", features = ["fancy"] }
rand = "0.8.5"
rattler_installs_packages = { path = "../rattler_installs_packages" }
rip = { path = "../rip" }
rattler_installs_packages = { path = "../rattler_installs_packages", default-features = false }
rip = { path = "../rip", default-features = false }
rusqlite = { version = "0.29.0", features = ["bundled"] }
serde_json = "1.0.107"
tokio = { version = "1.32.0", features = ["rt", "macros", "rt-multi-thread"] }
Expand Down
9 changes: 7 additions & 2 deletions crates/rip/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ license.workspace = true
readme.workspace = true
default-run = "rip"

[features]
default = ["native-tls"]
native-tls = ['reqwest/native-tls', 'rattler_installs_packages/native-tls']
rustls-tls = ['reqwest/rustls-tls', 'rattler_installs_packages/rustls-tls']

[dependencies]
clap = { version = "4.4.5", features = ["derive"] }
console = { version = "0.15.7", features = ["windows-console-colors"] }
Expand All @@ -20,8 +25,8 @@ indicatif = "0.17.7"
itertools = "0.11.0"
miette = { version = "5.10.0", features = ["fancy"] }
rand = "0.8.5"
rattler_installs_packages = { path = "../rattler_installs_packages" }
reqwest = "0.11.20"
rattler_installs_packages = { path = "../rattler_installs_packages", default-features = false }
reqwest = { version = "0.11.20", default-features = false }
resolvo = "0.1.0"
rusqlite = { version = "0.29.0", features = ["bundled"] }
serde = "1.0.188"
Expand Down

0 comments on commit 3aa5655

Please sign in to comment.