Skip to content

zeroize v0.9.0 #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion secrecy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ travis-ci = { repository = "iqlusioninc/crates", branch = "develop" }

[dependencies]
serde = { version = "1", optional = true }
zeroize = { version = "0.8", path = "../zeroize", default-features = false }
zeroize = { version = "0.9", path = "../zeroize", default-features = false }
2 changes: 1 addition & 1 deletion subtle-encoding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ keywords = ["base64", "bech32", "constant-time", "hex", "security"]
[dependencies]
failure = { version = "0.1", default-features = false }
failure_derive = "0.1"
zeroize = { version = "0.8", default-features = false, optional = true, path = "../zeroize" }
zeroize = { version = "0.9", default-features = false, optional = true, path = "../zeroize" }

[features]
default = ["base64", "hex", "std"]
Expand Down
20 changes: 20 additions & 0 deletions zeroize/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [0.9.0] (2019-06-04)

**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`.

- Remove CPU fences ([#216])
- Remove scary language about undefined behavior ([#214])
- Bound blanket array impls on `Zeroize` instead of `DefaultIsZeroes` ([#213])
- Require `zeroize(drop)` or `zeroize(no_drop)` attributes when deriving
`Zeroize` ([#212]).
- Support stablized 'alloc' crate ([#192])

## [0.8.0] (2019-05-20)

- Impl `Drop` by default when deriving `Zeroize` ([#188])
Expand Down Expand Up @@ -64,6 +78,12 @@ a pure Rust solution.

- Initial release

[0.9.0]: https://github.com/iqlusioninc/crates/pull/215
[#216]: https://github.com/iqlusioninc/crates/pull/216
[#214]: https://github.com/iqlusioninc/crates/pull/214
[#213]: https://github.com/iqlusioninc/crates/pull/213
[#212]: https://github.com/iqlusioninc/crates/pull/212
[#192]: https://github.com/iqlusioninc/crates/pull/192
[0.8.0]: https://github.com/iqlusioninc/crates/pull/189
[#188]: https://github.com/iqlusioninc/crates/pull/188
[0.7.0]: https://github.com/iqlusioninc/crates/pull/186
Expand Down
4 changes: 2 additions & 2 deletions zeroize/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = """
Uses a portable pure Rust implementation that works everywhere,
even WASM!
"""
version = "0.8.0" # Also update html_root_url in lib.rs when bumping this
version = "0.9.0" # Also update html_root_url in lib.rs when bumping this
authors = ["Tony Arcieri <tony@iqlusion.io>"]
license = "Apache-2.0 OR MIT"
edition = "2018"
Expand All @@ -21,7 +21,7 @@ keywords = ["memory", "memset", "secure", "volatile", "zero"]
travis-ci = { repository = "iqlusioninc/crates", branch = "develop" }

[dependencies]
zeroize_derive = { version = "0.8", path = "../zeroize_derive", optional = true }
zeroize_derive = { version = "0.9", path = "../zeroize_derive", optional = true }

[features]
default = ["std", "zeroize_derive"]
Expand Down
5 changes: 1 addition & 4 deletions zeroize/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,6 @@
//! [core::sync::atomic]: https://doc.rust-lang.org/stable/core/sync/atomic/index.html
//! [Ordering::SeqCst]: https://doc.rust-lang.org/std/sync/atomic/enum.Ordering.html#variant.SeqCst
//! [compiler_fence]: https://doc.rust-lang.org/stable/core/sync/atomic/fn.compiler_fence.html
//! [memory-model]: https://github.com/nikomatsakis/rust-memory-model
//! [unordered]: https://llvm.org/docs/Atomics.html#unordered
//! [llvm-atomic]: https://github.com/rust-lang/rust/issues/58599
//! [pin]: https://doc.rust-lang.org/std/pin/struct.Pin.html
//! [good cryptographic hygiene]: https://cryptocoding.net/index.php/Coding_rules#Clean_memory_of_secret_data

Expand All @@ -207,7 +204,7 @@
unused_import_braces,
unused_qualifications
)]
#![doc(html_root_url = "https://docs.rs/zeroize/0.7.0")]
#![doc(html_root_url = "https://docs.rs/zeroize/0.9.0")]

#[cfg(all(feature = "alloc", not(feature = "std")))]
#[allow(unused_imports)] // rustc bug?
Expand Down
2 changes: 1 addition & 1 deletion zeroize_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zeroize_derive"
description = "Custom derive support for zeroize"
version = "0.8.0"
version = "0.9.0"
authors = ["Tony Arcieri <tony@iqlusion.io>"]
license = "Apache-2.0 OR MIT"
edition = "2018"
Expand Down