Skip to content

Commit

Permalink
Swtich to embedded TLS roots instead of Native TLS (#193)
Browse files Browse the repository at this point in the history
Mac Native TLS takes a long time to load.
rustls/rustls-native-certs#30

This is an issue as some git operations spawn (sequentially) a large
number of git-xet subprocesses. This switches reqwest to using an
embedded Mozilla certificate roots. (webpki-roots crate). This reduces
push time by about 33%.
  • Loading branch information
ylow committed Nov 10, 2023
1 parent 1156eec commit a523637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust/gitxetcore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ mockall_double = "0.3"

# axe
sysinfo = "0.26.6"
reqwest = {version = "0.11.4", features = ["json"]}
reqwest = {version = "0.11.4", features = ["json", "webpki-roots"]}
serde_with = "1.6.1"
chrono = {version = "0.4.19", features = ["serde"] }

Expand Down
2 changes: 1 addition & 1 deletion rust/xetblob/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pointer_file = { path = "../pointer_file" }
mdb_shard = { path = "../mdb_shard"}
anyhow = "1"
url = "2.3"
reqwest = {version = "0.11.4"}
reqwest = {version = "0.11.4", features=["json","webpki-roots"]}
tracing = "0.1.*"
tokio = { version = "1", features = ["full"] }
serde = {version = "1.0.142", features = ["derive"] }
Expand Down

0 comments on commit a523637

Please sign in to comment.