exp-cfg-test 0.1.1

experiment of exporting code behind #[cfg(test)]
Documentation
  • Coverage
  • 33.33%
    1 out of 3 items documented1 out of 3 items with examples
  • Size
  • Source code size: 1.65 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • kanarus/exp-cfg-test
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kanarus

This crate's lib.rs is:

pub fn add(left: u64, right: u64) -> u64 {
    left + right
}

#[cfg(debug_assertions)]
pub fn debug_add(left: u64, right: u64) {
    dbg!(add(left, right));
}

#[cfg(test)]
pub fn test_add(left: u64, right: u64, expected: u64) {
    assert_eq!(add(left, right), expected);
}

Check what items are available by user.