Skip to content

Upgrading getrandom 0.2 to 0.3

Breaking0.2.17 → 0.3.4Breaking8Platform1New16Changed24Fixed3

Fetching 6 releases from GitHub…5 / 6
BreakingUpgrade verdict

8 breaking changes and a platform requirement change.

  • Unstable rustc-dep-of-std crate feature.
  • Error::INTERNAL_START and Error::CUSTOM_START associated constants.
  • wasm32-wasi target support (use wasm32-wasip1 or wasm32-wasip2 instead).
  • register_custom_getrandom! macro.
Top 4 of 9 that need code or config changes

Requires Rust 1.63 from 0.3.0-rc.0 (none stated before).

Adds r-efi ^5.1, wasip2 ^1.

Drops compiler_builtins, rustc-std-workspace-core, wasi.

Installs 37 packages in all (was 49).

Breaking8
Unstable rustc-dep-of-std crate feature.
rustc-dep-of-std
Error::INTERNAL_START and Error::CUSTOM_START associated constants.
Error::INTERNAL_STARTError::CUSTOM_START
wasm32-wasi target support (use wasm32-wasip1 or wasm32-wasip2 instead).
wasm32-wasiwasm32-wasip1wasm32-wasip2
register_custom_getrandom! macro.
register_custom_getrandom!
Implementation of From for Error and Error::code method.
From<NonZeroU32>ErrorError::code
Internet Explorer 11 support.
Target-specific associated Error constants.
Error
linux_disable_fallback, rdrand, js, test-in-browser, and custom crate features in favor of configuration flags.
linux_disable_fallbackrdrandjstest-in-browsercustom
Platform1
Bump MSRV to 1.63.