Skip to content

Update getrandom requirement from 0.2 to 0.3 in /divergence-engine#3

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/cargo/divergence-engine/getrandom-0.3
Closed

Update getrandom requirement from 0.2 to 0.3 in /divergence-engine#3
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/cargo/divergence-engine/getrandom-0.3

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot bot commented on behalf of github Dec 1, 2025

Updates the requirements on getrandom to permit the latest version.

Changelog

Sourced from getrandom's changelog.

[0.2.16] - 2025-04-22

Added

  • Cygwin support (backport of #626) #654

#654: rust-random/getrandom#654

[0.2.15] - 2024-05-06

Added

  • Apple visionOS support #410

Changed

  • Use libc::getrandom on DragonflyBSD, FreeBSD, illumos, and Solaris #411 #416 #417 #420
  • Unify libc::getentropy-based implementations #418

#410: rust-random/getrandom#410 #411: rust-random/getrandom#411 #416: rust-random/getrandom#416 #417: rust-random/getrandom#417 #418: rust-random/getrandom#418 #420: rust-random/getrandom#420

[0.2.14] - 2024-04-08

Fixed

  • Enable /dev/urandom fallback for MUSL-based Linux targets #408

#408: rust-random/getrandom#408

[0.2.13] - 2024-04-06

Added

  • linux_disable_fallback crate feature to disable /dev/urandom-based fallback on Linux and Android targets. Enabling this feature bumps minimum supported Linux kernel version to 3.17 and Android API level to 23 (Marshmallow). #396

Changed

  • Disable /dev/urandom fallback for Linux targets outside of the following target_arches: aarch64, arm, powerpc, powerpc64, s390x, x86, x86_64 #396
  • Do not catch EPERM error code on Android while checking availability of the getrandom syscall #396

#396: rust-random/getrandom#396

[0.2.12] - 2024-01-09

Fixed

  • Custom backend for targets without atomics #385

Changed

  • Improve robustness of the Hermit backend and sys_fill_exact #386
  • Raise minimum supported Apple OS versions to macOS 10.12 and iOS 10 #388

Added

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot @github
Copy link
Copy Markdown
Author

dependabot bot commented on behalf of github Dec 1, 2025

Labels

The following labels could not be found: dependencies, rust. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

web-sys = { version = "0.3", optional = true, features = ["console"] }
console_error_panic_hook = { version = "0.1", optional = true }
getrandom = { version = "0.2", optional = true }
getrandom = { version = "0.3", optional = true }
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Upgrading getrandom to 0.3 without updating the wasm feature to use getrandom/wasm_js will cause compilation failures.
Severity: CRITICAL | Confidence: High

🔍 Detailed Analysis

The pull request updates getrandom to version 0.3, which removes the js feature and replaces it with wasm_js. However, the wasm feature in Cargo.toml at line 36 still attempts to enable getrandom/js. This incompatibility will cause a compilation failure when building the divergence-engine with the wasm feature enabled, as Cargo will be unable to resolve the non-existent getrandom/js feature.

💡 Suggested Fix

Update the wasm feature in Cargo.toml to use getrandom/wasm_js instead of getrandom/js. Additionally, configure the backend via .cargo/config.toml with rustflags = ['--cfg', 'getrandom_backend="wasm_js"'] to properly enable the WASM backend.

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: divergence-engine/Cargo.toml#L36

Potential issue: The pull request updates `getrandom` to version 0.3, which removes the
`js` feature and replaces it with `wasm_js`. However, the `wasm` feature in `Cargo.toml`
at line 36 still attempts to enable `getrandom/js`. This incompatibility will cause a
compilation failure when building the `divergence-engine` with the `wasm` feature
enabled, as Cargo will be unable to resolve the non-existent `getrandom/js` feature.

Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 4439212

Updates the requirements on [getrandom](https://github.com/rust-random/getrandom) to permit the latest version.
- [Release notes](https://github.com/rust-random/getrandom/releases)
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
- [Commits](rust-random/getrandom@v0.2.0...v0.2.16)

---
updated-dependencies:
- dependency-name: getrandom
  dependency-version: 0.2.16
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/cargo/divergence-engine/getrandom-0.3 branch from ebd87e5 to 843e7e7 Compare December 1, 2025 06:46
@dependabot @github
Copy link
Copy Markdown
Author

dependabot bot commented on behalf of github Feb 2, 2026

Superseded by #7.

@dependabot dependabot bot closed this Feb 2, 2026
@dependabot dependabot bot deleted the dependabot/cargo/divergence-engine/getrandom-0.3 branch February 2, 2026 14:22
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.

0 participants