Skip to main content

Module utils

Module utils 

Source

Re-exports§

pub use env_secret::env_with_file_fallback;
pub use hex::to_hex;
pub use hex::to_hex_prefix;
pub use secret_file::expand_all_reddb_secrets;
pub use secret_file::expand_file_env;
pub use time::now_unix_millis;
pub use time::now_unix_nanos;
pub use time::now_unix_secs;

Modules§

env_secret
Env-var-with-_FILE-companion helper (PLAN.md Phase 6.4).
hex
Tiny hex encoder used wherever a byte slice needs to be rendered as a hex string. Centralised so the same bytes.iter().map(|b| format!("{:02x}", b)).collect() doesn’t get re-typed across the crate.
json
Minimal JSON parser and serializer with zero dependencies. Implements a subset of JSON sufficient for MCP message handling.
secret_file
*_FILE env-var expansion for containerised secret mounts.
time
Time helpers used across the engine. Centralised so the same SystemTime::now().duration_since(UNIX_EPOCH).unwrap_or_default() incantation doesn’t get re-typed at 20+ call sites.