#user-input #input #stdlib #stdin #easy

bin+lib keyezinput

Rust library that facilitates ask a keyboard user input ⌨️

2 releases

0.1.21 Mar 24, 2022
0.1.3 Mar 30, 2022
0.1.2 Mar 24, 2022

#17 in #easy

Custom license

4KB

EZInput - For user keyboar input ⌨️

About

EZInput is a library that implements an easy and fast way to take user input from terminal.

Use

1.- You must add this to your cargo.toml, in dependencies section

keyezinput = "0.1.3"

2.- And finally implements in your code like this:

use keyezinput;

fn main(){
    let input: String = keyezinput::input::input_line("Foo input: ");

    println!("Foo output: {}", input);
}

The output would be like this:

Foo input: bar keyboard
Foo output: bar keyboard

Change Log

[v0.1.3 - 22.03]

  • Patched user input that have to extra chars that difficulties the parse to another type

I hope you liked ❤️

Special greeting to you, that watch this repo 😄


lib.rs:

Fast and easy way to ask keyboard user input

Provides an easy way to take user input from the std buffer

No runtime deps