simple_input 0.4.0

A simple crate for handling user input, inspired by Python
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented2 out of 2 items with examples
  • Size
  • Source code size: 1.92 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.01 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bcamp1

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);
}