Skip to content

build(deps): bump rand from 0.9.2 to 0.10.0#70

Merged
jdhoffa merged 2 commits into
mainfrom
bump_deps
Feb 20, 2026
Merged

build(deps): bump rand from 0.9.2 to 0.10.0#70
jdhoffa merged 2 commits into
mainfrom
bump_deps

Conversation

@jdhoffa
Copy link
Copy Markdown
Owner

@jdhoffa jdhoffa commented Feb 20, 2026

Supersedes #61

Copilot AI review requested due to automatic review settings February 20, 2026 10:56
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 20, 2026

Docs preview was removed because this PR is closed.

@jdhoffa jdhoffa merged commit e4da5fa into main Feb 20, 2026
7 checks passed
@jdhoffa jdhoffa deleted the bump_deps branch February 20, 2026 10:56
github-actions Bot added a commit that referenced this pull request Feb 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades the rand crate from version 0.9.2 to 0.10.0, a major version update with several breaking changes. The upgrade requires adapting to API changes including the rename of the Rng trait to RngExt and the removal of Clone support for StdRng.

Changes:

  • Updated rand dependency from 0.9.2 to 0.10 in Cargo.toml
  • Renamed Rng trait import to RngExt in device type files
  • Removed Clone derive from device structs containing StdRng (BaseLoad, SolarPv, EvCharger)
  • Replaced .clone() call with explicit instantiation in runner.rs to work around removed Clone support
  • Added explicit _f32 type suffixes to float literals in Box-Muller transform

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Cargo.toml Updated rand dependency version from 0.9.2 to 0.10
Cargo.lock Updated dependency tree including replacement of rand_chacha with chacha20 and addition of many transitive dependencies
src/devices/types.rs Renamed Rng to RngExt import and added _f32 suffixes to float literals
src/devices/baseload.rs Removed Clone derive from BaseLoad struct (contains StdRng)
src/devices/solar.rs Removed Clone derive from SolarPv struct (contains StdRng)
src/devices/ev_charger.rs Renamed Rng to RngExt import and removed Clone derive from EvCharger struct
src/runner.rs Replaced load.clone() with explicit BaseLoad::new() instantiation using same parameters

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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