| Crates.io | debug-message |
| lib.rs | debug-message |
| version | 1.2.0 |
| created_at | 2022-09-23 16:06:33.811735+00 |
| updated_at | 2022-09-23 21:38:58.552837+00 |
| description | Print debug messages if the DEBUG environment variable is set |
| homepage | https://github.com/Ernest1338/debug-message |
| repository | https://github.com/Ernest1338/debug-message |
| max_upload_size | |
| id | 672576 |
| size | 4,090 |
Print debug messages if the DEBUG environment variable is set
use debug_message::debug;
fn main() {
println!("this will be printed every time");
debug("this will only be printed if the DEBUG env var is set");
}
For more code examples check out the usage.rs example.
This project is distributed under the MIT license.