Expand description
§use-stderr
Synchronous stderr primitives for RustUse CLI-adjacent code.
This crate provides error output destination markers and basic write helpers. It does not provide a logging framework.
§Example
use use_stderr::write_error_line;
let mut buffer = Vec::new();
write_error_line(&mut buffer, "warning")?;
assert_eq!(buffer, b"warning\n");§Scope
Use this crate for explicit stderr writes, not logging or diagnostics policy.
Modules§
- prelude
- Commonly used stderr primitives.
Structs§
- Stderr
Destination - Marker type for the process standard error stream.
Functions§
- write_
error - Writes error text to a generic writer.
- write_
error_ line - Writes error text plus one newline to a generic writer.
- write_
stderr - Writes text to process stderr.
- write_
stderr_ line - Writes text plus one newline to process stderr.