Skip to content

Older versions of zeroize (<1.5.0) don't work with Rust 1.58 #714

@raphaelrobert

Description

@raphaelrobert

When trying to compile the x25519-dalek-ng crate with Rust 1.58, I get the following errors:

error[E0405]: cannot find trait `ZeroizeOnDrop` in crate `zeroize`
  --> src/x25519.rs:64:10
   |
64 | #[derive(Zeroize)]
   |          ^^^^^^^ not found in `zeroize`
   |
   = note: this error originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0405]: cannot find trait `ZeroizeOnDrop` in crate `zeroize`
   --> src/x25519.rs:112:17
    |
112 | #[derive(Clone, Zeroize)]
    |                 ^^^^^^^ not found in `zeroize`
    |
    = note: this error originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0405]: cannot find trait `ZeroizeOnDrop` in crate `zeroize`
   --> src/x25519.rs:158:10
    |
158 | #[derive(Zeroize)]
    |          ^^^^^^^ not found in `zeroize`
    |
    = note: this error originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info)

The crate depend on zeroize 1.2.0, but updating it to 1.4.x doesn't help. Only 1.5.0 seems to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions