git.delta.rocks / jrsonnet / refs/commits / 8e03fa373e9c

difftreelog

refactor init rustls in jrb binary instead

sklkyrqwYaroslav Bolyukin2026-05-08parent: #b5082ff.patch.diff
in: master

4 files changed

modifiedCargo.lockdiffbeforeafterboth
2392dependencies = [2392dependencies = [
2393 "clap",2393 "clap",
2394 "jrsonnet-pkg",2394 "jrsonnet-pkg",
2395 "rustls",
2395 "serde",2396 "serde",
2396 "serde_json",2397 "serde_json",
2397 "tracing",2398 "tracing",
2578 "gix",2579 "gix",
2579 "peg",2580 "peg",
2580 "reqwest",2581 "reqwest",
2581 "rustls",
2582 "serde",2582 "serde",
2583 "serde_json",2583 "serde_json",
2584 "thiserror",2584 "thiserror",
modifiedcmds/jrb/Cargo.tomldiffbeforeafterboth
19tracing.workspace = true19tracing.workspace = true
20tracing-subscriber.workspace = true20tracing-subscriber.workspace = true
21
22# jrsonnet-pkg wants a rustls provider.
23# ring is not ideal and not recommended by rustls authors... But is easiest to build,
24# and there should be little risk for bundling use case
25rustls = { workspace = true, features = ["ring"] }
2126
modifiedcmds/jrb/src/main.rsdiffbeforeafterboth
108fn main() {108fn main() {
109 tracing_subscriber::fmt().init();109 tracing_subscriber::fmt().init();
110
111 rustls::crypto::ring::default_provider()
112 .install_default()
113 .expect("install rustls crypto provider");
110114
111 let opts = Opts::parse();115 let opts = Opts::parse();
112116
modifiedcrates/jrsonnet-pkg/Cargo.tomldiffbeforeafterboth
26url.workspace = true26url.workspace = true
27camino.workspace = true27camino.workspace = true
28
29# ring is not ideal and not recommended by rustls authors... But is easiest to build,
30# and there should be little risk for bundling use case
31rustls = { workspace = true, features = ["ring"] }
3228
33# Global cache dir29# Global cache dir
34directories.workspace = true30directories.workspace = true