#fs #rename #io #sql #file #web #prelude

yanked dreams

web, fs, sql

0.0.1 Jul 23, 2023

#75 in #prelude

MIT license

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
~81K SLoC