Skip to content

Update Rust crate getrandom to 0.4 - #33

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/getrandom-0.x
Aug 3, 2026
Merged

Update Rust crate getrandom to 0.4#33
renovate[bot] merged 1 commit into
mainfrom
renovate/getrandom-0.x

Conversation

@renovate

@renovate renovate Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
getrandom dependencies minor 0.30.4

Release Notes

rust-random/getrandom (getrandom)

v0.4.3

Compare Source

Added
  • wasm64-unknown-unknown target support for wasm_js backend #​848
Changed
  • Drop wasip2 and wasip3 dependencies in favor of manual bindings #​830

v0.4.2

Compare Source

Changed
  • Bump r-efi dependency to v6 #​814
Fixed
  • Read errno only when it is set #​810
  • Check the return value of ProcessPrng on Windows #​811

v0.4.1

Compare Source

Fixed
  • Documentation build on docs.rs #​801

v0.4.0

Compare Source

Added
Changed
  • Use Edition 2024 and MSRV 1.85 #​749

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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.

@coderabbitai

coderabbitai Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: bb12218c-aefc-43fd-a355-1e230f320573

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The Cargo manifest updates the getrandom dependency requirement from version 0.2 to 0.4.

Changes

Dependency update

Layer / File(s) Summary
Update getrandom requirement
Cargo.toml
Changes the getrandom dependency version requirement from 0.2 to 0.4.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: updating the Rust crate getrandom dependency to version 0.4.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch renovate/getrandom-0.x

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@Cargo.toml`:
- Line 13: Update the getrandom call in the ID generation logic of
src/app/ids.rs to use getrandom::fill instead of the removed
getrandom::getrandom API, preserving the existing buffer and error-handling
behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 941d1b25-8253-46b7-9b13-51969ac343f2

📥 Commits

Reviewing files that changed from the base of the PR and between f2b470c and 5989813.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • Cargo.toml

Comment thread Cargo.toml
[dependencies]
cef = { version = "=150.2.1", default-features = false }
getrandom = "0.2"
getrandom = "0.4"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== Cargo.toml ==\n'
nl -ba Cargo.toml | sed -n '1,40p'

printf '\n== src/app/ids.rs ==\n'
nl -ba src/app/ids.rs | sed -n '1,120p'

printf '\n== getrandom references ==\n'
rg -n "getrandom::|getrandom =" -S .

Repository: phob/MediaFlick-Desktop

Length of output: 219


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
import pathlib, re, sys
path = pathlib.Path("Cargo.toml")
text = path.read_text()
m = re.search(r'^\s*getrandom\s*=\s*"([^"]+)"', text, re.M)
print("Cargo.toml getrandom version:", m.group(1) if m else "not found")
PY

Repository: phob/MediaFlick-Desktop

Length of output: 195


🏁 Script executed:

#!/bin/bash
set -euo pipefail

sed -n '1,120p' src/app/ids.rs | nl -ba

Repository: phob/MediaFlick-Desktop

Length of output: 201


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path
for p in [Path("Cargo.toml"), Path("src/app/ids.rs")]:
    print(f"\n## {p}")
    if p.exists():
        for i, line in enumerate(p.read_text().splitlines(), 1):
            if p.name == "Cargo.toml" and i <= 30:
                print(f"{i:>4}: {line}")
            elif p.name == "ids.rs" and i <= 60:
                print(f"{i:>4}: {line}")
    else:
        print("missing")
PY

Repository: phob/MediaFlick-Desktop

Length of output: 2717


🌐 Web query:

getrandom 0.4 docs getrandom function renamed to fill removed

💡 Result:

In the getrandom crate, starting with version 0.4.0, the functions previously known as getrandom and getrandom_uninit were renamed to fill and fill_uninit, respectively [1][2][3]. This change was implemented to provide more concise and descriptive naming conventions for the library's primary functions [3]. As of version 0.4.x, you should use getrandom::fill to populate a byte buffer with random data: use getrandom::fill; let mut buf = [0u8; 32]; fill(&mut buf)?; For working with potentially uninitialized memory, the corresponding function is now fill_uninit [4][5]. These changes were part of a series of updates in the 0.4 release cycle [1][6].

Citations:


Update src/app/ids.rs for getrandom 0.4
getrandom::getrandom was removed in 0.4; switch the call at src/app/ids.rs:13 to getrandom::fill, or this dependency bump will fail to compile.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Cargo.toml` at line 13, Update the getrandom call in the ID generation logic
of src/app/ids.rs to use getrandom::fill instead of the removed
getrandom::getrandom API, preserving the existing buffer and error-handling
behavior.

@renovate
renovate Bot force-pushed the renovate/getrandom-0.x branch 19 times, most recently from fa230aa to bfbc092 Compare August 2, 2026 18:23
@renovate
renovate Bot force-pushed the renovate/getrandom-0.x branch 9 times, most recently from d0c7b29 to 96fb8e5 Compare August 2, 2026 23:13
@renovate
renovate Bot force-pushed the renovate/getrandom-0.x branch from 96fb8e5 to d5adc55 Compare August 3, 2026 00:29
@renovate
renovate Bot force-pushed the renovate/getrandom-0.x branch from d5adc55 to f91ba27 Compare August 3, 2026 05:10
@renovate
renovate Bot merged commit 8eb61b8 into main Aug 3, 2026
6 checks passed
@renovate
renovate Bot deleted the renovate/getrandom-0.x branch August 3, 2026 12:02
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