#macro #rfc #stable #expr #2173

dbg

dbg!(expr, ..) macro from RFC 2173 in stable Rust

6 releases (stable)

Uses old Rust 2015

1.0.4 Jan 19, 2018
1.0.3 Oct 27, 2017
1.0.1 Oct 26, 2017
0.0.1 Oct 18, 2017

#823 in Debugging

Download history 700/week @ 2024-03-14 826/week @ 2024-03-21 996/week @ 2024-03-28 1129/week @ 2024-04-04 1222/week @ 2024-04-11 1048/week @ 2024-04-18 871/week @ 2024-04-25 845/week @ 2024-05-02 1024/week @ 2024-05-09 1090/week @ 2024-05-16 956/week @ 2024-05-23 1134/week @ 2024-05-30 1018/week @ 2024-06-06 913/week @ 2024-06-13 895/week @ 2024-06-20 585/week @ 2024-06-27

3,602 downloads per month
Used in 25 crates (2 directly)

MIT/Apache

13KB
206 lines

RFC 2173: The dbg!(expr, ..) macro

This 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.


lib.rs:

This crate provides a working implementation of RFC 2173 on stable Rust. For documentation, please see the guide-level explanation.

No runtime deps