svault-ai 1.0.0

Secret access layer for cooperative AI agents — structured, policy-gated, audited credential access
Documentation
1
2
3
4
5
6
7
8
9
10
//! A single process-wide lock for tests that change the current working
//! directory. The working directory is global to the process, so any two tests
//! that `set_current_dir` must be serialized against *each other* — separate
//! per-module mutexes would not do that. Every chdir-based test (keyring,
//! master) takes this one lock.
#![cfg(test)]

use std::sync::Mutex;

pub static CWD_LOCK: Mutex<()> = Mutex::new(());