Skip to content

Commit

Permalink
slh-dsa: enable derive feature of zerocopy (#847)
Browse files Browse the repository at this point in the history
...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.
  • Loading branch information
tarcieri authored Aug 16, 2024
1 parent 8cdbcb7 commit 301248f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 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.

3 changes: 1 addition & 2 deletions slh-dsa/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ keywords = ["crypto", "signature"]
hybrid-array = { version = "0.2.0-rc.8", features = ["extra-sizes"] }
typenum = { version = "1.17.0", features = ["const-generics"] }
sha3 = { version = "0.10.8", default-features = false }
zerocopy = "0.7.34"
zerocopy-derive = "0.7.32"
zerocopy = { version = "0.7.34", features = ["derive"] }
rand_core = { version = "0.6.4" }
signature = { version = "2.3.0-pre.4", features = ["rand_core"] }
hmac = "0.12.1"
Expand Down
1 change: 0 additions & 1 deletion slh-dsa/src/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use typenum::U22;

use zerocopy::byteorder::big_endian::{U32, U64};
use zerocopy::AsBytes;
use zerocopy_derive::AsBytes;

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

0 comments on commit 301248f

Please sign in to comment.