3 releases

0.1.2 Jan 7, 2023
0.1.1 Jan 6, 2023
0.1.0 Jan 6, 2023

#567 in Debugging


Used in 3 crates

Custom license

5KB
62 lines

dev_util

Some development tools

Usage Examples

log_init

Add this to your Cargo.toml:

[dependencies]
log = "0.4"

[dev-dependencies]
dev_util = "0.1"
#[cfg(test)]
mod tests {
    use dev_util::log::log_init;
    #[test]
    fn it_works() {
        log::info!("log is't initialized, you can't see me");
        log_init();
        log::info!("log is initialized");
    }
}


lib.rs:

dev_util

Some development tools

Usage Examples

log_init

Add this to your Cargo.toml:

[dependencies]
log = "0.4"

[dev-dependencies]
dev_util = "0.1"
#[cfg(test)]
mod tests {
    use dev_util::log::log_init;
    #[test]
    fn it_works() {
        log::info!("log is't initialized, you can't see me");
        log_init();
        log::info!("log is initialized");
    }
}

Dependencies

~2.5MB
~41K SLoC