if_debug

Crates.ioif_debug
lib.rsif_debug
version0.1.0
sourcesrc
created_at2021-10-18 15:49:05.892104
updated_at2021-10-18 15:49:05.892104
descriptionA handy rust macro to exclude debugging code from your release builds.
homepage
repositoryhttps://github.com/Humandoodlebug/if_debug
max_upload_size
id466857
size2,090
Samuel Collins (Humandoodlebug)

documentation

README

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" }
Commit count: 4

cargo fmt