RustInput

Crates.ioRustInput
lib.rsRustInput
version0.1.0
created_at2025-09-25 10:26:55.187264+00
updated_at2025-09-25 10:26:55.187264+00
descriptionA fluent CLI input crate for Rust, supporting all integer, float, bool, and string types; easier to use unlike the standard std::io
homepage
repositoryhttps://github.com/lilcloudcoder/RustInput
max_upload_size
id1854459
size3,896
Yogya (LilCloudCoder)

documentation

README

Fluent Input 🦀

Simple, fluent input for Rust CLI apps; easier to use unlike the standart std::io.


Usage

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);
}

Types Supported:

  • Integers: * (signed/unsigned)
  • Floats: * (32/64)
  • Bool/Str
Commit count: 8

cargo fmt