Expand description
§CIO - Console I/O for Rust
CIO provides two procedural macros (printf! and input!) that improve
console input/output operations in Rust, bringing Python’s convenience
to Rust’s safely typed environment.
§Features
§printf!
An enhanced formatted display macro that allows for better visualization of complex data structures such as multidimensional arrays.
use cio::printf;
let arr = vec![vec![1, 2], vec![3, 4]];
printf!("Array: {arr:a}");§input!
A user input macro with built-in type validation.
use cio::input;
let number: i32 = input!("Enter a number: ");