Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 329 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 329 Bytes

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" }