Skip to main content

Crate use_stderr

Crate use_stderr 

Source
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§

StderrDestination
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.