fsn

Crates.iofsn
lib.rsfsn
version0.1.4
sourcesrc
created_at2022-09-12 21:03:05.13861
updated_at2022-11-25 12:05:43.904025
descriptionFile Structure Notation (.fsn) format parser
homepage
repository
max_upload_size
id664003
size5,545
Viktor Dudnik (0x07C0)

documentation

README

File Structure Notation

File Structure Notation (.fsn) format parser

Install

$ cargo add fsn

or add fsn = "0.1.4" to [dependencies] in Cargo.toml

Examples

match parse_file(Path::new("./examples/c.fsn")){
    Ok(s) => {
        for dir in s.directories {
            println!("Dir: {dir}")
        }
        for file in s.files {
            println!("File: {}", file.name);
           println!("{}", file.contents)
        }
    },
    Err(e) => println!("err {e}")
}
Commit count: 0

cargo fmt