boot_input 0.1.0

A simple Rust crate to read input from the user in common formats
Documentation
  • Coverage
  • 14.29%
    1 out of 7 items documented0 out of 6 items with examples
  • Size
  • Source code size: 2.94 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 260.83 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bootloader-23

input_helper

A lightweight Rust crate to simplify reading user input from the command line.

Features

  • read_string()
  • read_char()
  • read_int()
  • read_u64()
  • read_float()
  • read_double()

Example

use input_helper::*;

fn main() {
    let name = read_string();
    let age = read_int();
    let grade = read_float();

    println!(\"Name: {}, Age: {}, Grade: {}\", name, age, grade);
}