Crates.io | RustInput |
lib.rs | RustInput |
version | 0.1.0 |
created_at | 2025-09-25 10:26:55.187264+00 |
updated_at | 2025-09-25 10:26:55.187264+00 |
description | A fluent CLI input crate for Rust, supporting all integer, float, bool, and string types; easier to use unlike the standard std::io |
homepage | |
repository | https://github.com/lilcloudcoder/RustInput |
max_upload_size | |
id | 1854459 |
size | 3,896 |
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);
}