| Crates.io | keyezinput |
| lib.rs | keyezinput |
| version | 0.1.3 |
| created_at | 2022-03-24 19:19:05.863293+00 |
| updated_at | 2022-03-30 19:00:52.205703+00 |
| description | Rust library that facilitates ask a keyboard user input ⌨️ |
| homepage | |
| repository | https://github.com/NexCreep/EZInput |
| max_upload_size | |
| id | 555884 |
| size | 4,930 |
EZInput is a library that implements an easy and fast way to take user input from terminal.
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
[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 😄