| Crates.io | dbg_mac |
| lib.rs | dbg_mac |
| version | 0.1.2 |
| created_at | 2022-12-10 08:58:12.563251+00 |
| updated_at | 2022-12-10 09:03:29.308314+00 |
| description | Handy debug only macros. |
| homepage | https://github.com/IsaccBarker/dbg_mac |
| repository | https://github.com/IsaccBarker/dbg_mac |
| max_upload_size | |
| id | 733777 |
| size | 41,445 |
dbg_mac is a Rust crate that provides macros that are only compiled in if debug symbols are
present.
Below are examples of every macro implemented in this crate:
// std::unimplemented, but only if built with debug assertions.
dbg_unimplemented!();
// std::unreachable, but only if built with debug assertions.
dbg_unreachable!();
// std::todo, but only if built with debug assertions.
dbg_todo!();
// std::panic, but only if built with debug assertions.
dbg_panic!();
// std::compile_error, but only if built with debug assertions.
dbg_compile_error!();
// Will print "Hello, debug!", but only if built with debug assertions.
if_dbg!(println!("Hello, debug!"));
Milo Banks