Skip to content

Commit

Permalink
pkcs12: make zeroize dependency optional (#1564)
Browse files Browse the repository at this point in the history
Only the `kdf` feature uses it
  • Loading branch information
tarcieri authored Oct 9, 2024
1 parent 8ea8180 commit 24fc0eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkcs12/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ spki = { version = "0.8.0-rc.0" }
x509-cert = { version = "=0.3.0-pre.0", default-features = false, features = ["pem"] }
const-oid = { version = "0.10.0-rc.0", features = ["db"] }
cms = "=0.3.0-pre.0"

# optional dependencies
digest = { version = "0.11.0-pre.9", features = ["alloc"], optional = true }
zeroize = "1.8.1"
zeroize = { version = "1.8.1", optional = true, default-features = false }

[dev-dependencies]
hex-literal = "0.4"
Expand All @@ -32,7 +34,7 @@ sha2 = "=0.11.0-pre.4"
whirlpool = "=0.11.0-pre.4"

[features]
kdf = ["dep:digest"]
kdf = ["dep:digest", "dep:zeroize"]

[package.metadata.docs.rs]
all-features = true
Expand Down

0 comments on commit 24fc0eb

Please sign in to comment.