Skip to content

Conversation

@nabetti1720
Copy link
Contributor

@nabetti1720 nabetti1720 commented Feb 2, 2026

Issue # (if available)

n/a

Description of changes

  • Following rand_core, getrandom is now stable.
  • To make dependency updates more efficient for a while, we've relaxed the version requirements for related crates.
% cargo update
    Updating crates.io index
     Locking 14 packages to latest compatible versions
    Updating cpubits v0.1.0-rc.2 -> v0.1.0-rc.3
    Updating crypto-bigint v0.7.0-rc.23 -> v0.7.0-rc.24
    Updating ecdsa v0.17.0-rc.14 -> v0.17.0-rc.15
    Updating elliptic-curve v0.14.0-rc.26 -> v0.14.0-rc.27
    Updating getrandom v0.4.0-rc.1 -> v0.4.0
    Updating wasip3 v0.3.1+wasi-0.3.0-rc-2025-09-16 -> v0.4.0+wasi-0.3.0-rc-2026-01-06
    Updating wasm-encoder v0.241.2 -> v0.244.0
    Updating wasm-metadata v0.241.2 -> v0.244.0
    Updating wasmparser v0.241.2 -> v0.244.0
    Removing wit-bindgen v0.48.1
    Updating wit-bindgen-core v0.48.1 -> v0.51.0
    Updating wit-bindgen-rust v0.48.1 -> v0.51.0
    Updating wit-bindgen-rust-macro v0.48.1 -> v0.51.0
    Updating wit-component v0.241.2 -> v0.244.0
    Updating wit-parser v0.241.2 -> v0.244.0

@nabetti1720
Copy link
Contributor Author

We may need to wait a little longer for the updates to take effect...

   Compiling p256 v0.14.0-rc.6
error[E0308]: mismatched types
 --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/p256-0.14.0-rc.6/src/arithmetic/field/field32.rs:5:29
  |
5 | const MODULUS: &[Limb; 8] = super::FieldParams::PARAMS.modulus().as_ref().as_limbs();
  |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an array with a size of 8, found one with a size of 4
  |
  = note: expected reference `&'static [Limb; 8]`
             found reference `&[Limb; 4]`

error[E0308]: mismatched types
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/p256-0.14.0-rc.6/src/arithmetic/field/field32.rs:38:15
    |
 38 |       U256::new([
    |  _____---------_^
    | |     |
    | |     arguments to this function are incorrect
 39 | |         result[0], result[1], result[2], result[3], result[4], result[5], result[6], result[7],
 40 | |     ])
    | |_____^ expected an array with a size of 4, found one with a size of 8
    |
    = note: expected array `[Limb; 4]`
               found array `[Limb; 8]`
note: associated function defined here
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crypto-bigint-0.7.0-rc.24/src/uint.rs:124:18
    |
124 |     pub const fn new(limbs: [Limb; LIMBS]) -> Self {
    |                  ^^^

error[E0308]: mismatched types
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/p256-0.14.0-rc.6/src/arithmetic/field/field32.rs:52:15
    |
 52 |       U256::new([
    |  _____---------_^
    | |     |
    | |     arguments to this function are incorrect
 53 | |         result[0], result[1], result[2], result[3], result[4], result[5], result[6], result[7],
 54 | |     ])
    | |_____^ expected an array with a size of 4, found one with a size of 8
    |
    = note: expected array `[Limb; 4]`
               found array `[Limb; 8]`
note: associated function defined here
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crypto-bigint-0.7.0-rc.24/src/uint.rs:124:18
    |
124 |     pub const fn new(limbs: [Limb; LIMBS]) -> Self {
    |                  ^^^

error[E0308]: mismatched types
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/p256-0.14.0-rc.6/src/arithmetic/field/field32.rs:209:15
    |
209 |       U256::new([
    |  _____---------_^
    | |     |
    | |     arguments to this function are incorrect
210 | |         result[0], result[1], result[2], result[3], result[4], result[5], result[6], result[7],
211 | |     ])
    | |_____^ expected an array with a size of 4, found one with a size of 8
    |
    = note: expected array `[Limb; 4]`
               found array `[Limb; 8]`
note: associated function defined here
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crypto-bigint-0.7.0-rc.24/src/uint.rs:124:18
    |
124 |     pub const fn new(limbs: [Limb; LIMBS]) -> Self {
    |                  ^^^

error[E0308]: mismatched types
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/p256-0.14.0-rc.6/src/arithmetic/scalar/scalar32.rs:85:15
    |
 85 |     U256::new([r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7]])
    |     --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an array with a size of 4, found one with a size of 8
    |     |
    |     arguments to this function are incorrect
    |
    = note: expected array `[Limb; 4]`
               found array `[Limb; 8]`
note: associated function defined here
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crypto-bigint-0.7.0-rc.24/src/uint.rs:124:18
    |
124 |     pub const fn new(limbs: [Limb; LIMBS]) -> Self {
    |                  ^^^

For more information about this error, try `rustc --explain E0308`.

@tarcieri
Copy link
Member

tarcieri commented Feb 2, 2026

@nabetti1720 will have an update out soon: RustCrypto/elliptic-curves#1643

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants