pistonite-cu 0.8.2

Battery-included common utils to speed up development of rust tools
Documentation
use pistonite_cu as cu;

#[cu::cli]
fn main(_: cu::cli::Flags) -> cu::Result<()> {
    let mut src = cu::fs::walk("src")?;
    cu::cli::set_thread_name("walk");
    while let Some(entry) = src.next() {
        let entry = entry?;
        cu::info!(
            "{} {} {}",
            entry.depth,
            entry.path().display(),
            entry.rel_path().display(),
        )
    }

    cu::cli::set_thread_name("glob");
    let glob = cu::fs::glob_from("..", "./**/*.rs")?;
    for entry in glob {
        let entry = entry?;
        cu::info!("{}", entry.display());
    }

    Ok(())
}