Skip to content

Commit

Permalink
fix(turborepo): Add TLS Crate Feature (vercel#3548)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang authored Jan 31, 2023
1 parent 7b4cf1e commit f4872ea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/turborepo-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ version = "0.1.0"
edition = "2021"
license = "MPL-2.0"

[features]
# Allows configuring a specific tls backend for reqwest.
# See top level Cargo.toml for more details.
native-tls = ["reqwest/native-tls"]
rustls-tls = ["reqwest/rustls-tls"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dev-dependencies]
assert_cmd = "2.0.7"
Expand All @@ -28,7 +34,7 @@ indicatif = "0.17.3"
lazy_static = "1.4.0"
log = "0.4.17"
predicates = "2.1.1"
reqwest = { version = "0.11.14", features = ["json"] }
reqwest = { version = "0.11.14", default_features = false, features = ["json"] }
rustc_version_runtime = "0.2.1"
semver = "1.0"
serde = { version = "1.0.145", features = ["derive"] }
Expand Down
4 changes: 4 additions & 0 deletions crates/turborepo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ version = "0.1.0"
edition = "2021"
license = "MPL-2.0"

[features]
native-tls = ["turborepo-lib/native-tls"]
rustls-tls = ["turborepo-lib/rustls-tls"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
build-target = "0.4.0"
Expand Down

0 comments on commit f4872ea

Please sign in to comment.