getrandom breaking changes

cargo

32 curated breaking changes across major versions of getrandom. Use this as a migration checklist before bumping dependencies.

32
changes
Breaking changes by transition
  • 0.2.17 \u2192 0.3.0breaking

    Bump MSRV to 1.63 [#542]

  • 0.2.17 \u2192 0.3.0breaking

    Do not retry on `EAGAIN` while polling `/dev/random` on Linux [#522]

  • 0.2.17 \u2192 0.3.0breaking

    Use `js_namespace` in the `wasm_js` backend [#559]

  • 0.2.17 \u2192 0.3.0breaking

    `wasm32-wasip1` and `wasm32-wasip2` support [#499]

  • 0.2.17 \u2192 0.3.0breaking

    `getrandom_backend` configuration flag for selection of opt-in backends [#504]

  • 0.2.17 \u2192 0.3.0breaking

    `Error::new_custom` method [#507]

  • 0.2.17 \u2192 0.3.0breaking

    `rndr` opt-in backend [#512]

  • 0.2.17 \u2192 0.3.0breaking

    Automatic MemorySanitizer support [#521] [#571]

  • 0.2.17 \u2192 0.3.0breaking

    `u32` and `u64` functions for generating random values of the respective type [#544]

  • 0.2.17 \u2192 0.3.0breaking

    `wasm32v1-none` support in the `wasm_js` backend [#560]

  • 0.2.17 \u2192 0.3.0breaking

    `wasm_js` crate feature which allows users to enable the `wasm_js` opt-in backend [#574]

  • 0.2.17 \u2192 0.3.0breaking

    `wasm32-wasi` target support (use `wasm32-wasip1` or `wasm32-wasip2` instead) [#499]

  • 0.2.17 \u2192 0.3.0breaking

    `linux_disable_fallback`, `rdrand`, `js`, `test-in-browser`, and `custom` crate features

  • 0.2.17 \u2192 0.3.0breaking

    `register_custom_getrandom!` macro [#504]

  • 0.2.17 \u2192 0.3.0breaking

    Implementation of `From<NonZeroU32>` for `Error` and `Error::code` method [#507]

  • 0.2.17 \u2192 0.3.0breaking

    Internet Explorer 11 support [#554]

  • 0.2.17 \u2192 0.3.0breaking

    Target-specific associated `Error` constants [#562]

  • 0.2.17 \u2192 0.3.0breaking

    Use `ProcessPrng` on Windows 10 and up, and use `RtlGenRandom` on older Windows versions [#415]

  • 0.2.17 \u2192 0.3.0breaking

    Do not use locale-specific `strerror_r` for retrieving error code descriptions [#440]

  • 0.2.17 \u2192 0.3.0breaking

    Avoid assuming `usize` is the native word size in the `rdrand` backend [#442]

  • 0.2.17 \u2192 0.3.0breaking

    Do not read from `errno` when `libc` did not indicate error on Solaris [#448]

  • 0.2.17 \u2192 0.3.0breaking

    Switch from `libpthread`'s mutex to `futex` on Linux and to `nanosleep`-based wait loop

  • 0.2.17 \u2192 0.3.0removed

    Remove separate codepath for Node.js in the `wasm_js` backend

  • 0.2.17 \u2192 0.3.0renamed

    Rename `getrandom` and `getrandom_uninit` functions to `fill` and `fill_uninit` respectively [#532]

  • 0.2.8 \u2192 0.2.9breaking

    Update MSRV to 1.36 [#291]

  • 0.1.16 \u2192 0.2.0breaking

    Only impl `std` traits when the `"std"` Cargo feature is specified [#106]

  • 0.1.16 \u2192 0.2.0breaking

    Update minimum supported Linux kernel to 2.6.32 [#153]

  • 0.1.16 \u2192 0.2.0breaking

    Update MSRV to 1.34 [#159]

  • 0.1.16 \u2192 0.2.0breaking

    Unsupported targets no longer compile [#107]

  • 0.1.16 \u2192 0.2.0breaking

    Change/Add `Error` constants [#120]

  • 0.1.16 \u2192 0.2.0removed

    Remove optional `"log"` dependency [#131]

  • 0.1.16 \u2192 0.2.0removed

    Remove official support for Hermit, L4Re, and UEFI [#133]

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/cargo/getrandom
getrandom breaking changes — Cargo migration guide | DepScope