| Crates.io | simple_input |
| lib.rs | simple_input |
| version | 0.4.0 |
| created_at | 2018-12-02 04:27:41.262514+00 |
| updated_at | 2018-12-02 04:44:02.260985+00 |
| description | A simple crate for handling user input, inspired by Python |
| homepage | |
| repository | |
| max_upload_size | |
| id | 99619 |
| size | 2,297 |
simple_input provides a simple way to ask for user input, inspired by Python's input function.
It only has one function, input(prompt: &str) -> String
extern crate simple_input;
use simple_input::input;
fn main() {
let name = input("What is your name? ");
println!("Hello {}!", name);
}