Expand description
Derive macros for the bee-common crate.
Derive Macros§
- Derives an implementation of the trait
core::fmt::Debug
for a secret type that doesn’t leak its internal secret. Implements https://github.com/iotaledger/bee-rfcs/blob/master/text/0042-secret-debug-display.md. Based on https://github.com/dtolnay/syn/blob/master/examples/heapsize/heapsize_derive/src/lib.rs. - Derives an implementation of the trait
core::fmt::Display
for a secret type that doesn’t leak its internal secret. Implements https://github.com/iotaledger/bee-rfcs/blob/master/text/0042-secret-debug-display.md. Based on https://github.com/dtolnay/syn/blob/master/examples/heapsize/heapsize_derive/src/lib.rs. - Derives an implementation of the trait
core::ops::Drop
for a secret type that callsZeroize::zeroize
. Implements https://github.com/iotaledger/bee-rfcs/blob/master/text/0044-secret-zeroize-drop.md. Based on https://github.com/dtolnay/syn/blob/master/examples/heapsize/heapsize_derive/src/lib.rs.