Skip to content

Commit f98d4cc

Browse files
authored
secrecy: rework the SecretBox type (#1140)
Redefines `SecretBox` as a struct containing `Box<S>` with the same impls as `Secret`.
1 parent 038ef52 commit f98d4cc

File tree

7 files changed

+109
-306
lines changed

7 files changed

+109
-306
lines changed

Cargo.lock

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

secrecy/Cargo.toml

+1-6
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,11 @@ edition = "2021"
1818
rust-version = "1.60"
1919

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

2323
# optional dependencies
24-
bytes = { version = "1", optional = true }
2524
serde = { version = "1", optional = true }
2625

27-
[features]
28-
default = ["alloc"]
29-
alloc = ["zeroize/alloc"]
30-
3126
[package.metadata.docs.rs]
3227
all-features = true
3328
rustdoc-args = ["--cfg", "docsrs"]

secrecy/src/boxed.rs

-10
This file was deleted.

secrecy/src/bytes.rs

-95
This file was deleted.

0 commit comments

Comments
 (0)