Skip to content

Commit

Permalink
Merge pull request #247 from iqlusioninc/zeroize/disable-custom-deriv…
Browse files Browse the repository at this point in the history
…e-by-default

zeroize: Disable `zeroize_derive` feature by default
  • Loading branch information
tony-iqlusion committed Aug 19, 2019
2 parents 03d62b4 + 4302ac0 commit c4c3af3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
5 changes: 4 additions & 1 deletion zeroize/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ travis-ci = { repository = "iqlusioninc/crates", branch = "develop" }
zeroize_derive = { version = "0.9", path = "../zeroize_derive", optional = true }

[features]
default = ["alloc", "zeroize_derive"]
default = ["alloc"]
alloc = []

[package.metadata.docs.rs]
all-features = true
11 changes: 6 additions & 5 deletions zeroize/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ and [core::sync::atomic] memory fences to provide easy-to-use, portable
zeroing behavior which works on all of Rust's core number types and slices
thereof, implemented in pure Rust with no usage of FFI or assembly.

- **No insecure fallbacks!**
- **No dependencies!**
- **No FFI or inline assembly!**
- `#![no_std]` **i.e. embedded-friendly**!
- **No functionality besides securely zeroing memory!**
- No insecure fallbacks!
- No dependencies!
- No FFI or inline assembly! **WASM friendly** (and tested)!
- `#![no_std]` i.e. **embedded-friendly**!
- No functionality besides securely zeroing memory!
- (Optional) Custom derive support for zeroing complex structures

## Requirements

Expand Down
7 changes: 5 additions & 2 deletions zeroize/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
//! - No FFI or inline assembly! **WASM friendly** (and tested)!
//! - `#![no_std]` i.e. **embedded-friendly**!
//! - No functionality besides securely zeroing memory!
//! - (Optional) Custom derive support for zeroing complex structures
//!
//! ## Usage
//!
Expand Down Expand Up @@ -52,8 +53,10 @@
//!
//! ## Custom Derive Support
//!
//! This crate has custom derive support for the `Zeroize` trait, which
//! automatically calls `zeroize()` on all members of a struct or tuple struct.
//! This crate has custom derive support for the `Zeroize` trait,
//! gated under the `zeroize` crate's `zeroize_derive` Cargo feature,
//! which automatically calls `zeroize()` on all members of a struct
//! or tuple struct.
//!
//! Additionally it supports the following attribute:
//!
Expand Down

0 comments on commit c4c3af3

Please sign in to comment.