inpupy 0.1.1

Tiny Python-like input macro for Rust
Documentation
/// Tiny Python-like input macro for Rust.
///
/// Example:
/// ```
/// use inpupy::input;
///
/// fn main() {
///     let name = input!("Enter your name: ");
///     println!("Hello {}", name);
/// }
/// ```
#[macro_export]
macro_rules! input {
    () => {{
        let mut temp_input = String::new();

        std::io::stdin()
            .read_line(&mut temp_input)
            .expect("Failed to read input");

        temp_input.trim().to_string()
    }};

    ($expression:expr) => {{
        use std::io::Write;

        print!("{}", $expression);
        std::io::stdout().flush().unwrap();

        input!()
    }};
}