Registry / utility / text-io

text-io

JSON →
library0.1.13rscratesunverified

Really simple to use panicking input functions.

# Cargo.toml [dependencies] text_io = "0.1.13"
INSTALL
IMPORT
SIG · TEXT-IO
T
text-io
utilityrustv0.1.13
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

read
use text_io::read;

Reads a line of input from stdin.

use text_io::read; fn main() { let name: String = read!("Enter your name: "); println!("Hello, {}!", name); }
Debug
Known issues
gotchaPanics on invalid input or EOF; not suitable for robust applications.
fix
Use std::io::BufRead or a proper input library like dialoguer.
affects: *
Upgrade
Version history
0.1.13latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
text-io — cargo add text-io · libregistry