aube-util 1.10.4

Shared helpers reused across aube crates (semantic hashing, async dedup, atomic filesystem ops, bincode sidecars).
Documentation
1
2
3
4
5
6
7
8
9
10
//! Crate-shared test helper for serializing env-mutating tests.
//!
//! Rust 2024's `unsafe { std::env::set_var }` reflects the libc
//! reality: setenv/getenv are not thread-safe across each other
//! because setenv can realloc the environ pointer. Tests in this
//! crate that touch the process environment all acquire `ENV_LOCK`
//! to serialize against the parallel test runner.

#[cfg(test)]
pub(crate) static ENV_LOCK: std::sync::Mutex<()> = std::sync::Mutex::new(());