Crate bee_common_derive

Crate bee_common_derive 

Source
Expand description

Derive macros for the bee-common crate.

Derive Macros§

SecretDebug
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.
SecretDisplay
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.
SecretDrop
Derives an implementation of the trait core::ops::Drop for a secret type that calls Zeroize::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.