debug_print

Crates.iodebug_print
lib.rsdebug_print
version1.0.0
sourcesrc
created_at2020-08-11 14:52:31.851645
updated_at2020-08-11 14:52:31.851645
descriptionprint only in debug build
homepage
repositoryhttps://github.com/RustyNixieTube/debug_print
max_upload_size
id275374
size5,476
(RustyNixieTube)

documentation

https://docs.rs/debug_print

README

crates.io Documentation License License line

debug_print

Examples

use debug_print::{debug_print, debug_println, debug_eprint, debug_eprintln};

let x = 5 * 2;

debug_println!("x = {}", x);
debug_print!("x");
debug_print!(" = ");
debug_print!("{}", x);
debug_eprintln!("I'm printing to the Standard Error");
debug_eprint!("I'm printing to the Standard Error");

If you don't like the names of the macros.

use debug_print::{
    debug_print as dprint,
    debug_println as dprintln,
    debug_eprint as deprint,
    debug_eprintln as deprintln,
};

let x = 5 * 2;

dprintln!("x = {}", x);
dprint!("x");
dprint!(" = ");
dprint!("{}", x);
deprintln!("I'm printing to the Standard Error");
deprint!("I'm printing to the Standard Error");

License

Licensed under either of Apache License Version 2.0 or MIT license at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 7

cargo fmt