cnsl
cnsl
is a crate for writing to the standard output, standard error, and reading from standard input.
This crate is lightly coded, and also requires no external dependencies.
Usage
readln macro
// without a prompt
use readln;
// with a prompt
use readln;
// with a formatted prompt
// note: defaults are not actually supported, this is just a demonstration
use readln;
const DEFAULT_AGE: u8 = 18;
Information
License
This software is licensed under the WTFPL.