Skip to content

Commit f2a0f9e

Browse files
committed
chore: Add nss initialization for various CLIs
1 parent 8cd9268 commit f2a0f9e

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/relevancy-cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ places = { path = "../../components/places" }
1616
relevancy = { path = "../../components/relevancy" }
1717
anyhow = "1.0"
1818
sync15 = { path = "../../components/sync15" }
19+
nss = { version = "0.1.0", path = "../../components/support/rc_crypto/nss" }

examples/relevancy-cli/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ struct Cli {
3636

3737
fn main() -> Result<()> {
3838
let cli = Cli::parse();
39+
nss::ensure_initialized();
3940
viaduct_reqwest::use_reqwest_backend();
4041
if let Some(dir) = std::path::PathBuf::from(CREDENTIALS_PATH).parent() {
4142
std::fs::create_dir_all(dir)?;

examples/suggest-cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ clap = {version = "4.2", features = ["derive"]}
1414
suggest = { path = "../../components/suggest" }
1515
anyhow = "1.0"
1616
env_logger = { version = "0.10", default-features = false, features = ["humantime"] }
17+
nss = { version = "0.1.0", path = "../../components/support/rc_crypto/nss" }

examples/suggest-cli/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ fn main() -> Result<()> {
116116
DEFAULT_LOG_FILTER
117117
},
118118
));
119+
nss::ensure_initialized();
119120
viaduct_reqwest::use_reqwest_backend();
120121
let store = build_store(&cli)?;
121122
match cli.command {

0 commit comments

Comments
 (0)