dev_util

Crates.iodev_util
lib.rsdev_util
version0.1.2
sourcesrc
created_at2023-01-06 15:03:37.853623
updated_at2023-01-07 09:49:18.739562
descriptionSome development tools
homepage
repositoryhttps://github.com/zgj0315/dev_util/
max_upload_size
id752344
size5,227
光建 (zgj0315)

documentation

https://docs.rs/dev_util

README

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");
    }
}

Commit count: 6

cargo fmt