#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

#746 in Debugging

Download history 846/week @ 2023-12-13 486/week @ 2023-12-20 362/week @ 2023-12-27 566/week @ 2024-01-03 787/week @ 2024-01-10 772/week @ 2024-01-17 753/week @ 2024-01-24 676/week @ 2024-01-31 963/week @ 2024-02-07 1146/week @ 2024-02-14 787/week @ 2024-02-21 755/week @ 2024-02-28 941/week @ 2024-03-06 758/week @ 2024-03-13 742/week @ 2024-03-20 767/week @ 2024-03-27

3,369 downloads per month
Used in 26 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