Skip to main content

aperture_cli/
lib.rs

1pub mod agent;
2pub mod atomic;
3pub mod batch;
4pub mod cache;
5pub mod cli;
6pub mod config;
7pub mod constants;
8pub mod docs;
9pub mod duration;
10pub mod engine;
11pub mod error;
12pub mod fs;
13pub mod interactive;
14pub mod invocation;
15pub mod logging;
16pub mod output;
17pub mod pagination;
18pub mod resilience;
19pub mod response_cache;
20pub mod search;
21pub mod shortcuts;
22pub mod spec;
23pub mod suggestions;
24pub mod utils;
25
26// Unit tests in src/ call reqwest::Client directly and have no access to
27// tests/test_helpers.rs. This block installs the platform provider once per
28// unit-test binary so those clients don't hit reqwest's no-provider panic.
29#[cfg(test)]
30mod test_crypto_init {
31    #[ctor::ctor]
32    fn init() {
33        #[cfg(not(windows))]
34        let _ = rustls::crypto::ring::default_provider().install_default();
35        #[cfg(windows)]
36        let _ = rustls::crypto::aws_lc_rs::default_provider().install_default();
37    }
38}