sinput 0.1.5

A simple CLI tool with short functions naming that asks for user input in meaningful way
Documentation
  • Coverage
  • 93.75%
    15 out of 16 items documented0 out of 15 items with examples
  • Size
  • Source code size: 6.75 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.41 MB 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
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • islamuddin

Short Input (sinput)

A simple CLI tool with short functions naming that asks for user input in meaningful way. Get your required rust input using short functions.

Help

If you run into any issues or need help with using sinput in your project please email uddinislam46@gmail.com

Why you need it

When writing programs you will often need to take input from the user. User have to perform serveral things to get input ready with long names.

sinput attempts to make it easy to get input from the user without having to think about converting types or about long names.

How to use

Add

sinput = "0.1"

to your cargo.toml under [dependencies] and add

extern crate sinput;

to your main file.


You can get input with.

as_f32("any message here");

Where as_i32 is the type you want. This currently includes the standard library types isize, usize, i8, u8, i16, u16, f32, i32, u32, f64, i64, u64, i128, u128, and String.

For example, if you want to assign a valid unsigned 32bit value to a variable called input, you could write.

let input = as_f32("Enter your f32 input:");