| 1 | // Copyright (c) 2022 Harry [Majored] [[email protected]] |
| 2 | // MIT License (https://github.com/Majored/rs-async-zip/blob/main/LICENSE) |
| 3 | |
| 4 | pub(crate) mod combined; |
| 5 | pub(crate) mod read; |
| 6 | pub(crate) mod spec; |
| 7 | pub(crate) mod write; |
| 8 | |
| 9 | use std::sync::Once; |
| 10 | static ENV_LOGGER: Once = Once::new(); |
| 11 | |
| 12 | /// Initialize the env logger for any tests that require it. |
| 13 | /// Safe to call multiple times. |
| 14 | fn init_logger() { |
| 15 | ENV_LOGGER.call_once(|| env_logger::Builder::from_default_env().format_module_path(true).init()); |
| 16 | } |