All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
NOTE: yanked because #900 bumped MSRV to 1.60, which vioates our MSRV policy.
Zeroize
for MaybeUninit
(#900)cfg
s on SIMD type impls (#930)serde
support (#780)tests/
(#771)ZeroizeOnDrop
on DerefMut
(#739)AssertZeroizeOnDrop
(#725)mut
on AssertZeroizeOnDrop
(#719)Zeroize
impls for PhantomData
, PhantomPinned
, and tuples with 0-10 elements (#660)#[zeroize(bound = "T: MyTrait")]
(#663)ZeroizeOnDrop
trait and custom derive (#699, #700, #703)Zeroize
for NonZeroX
RustCrypto/utils
repositoryDefault
on Zeroizing
[MaybeUninit<Z>]
NOTE: This release includes an MSRV bump to Rust 1.51. Please use zeroize = "1.3.0"
if you would like to support older Rust versions.
Zeroize
for [Z; N]
; MSRV 1.51Zeroizing::clone_from
now zeroizes the destination before cloningZeroize
for Box<[Z]>
Option
is None
when zeroizedZeroize
support for x86(_64) SIMD registersString::zeroize
doc_cfg
String
Vec
TryZeroize
traitFrom<Z: Zeroize>
impl for Zeroizing<Z>
bytes-preview
featureno_drop
attribute supportbytes
feature to bytes-preview
Zeroize
trait bounds for Vec
Clone
, Debug
, and Eq
for Zeroizing
Vec
trait bounds for Zeroize
Zeroize
for Bytes
and BytesMut
Barring unforeseen circumstances, this release aims to be the last 0.x
release prior to a zeroize
1.0 release.
zeroize_derive
Cargo feature by defaultstd
feature in favor of alloc
; MSRV 1.36+#[zeroize(no_drop)]
attributeproc-macro2
, quote
, and syn
cratesZeroize
for Option<Z: Zeroize>
NOTICE: This release changes the default behavior of derive(Zeroize)
to no longer derive a Drop
impl. If you wish to derive Drop
, you must now explicitly add a #[zeroize(drop)]
attribute on the type for which you are deriving Zeroize
.
Zeroize
instead of DefaultIsZeroes
zeroize(drop)
or zeroize(no_drop)
attributes when deriving Zeroize
.Drop
by default when deriving Zeroize
DefaultIsZeroes
nightly
featureZeroizing<Z>
to zeroize values on dropZeroize
ZeroizeWithDefault
to DefaultIsZeroes
debug_assert!
to ensure string interiors are zeroizedThis release is a rewrite which replaces FFI bindings to OS-specific APIs with a pure Rust solution.
core::sync::atomic
fencescore::ptr::write_volatile
Zeroize
trait on concrete typessecure_zero_memory
with Zeroize
Zeroize
trait