Derive macros for the bee-common crate.
SecretDebug | Derives an implementation of the trait std::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 std::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 std::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.
|