Skip to content

Commit

Permalink
fix: Switch to rust-tls for all web requests
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Jul 25, 2024
1 parent 9aa8c7d commit 707a256
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 160 deletions.
217 changes: 74 additions & 143 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ async-trait = "0.1.81"
chrono = { version = "0.4.38", features = ["serde"] }
clap = { version = "4.5.10", features = ["derive", "string"] }
croner = "2.0.5"
ctrlc = "3.4.4"
gix = { version = "0.64.0", features = ["blocking-http-transport-reqwest-rust-tls"] }
human-errors = "0.1.3"
opentelemetry = "0.24.0"
opentelemetry-otlp = { version = "0.17.0", default-features = false, features = ["trace", "http-json", "http-proto", "reqwest-rustls-webpki-roots"] }
opentelemetry_sdk = { version = "0.24.1", features = ["rt-tokio"] }
parse_link_header = "0.3.3"
reqwest = { version = "0.12.5", features = ["json", "rustls-tls"] }
reqwest = { version = "0.12.5", default-features = false, features = ["brotli", "charset", "http2", "json", "rustls-tls"] }
serde = { version = "1.0.204", features = ["derive", "alloc"] }
serde_yaml = "0.9.34"
tokio = { version = "1.39.1", features = ["macros", "rt", "rt-multi-thread"] }
Expand Down
8 changes: 1 addition & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,14 @@
inherit src;
strictDeps = true;

buildInputs = [
pkgs.pkg-config
pkgs.openssl
pkgs.protobuf
]
buildInputs = []
++ lib.optionals pkgs.stdenv.isDarwin [
pkgs.libiconv
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
];

# Additional environment variables can be set directly
# MY_CUSTOM_VAR = "some value";
OPENSSL_DIR = pkgs.openssl.dev;
OPENSSL_LIB_DIR = "${pkgs.openssl.out}/lib";
};

craneLibLLvmTools = craneLib.overrideToolchain
Expand Down
Loading

0 comments on commit 707a256

Please sign in to comment.