#cfg #test #experiment #behind #exporting #u64 #left

exp-cfg-test

experiment of exporting code behind #[cfg(test)]

2 releases

0.1.1 Nov 28, 2024
0.1.0 Nov 28, 2024

#3 in #behind

Download history 251/week @ 2024-11-25

251 downloads per month

MIT license

2KB

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.

No runtime deps