4 releases

0.0.3 Apr 19, 2023
0.0.2 Apr 15, 2023
0.0.1 Apr 15, 2023
0.0.0 Apr 13, 2023

#659 in Procedural macros

Download history 8/week @ 2024-02-17 10/week @ 2024-02-24 8/week @ 2024-03-02 4/week @ 2024-03-09 51/week @ 2024-03-30 47/week @ 2024-04-06 89/week @ 2024-04-13

187 downloads per month

MIT/Apache

3KB

turbo-crates

A set of useful crates (WIP)

Included crates

testing_proc_macros - Used to make testing more predictable

Include:

turbo-crates = { version="0.0.3", features=["testing_proc_macros"] }
use turbo_crates::testing::proc_macros::*;

Use:

#[cfg(test)]
#[safe_tests]
pub(crate) mod test {
    const TEST_ENV_VAR: &str = "TEST_ENV_VAR";

    #[test]
    #[safe_test]
    fn main_it_works1() {
        std::env::set_var(TEST_ENV_VAR, "test1");
        let test_value = std::env::var(TEST_ENV_VAR).unwrap();
        assert_eq!(test_value, "test1");
    }
    // ...
}

Dependencies

~125KB