Skip to content

Commit

Permalink
Update dependencies in Cargo.toml to disable default features for req…
Browse files Browse the repository at this point in the history
…west and add new feature flags for OpenSSL and Rustls. This enhances control over the used TLS implementation.
  • Loading branch information
aalkhodiry committed Dec 17, 2024
1 parent 36f3a7b commit f5e48ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ travis-ci = { repository = "ipinfo/rust", branch = "master" }
codecov = { repository = "ipinfo/rust", branch = "master", service = "github" }

[dependencies]
reqwest = { version = "0.11", features = ["json"] }
reqwest = { version = "0.11", features = ["json"], default-features = false }
lru = "0.12.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand All @@ -36,3 +36,8 @@ tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
[profile.release]
overflow-checks = true
lto = true

[features]
default = ["openssl"]
rustls-tls = ["reqwest/rustls-tls"]
openssl = ["reqwest/native-tls"]

0 comments on commit f5e48ab

Please sign in to comment.