Skip to content

[deps]: Update Rust crate getrandom to >=0.2.9, <0.4 #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 17, 2025

This PR contains the following updates:

Package Type Update Change
getrandom dependencies minor >=0.2.9, <0.3 -> >=0.2.9, <0.4

Release Notes

rust-random/getrandom (getrandom)

v0.3.1

Compare Source

Fixed

v0.3.0

Compare Source

Breaking Changes
Changed
  • Bump MSRV to 1.63 #​542
  • Rename getrandom and getrandom_uninit functions to fill and fill_uninit respectively #​532
Removed
  • wasm32-wasi target support (use wasm32-wasip1 or wasm32-wasip2 instead) #​499
  • linux_disable_fallback, rdrand, js, test-in-browser, and custom crate features
    in favor of configuration flags #​504
  • register_custom_getrandom! macro #​504
  • Implementation of From<NonZeroU32> for Error and Error::code method #​507
  • Internet Explorer 11 support #​554
  • Target-specific assocciated Error constants #​562
Changed
  • Use ProcessPrng on Windows 10 and up, and use RtlGenRandom on older Windows versions #​415
  • Do not use locale-specific strerror_r for retrieving error code descriptions #​440
  • Avoid assuming usize is the native word size in the rdrand backend #​442
  • Do not read from errno when libc did not indicate error on Solaris #​448
  • Switch from libpthread's mutex to futex on Linux and to nanosleep-based wait loop
    on other targets in the use_file backend #​490
  • Do not retry on EAGAIN while polling /dev/random on Linux #​522
  • Remove separate codepath for Node.js in the wasm_js backend
    (bumps minimum supported Node.js version to v19) #​557
  • Use js_namespace in the wasm_js backend #​559
Added
  • wasm32-wasip1 and wasm32-wasip2 support #​499
  • getrandom_backend configuration flag for selection of opt-in backends #​504
  • Error::new_custom method #​507
  • rndr opt-in backend #​512
  • Automatic MemorySanitizer support #​521 #​571
  • u32 and u64 functions for generating random values of the respective type #​544
  • wasm32v1-none support in the wasm_js backend #​560
  • wasm_js crate feature which allows users to enable the wasm_js opt-in backend #​574
Fixed
  • NetBSD fallback code based on KERN_ARND #​555

Configuration

📅 Schedule: Branch creation - "every 2nd week starting on the 2 week of the year before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Feb 17, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path crates/bitwarden-core/Cargo.toml --package [email protected] --precise 0.3.1
    Updating crates.io index
error: failed to select a version for `getrandom`.
    ... required by package `bitwarden-core v1.0.0 (/tmp/renovate/repos/github/bitwarden/sdk-internal/crates/bitwarden-core)`
    ... which satisfies path dependency `bitwarden-core` (locked to 1.0.0) of package `bitwarden-sm v1.0.0 (/tmp/renovate/repos/github/bitwarden/sdk-internal/bitwarden_license/bitwarden-sm)`
versions that meet the requirements `>=0.2.9, <0.4` are: 0.3.1

the package `bitwarden-core` depends on `getrandom`, with features: `js` but `getrandom` does not have these features.


failed to select a version for `getrandom` which could resolve this conflict

@bitwarden-bot bitwarden-bot changed the title [deps]: Update Rust crate getrandom to >=0.2.9, <0.4 [PM-18352] [deps]: Update Rust crate getrandom to >=0.2.9, <0.4 Feb 17, 2025
@bitwarden-bot
Copy link

Internal tracking:

Copy link

codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.93%. Comparing base (1d08959) to head (2f65671).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #163   +/-   ##
=======================================
  Coverage   65.93%   65.93%           
=======================================
  Files         195      195           
  Lines       15334    15334           
=======================================
  Hits        10111    10111           
  Misses       5223     5223           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot changed the title [PM-18352] [deps]: Update Rust crate getrandom to >=0.2.9, <0.4 [deps]: Update Rust crate getrandom to >=0.2.9, <0.4 Feb 17, 2025
@dani-garcia
Copy link
Member

This should also be upgraded at the same time as #164

Copy link
Contributor Author

renovate bot commented Feb 17, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (>=0.2.9, <0.4). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/getrandom-0.x branch February 17, 2025 11:00
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