Crates.io | dbg |
lib.rs | dbg |
version | 1.0.4 |
source | src |
created_at | 2017-10-18 22:41:45.688159 |
updated_at | 2018-01-19 03:37:11.011931 |
description | dbg!(expr, ..) macro from RFC 2173 in stable Rust |
homepage | |
repository | https://github.com/Centril/dbg |
max_upload_size | |
id | 36140 |
size | 25,605 |
dbg!(expr, ..)
macroThis crate provides a working implementation of RFC 2173 on stable Rust.
To use the crate, add this to Cargo.toml
:
[dependencies]
dbg = "1.0.4"
and to lib.rs
or main.rs
(the crate root):
#[macro_use] extern crate dbg;
Now you are ready to use the macro. Happy debugging!
If you are on nightly, the macro will automatically be built with the specialization features mandated by the RFC.
For more details and documentation, please see the guide-level explanation.