---
title: "getrandom 0.4.0 Breaking Changes on crates.io | Since.dev"
description: "What each getrandom release removed, renamed or changed: 32 breaking changes in 4 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/getrandom
last_updated: 2026-12-04
---

# getrandom breaking changes

getrandom 0.4.0 (February 2, 2026) is its newest release with breaking changes. The first: Raises the minimum supported Rust version to 1.85 and moves to Edition 2024 in getrandom 0.4.0. Every breaking API change we have recorded in getrandom on crates.io: 32 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.4.3`, released June 17, 2026. [Source repository](https://github.com/rust-random/getrandom)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.3.0](#v-0-3-0) to [0.4.0](#v-0-4-0): 6 breaking changes in 3 versions.

## getrandom 0.4.0 breaking changes

getrandom 0.4.0, released February 2, 2026: 1 breaking change.

- **Behavior changed**  

The crate now uses Rust Edition 2024 and requires Rust 1.85 or later. Users on older Rust toolchains must upgrade before building this version. [github.com](https://github.com/rust-random/getrandom/blob/v0.4.0/CHANGELOG.md)

## getrandom 0.3.4 breaking changes

getrandom 0.3.4, released October 14, 2025: 2 breaking changes.

- **Removed** `rustc-dep-of-std`  

The unstable rustc-dep-of-std crate feature was removed, so code that enables it will no longer build. [github.com](https://github.com/rust-random/getrandom/blob/v0.3.4/CHANGELOG.md)
- **Default changed**  

On wasm32-unknown-unknown, enabling the wasm_js feature now selects the wasm_js backend without setting --cfg getrandom_backend="wasm_js". Using --cfg getrandom_backend still overrides the backend. [github.com](https://github.com/rust-random/getrandom/blob/v0.3.4/CHANGELOG.md)

## getrandom 0.3.2 breaking changes

getrandom 0.3.2, released March 17, 2025: 3 breaking changes.

- **Removed** `getrandom::Error::CUSTOM_START`  

The Error::CUSTOM_START associated constant was removed in this release. Code that references it must stop using it. [crates.io](https://crates.io/crates/getrandom/0.3.2)
- **Removed** `getrandom::Error::INTERNAL_START`  

The Error::INTERNAL_START associated constant was removed in this release. Code that references it must stop using it. [crates.io](https://crates.io/crates/getrandom/0.3.2)
- **Signature changed** `getrandom::Error`  

Was struct Error(NonZeroU32); now struct Error(NonZeroRawOsError). [crates.io](https://crates.io/crates/getrandom/0.3.2)

## getrandom 0.3.0 breaking changes

getrandom 0.3.0, released January 25, 2025: 26 breaking changes.

- **Removed**  

Build for wasm32-wasip1 or wasm32-wasip2 instead of wasm32-wasi. [github.com](https://github.com/rust-random/getrandom/blob/v0.3.0/CHANGELOG.md)
- **Removed**  

Internet Explorer 11 is no longer supported. [github.com](https://github.com/rust-random/getrandom/blob/v0.3.0/CHANGELOG.md)
- **Removed** `custom`  

Use configuration flags instead of this crate feature. [github.com](https://github.com/rust-random/getrandom/blob/v0.3.0/CHANGELOG.md)
- **Removed** `Error`  

Code using these Error constants must be updated. [github.com](https://github.com/rust-random/getrandom/blob/v0.3.0/CHANGELOG.md)
- **Removed** `Error.from`  

Conversions from NonZeroU32 to Error are no longer available. [github.com](https://github.com/rust-random/getrandom/blob/v0.3.0/CHANGELOG.md)
- **Removed** `getrandom::Error::code`  

Code calling Error::code must be updated. [crates.io](https://crates.io/crates/getrandom/0.3.0)
- **Removed** `getrandom::Error::FAILED_RDRAND`  

getrandom::Error::FAILED_RDRAND was removed in getrandom 0.3.0 [crates.io](https://crates.io/crates/getrandom/0.3.0)
- **Removed** `getrandom::Error::IOS_SEC_RANDOM`  

getrandom::Error::IOS_SEC_RANDOM was removed in getrandom 0.3.0 [crates.io](https://crates.io/crates/getrandom/0.3.0)
- **Removed** `getrandom::Error::NO_RDRAND`  

getrandom::Error::NO_RDRAND was removed in getrandom 0.3.0 [crates.io](https://crates.io/crates/getrandom/0.3.0)
- **Removed** `getrandom::Error::NODE_CRYPTO`  

getrandom::Error::NODE_CRYPTO was removed in getrandom 0.3.0 [crates.io](https://crates.io/crates/getrandom/0.3.0)

And 16 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
