difftreelog
refactor init rustls in jrb binary instead
in: master
4 files changed
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2392,6 +2392,7 @@
dependencies = [
"clap",
"jrsonnet-pkg",
+ "rustls",
"serde",
"serde_json",
"tracing",
@@ -2578,7 +2579,6 @@
"gix",
"peg",
"reqwest",
- "rustls",
"serde",
"serde_json",
"thiserror",
cmds/jrb/Cargo.tomldiffbeforeafterboth--- a/cmds/jrb/Cargo.toml
+++ b/cmds/jrb/Cargo.toml
@@ -18,3 +18,8 @@
serde_json.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
+
+# jrsonnet-pkg wants a rustls provider.
+# ring is not ideal and not recommended by rustls authors... But is easiest to build,
+# and there should be little risk for bundling use case
+rustls = { workspace = true, features = ["ring"] }
cmds/jrb/src/main.rsdiffbeforeafterboth108fn main() {108fn main() {109 tracing_subscriber::fmt().init();109 tracing_subscriber::fmt().init();110111 rustls::crypto::ring::default_provider()112 .install_default()113 .expect("install rustls crypto provider");110114111 let opts = Opts::parse();115 let opts = Opts::parse();112116crates/jrsonnet-pkg/Cargo.tomldiffbeforeafterboth--- a/crates/jrsonnet-pkg/Cargo.toml
+++ b/crates/jrsonnet-pkg/Cargo.toml
@@ -26,9 +26,5 @@
url.workspace = true
camino.workspace = true
-# ring is not ideal and not recommended by rustls authors... But is easiest to build,
-# and there should be little risk for bundling use case
-rustls = { workspace = true, features = ["ring"] }
-
# Global cache dir
directories.workspace = true