use-stdin 0.0.1

Synchronous stdin primitives for RustUse CLI-adjacent code
Documentation
  • Coverage
  • 100%
    8 out of 8 items documented1 out of 7 items with examples
  • Size
  • Source code size: 4.86 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 343.09 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s 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-stdin

Synchronous stdin primitives for RustUse CLI-adjacent code.

This crate provides small read helpers and marker types. It does not assume an async runtime or interactive UI framework.

Example

use std::io::Cursor;
use use_stdin::read_to_string_from;

let input = read_to_string_from(Cursor::new("hello"))?;

assert_eq!(input, "hello");
# Ok::<(), std::io::Error>(())

Scope

Use this crate for testable, synchronous stdin-adjacent helpers.