Crates.io | if_debug |
lib.rs | if_debug |
version | 0.1.0 |
source | src |
created_at | 2021-10-18 15:49:05.892104 |
updated_at | 2021-10-18 15:49:05.892104 |
description | A handy rust macro to exclude debugging code from your release builds. |
homepage | |
repository | https://github.com/Humandoodlebug/if_debug |
max_upload_size | |
id | 466857 |
size | 2,090 |
A handy rust macro to exclude debugging code from your release builds.
fn main() {
if_debug!(println!("We're debugging!"));
}
Add the following line to your Cargo.toml
file under [dependencies]
:
if_debug = { git = "https://github.com/Humandoodlebug/if_debug" }