sv-filelist-parser 0.1.3

A library to parse a SystemVerilog Filelist and return a list of files, include directories and defines
Documentation
  • Coverage
  • 100%
    8 out of 8 items documented1 out of 1 items with examples
  • Size
  • Source code size: 14.97 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 390.51 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 20s Average build duration of successful builds.
  • all releases: 20s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • supleed2/sv-filelist-parser
    2 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • supleed2

SystemVerilog Filelist Parser

A library in Rust to parse a SystemVerilog Filelist and return a list of files, include directories and defines.

Environment variables optionally enclosed in paranthesis or curly braces (i.e. $, $() or ${}) will be automatically substituted.

Example

use sv_filelist_parser;
let filelist = sv_filelist_parser::parse_file("testcase/files.f")
    .expect("Cannot read filelist");
for file in filelist.files {
    println!("{:?}", file);
}
for incdir in filelist.incdirs {
    println!("{:?}", incdir);
}
for (d, t) in filelist.defines {
    match t {
        None => println!("{:?}", d),
        Some(te) => println!("{:?}={:?}", d, te),
    };
}