A handy rust macro to exclude debugging code from your release builds.
fnmain(){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" }