scanf 1.2.1

Parse text inputs (inverse of print! and format!)
Documentation

Scanf

If you know it from C, same functionality but with memory safety.

let mut number: u32 = 0;
let mut name: String = String::new();
if scanf!("{},{}", number, name).is_ok() {
    println!("Input is: {} and {}", number, name);
}
let input = "5,something";
let mut number: u32 = 0;
let mut name: String = String::new();
if let Err(error) = sscanf!(input, "{},{}", number, name) {
    panic!("Error {} using sscanf!", error);
}

Look more examples in the documentation.