8 releases
0.0.8 | Jul 23, 2023 |
---|---|
0.0.7 | Jul 22, 2023 |
0.0.3 | Jun 5, 2023 |
0.0.1 | May 25, 2023 |
#1314 in Filesystem
86 downloads per month
90KB
3K
SLoC
Example
File System
use iofs::prelude::*;
fn main() -> std::io::Result<()> {
let mut f = FileInfo::open_smart("foo.txt")?;
f.rename("new_name")?;
assert!(f.name(), "new_name.txt");
Ok(())
}
IO
use iofs::io::Console;
fn main() -> stools::io::Result<()> {
let mut console = Console::new();
let n = console.input::<i32>(Some("input a number: "))?;
Ok(())
}
Dependencies
~0–9MB
~84K SLoC