Simple, fluent input for Rust CLI apps; easier to use unlike the standart std::io
.
use input::input;
fn main() {
let a: i32 = input("Enter i32: ").int();
let b: f64 = input("Enter f64: ").float();
let name = input("Enter name: ").string();
let agree = input("Agree? ").bool();
println!("{} {} {} {}", a, b, name, agree);
}
- Integers: * (signed/unsigned)
- Floats: * (32/64)
- Bool/Str