3 stable releases
1.1.6 | May 18, 2023 |
---|---|
1.1.0 |
|
1.0.8 |
|
1.0.1 |
|
0.1.0 |
|
#529 in Filesystem
149 downloads per month
84KB
2.5K
SLoC
Example
File System
use stools::prelude::*;
fn main() -> std::io::Result<()> {
let mut f = FileInfo::open_or_create("foo.txt")?;
f.rename("new_name")?;
println!("{}", f.full_name());
Ok(())
}
IO
use stools::io::Console;
fn main() -> stools::io::Result<()> {
let mut console = Console::new();
let n = console.input::<i32>("input a number: ")?;
Ok(())
}