Skip to content

Commit 6193fbf

Browse files
committed
slh-dsa: enable derive feature of zerocopy
...rather than directly depending on `zerocopy-derive`. This fixes problems that arise if the `derive` feature is enabled by other dependencies in the same tree. See #846.
1 parent 8cdbcb7 commit 6193fbf

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

Cargo.lock

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

slh-dsa/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ keywords = ["crypto", "signature"]
1818
hybrid-array = { version = "0.2.0-rc.8", features = ["extra-sizes"] }
1919
typenum = { version = "1.17.0", features = ["const-generics"] }
2020
sha3 = { version = "0.10.8", default-features = false }
21-
zerocopy = "0.7.34"
22-
zerocopy-derive = "0.7.32"
21+
zerocopy = { version = "0.7.34", features = ["derive"] }
2322
rand_core = { version = "0.6.4" }
2423
signature = { version = "2.3.0-pre.4", features = ["rand_core"] }
2524
hmac = "0.12.1"

slh-dsa/src/address.rs

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use typenum::U22;
2020

2121
use zerocopy::byteorder::big_endian::{U32, U64};
2222
use zerocopy::AsBytes;
23-
use zerocopy_derive::AsBytes;
2423

2524
/// `Address` represents a hash address as defined by FIPS-205 section 4.2
2625
pub trait Address: AsRef<[u8]> {

0 commit comments

Comments
 (0)