nobb
Silence all console output by redirecting stdout and stderr to the null device.
Usage
Add to your Cargo.toml:
[]
= "0.1"
Example:
Notes
- Works by calling
libc::freopento redirect OS-level streams to the null device. - On Unix, uses
/dev/null; on Windows, usesNUL. - This affects the entire process; subsequent
println!/eprintln!from any crate will be silenced.
License
MIT © 2025