Skip to main content

envvault/
lib.rs

1#[cfg(feature = "audit-log")]
2pub mod audit;
3
4#[cfg(not(feature = "audit-log"))]
5pub mod audit {
6    //! No-op audit stub when the `audit-log` feature is disabled.
7    pub fn log_audit(
8        _cli: &crate::cli::Cli,
9        _op: &str,
10        _key: Option<&str>,
11        _details: Option<&str>,
12    ) {
13    }
14
15    pub fn log_read_audit(
16        _cli: &crate::cli::Cli,
17        _op: &str,
18        _key: Option<&str>,
19        _details: Option<&str>,
20    ) {
21    }
22
23    pub fn log_auth_failure(_cli: &crate::cli::Cli, _details: &str) {}
24}
25
26pub mod cli;
27pub mod config;
28pub mod crypto;
29pub mod errors;
30pub mod git;
31pub mod vault;
32pub mod version_check;
33
34#[cfg(feature = "keyring-store")]
35pub mod keyring;