use-stdout 0.0.1

Synchronous stdout primitives for RustUse CLI-adjacent code
Documentation
  • Coverage
  • 100%
    13 out of 13 items documented1 out of 9 items with examples
  • Size
  • Source code size: 6.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 416.88 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-cli
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-stdout

Synchronous stdout primitives for RustUse CLI-adjacent code.

This crate provides output destination markers, newline behavior helpers, and small write helpers. It does not provide a formatting framework.

Example

use use_stdout::{NewlineBehavior, apply_newline_behavior, write_text};

let output = apply_newline_behavior("ready", NewlineBehavior::EnsureTrailingNewline);
let mut buffer = Vec::new();
write_text(&mut buffer, &output)?;

assert_eq!(buffer, b"ready\n");
# Ok::<(), std::io::Error>(())

Scope

Use this crate for small output primitives, not application rendering policy.