Skip to main content

xianyun_pki/truststore/
mod.rs

1//! Rust port of `internal/truststore`.
2//!
3//! Platform-specific trust store management. `system_darwin` and
4//! `system_linux` are gated by `target_os`, mirroring the `//go:build`
5//! constraints on their Go counterparts.
6
7pub mod command_runner;
8#[cfg(test)]
9mod helpers;
10mod install;
11mod nss;
12// `supersede` is cross-platform in the Go original (no `//go:build` tag) and
13// has its own unit tests that run on every platform. The `superseded`
14// function is only *called* from the darwin store, so on non-macOS builds it
15// is exercised only by its tests.
16mod supersede;
17#[cfg(target_os = "macos")]
18mod system_darwin;
19#[cfg(target_os = "linux")]
20mod system_linux;
21
22pub use command_runner::{CmdError, CommandRunner};
23pub use install::{TrustError, install, uninstall};