drcov 0.1.0

a rust library for parsing and writing DrCov coverage files.
Documentation
  • Coverage
  • 66.07%
    37 out of 56 items documented1 out of 27 items with examples
  • Size
  • Source code size: 150.06 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 969.1 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • redthing1/drcov-rs
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • redthing1

drcov-rs

a rust library for parsing and writing DrCov coverage files.

usage

use drcov::{CoverageData, ModuleTableVersion};

// read a file
let coverage = drcov::from_file("coverage.drcov")?;

// create coverage data
let new_coverage = CoverageData::builder()
    .flavor("my_tool")
    .module_version(ModuleTableVersion::V4)
    .add_module("/bin/program", 0x400000, 0x450000)
    .add_coverage(0, 0x1000, 32)
    .build()?;

// write to a file
drcov::to_file(&new_coverage, "output.drcov")?;

demo

cargo run --bin drcov-read --features cli -- file.drcov --detailed