Skip to content

Commit

Permalink
put back rusttls, cleanup cargo config.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Mar 30, 2024
1 parent 5cae658 commit eab0693
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]

# [target.aarch64-unknown-linux-gnu]
# linker = "aarch64-linux-gnu-gcc"
18 changes: 9 additions & 9 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ serde_yaml = "0.9"
chrono = "0.4.35"
getrandom = { version = "0.2", features = ["js"] }
rand_core = { version = "0.6", features = ["std"] }
reqwest = { version = "0.12", default-features = false, features = ["native-tls"] }
reqwest = { version = "0.12", default-features = false }

# reqwest = { version = "0.11", features = ["rustls-tls"], default-features = false }
# rand = { version = "0.8", features = ["std_rng"], default-features = false }
Expand All @@ -45,12 +45,12 @@ futures = "0.3"
# The JSON-LD parser uses futures::block_on which creates conflict when running in tokio runtime

# Do not use rustls-tls on Windows aarch64 due to Ring dependency https://github.com/briansmith/ring/issues/1167
# [target.'cfg(all(windows, target_arch = "aarch64"))'.dependencies.reqwest]
# version = "0.12"
# default-features = false
# features = ["native-tls"]
[target.'cfg(all(windows, target_arch = "aarch64"))'.dependencies.reqwest]
version = "0.12"
default-features = false
features = ["native-tls"]

# [target.'cfg(not(all(windows, target_arch = "aarch64")))'.dependencies.reqwest]
# version = "0.12"
# default-features = false
# features = ["rustls-tls"]
[target.'cfg(not(all(windows, target_arch = "aarch64")))'.dependencies.reqwest]
version = "0.12"
default-features = false
features = ["rustls-tls"]

0 comments on commit eab0693

Please sign in to comment.