if_debug 0.1.0

A handy rust macro to exclude debugging code from your release builds.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 1.77 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 240.05 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • sd-collins/if_debug
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sd-collins

if_debug

A handy rust macro to exclude debugging code from your release builds.

Example

fn main() {
  if_debug!(println!("We're debugging!"));
}

Install

Add the following line to your Cargo.toml file under [dependencies]:

if_debug = { git = "https://github.com/Humandoodlebug/if_debug" }