Skip to content

Commit

Permalink
secrecy: rework the SecretBox type (#1140)
Browse files Browse the repository at this point in the history
Redefines `SecretBox` as a struct containing `Box<S>` with the same impls as `Secret`.
  • Loading branch information
fjarri authored Jan 19, 2024
1 parent 038ef52 commit f98d4cc
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 306 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

7 changes: 1 addition & 6 deletions secrecy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,11 @@ edition = "2021"
rust-version = "1.60"

[dependencies]
zeroize = { version = "1.6", default-features = false }
zeroize = { version = "1.6", default-features = false, features = ["alloc"] }

# optional dependencies
bytes = { version = "1", optional = true }
serde = { version = "1", optional = true }

[features]
default = ["alloc"]
alloc = ["zeroize/alloc"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
10 changes: 0 additions & 10 deletions secrecy/src/boxed.rs

This file was deleted.

95 changes: 0 additions & 95 deletions secrecy/src/bytes.rs

This file was deleted.

Loading

0 comments on commit f98d4cc

Please sign in to comment.