simple_input

Crates.iosimple_input
lib.rssimple_input
version0.4.0
sourcesrc
created_at2018-12-02 04:27:41.262514
updated_at2018-12-02 04:44:02.260985
descriptionA simple crate for handling user input, inspired by Python
homepage
repository
max_upload_size
id99619
size2,297
Branson Camp (bcamp1)

documentation

README

Simple Input

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);
}
Commit count: 0

cargo fmt