Skip to content

Compile issue #85

Open
Open

Description

@jht5945

generic-array released v0.14.9 on Oct 13, 2015, ohttp cannot be compied now, get the error blew:

error: use of deprecated associated function `aead::generic_array::GenericArray::<T, N>::from_slice`: please upgrade to generic-array 1.x
  --> ohttp/src/rh/aead.rs:37:65
   |
37 |             Self::Aes128Gcm(e) => e.encrypt(Nonce::<Aes128Gcm>::from_slice(nonce), pt)?,
   |                                                                 ^^^^^^^^^^
   |
note: the lint level is defined here
  --> ohttp/src/lib.rs:1:9
   |
1  | #![deny(warnings, clippy::pedantic)]
   |         ^^^^^^^^
   = note: `#[deny(deprecated)]` implied by `#[deny(warnings)]`

for work around assign version to 0.14.7 works for me:

generic-array="=0.14.7"

Activity

  1. martinthomson commented on Oct 20, 2025

    @martinthomson
    Owner

    This isn't something that is easy to address on our end. It's a supply chain issue. Maybe we should ask generic-array to be yanked. You can't make that sort of change in a point release.

  2. martinthomson commented on Oct 21, 2025

    @martinthomson
    Owner

    RustCrypto/traits#2036 tracks the underlying problem. We'll need to also poke rozbb/rust-hpke#80 to complete the deal.

  3. martinthomson commented on Nov 25, 2025

    @martinthomson
    Owner

    This will be addressed by #90 once that stabilizes a little more. A lot of the associated crates are on release candidates still. I'll look to ensure that those crates release before releasing a change here. (And because there is active work, I'll also refrain from landing that change to main just yet.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions