Skip to content

chore: bump rand_distr from 0.4.3 to 0.5.1 - #12

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/rand_distr-0.5.1
Closed

chore: bump rand_distr from 0.4.3 to 0.5.1#12
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/rand_distr-0.5.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 3, 2026

Copy link
Copy Markdown

Bumps rand_distr from 0.4.3 to 0.5.1.

Release notes

Sourced from rand_distr's releases.

0.5.1

What's Changed

New Contributors

Full Changelog: rust-random/rand_distr@0.5.0...0.5.1

0.5.0

Dependencies and features

  • Bump the MSRV to 1.61.0 (#1207, #1246, #1269, #1341, #1416); note that 1.60.0 may work for dependents when using --ignore-rust-version
  • Update to rand v0.9.0 (#1558)
  • Rename feature serde1 to serde (#1477)

API changes

  • Make distributions comparable with PartialEq (#1218)
  • Dirichlet now uses const generics, which means that its size is required at compile time (#1292)
  • The Dirichlet::new_with_size constructor was removed (#1292)
  • Add WeightedIndexTree (#1372, #1444)
  • Add PertBuilder to allow specification of mean or mode (#1452)
  • Rename Zeta's parameter a to s (#1466)
  • Mark WeightError, PoissonError, BinomialError as #[non_exhaustive] (#1480)
  • Remove support for usage of isize as a WeightedAliasIndex weight (#1487)
  • Change parameter type of Zipf::new: n is now floating-point (#1518)

API changes: renames

  • Move Slice -> slice::Choose, EmptySlice -> slice::Empty (#1548)
  • Rename trait DistString -> SampleString (#1548)
  • Rename DistIter -> Iter, DistMap -> Map (#1548)
  • Move {Weight, WeightError, WeightedIndex} -> weighted::{Weight, Error, WeightedIndex} (#1548)
  • Move weighted_alias::{AliasableWeight, WeightedAliasIndex} -> weighted::{..} (#1548)
  • Move weighted_tree::WeightedTreeIndex -> weighted::WeightedTreeIndex (#1548)

Testing

Fixes

  • Fix Knuth's method so Poisson doesn't return -1.0 for small lambda (#1284)
  • Fix Poisson distribution instantiation so it return an error if lambda is infinite (#1291)
  • Fix Dirichlet sample for small alpha values to avoid NaN samples (#1209)
  • Fix infinite loop in Binomial distribution (#1325)
  • Fix Pert distribution where mode is close to (min + max) / 2 (#1452)
  • Fix panic in Binomial (#1484)
  • Limit the maximal acceptable lambda for Poisson to solve (#1312) (#1498)
  • Fix bug in Hypergeometric, this is a Value-breaking change (#1510)

Other changes

  • Remove unused fields from Gamma, NormalInverseGaussian and Zipf distributions (#1184) This breaks serialization compatibility with older versions.

... (truncated)

Changelog

Sourced from rand_distr's changelog.

[0.5.1]

Testing

  • Added building the crate to CI

Fixes

  • Fix missing import for no_std builds

[0.5.0] - 2025-01-27

Dependencies and features

  • Bump the MSRV to 1.61.0 ([rand#1207], [rand#1246], [rand#1269], [rand#1341], [rand#1416]); note that 1.60.0 may work for dependents when using --ignore-rust-version
  • Update to rand v0.9.0 ([rand#1558])
  • Rename feature serde1 to serde ([rand#1477])

API changes

  • Make distributions comparable with PartialEq ([rand#1218])
  • Dirichlet now uses const generics, which means that its size is required at compile time ([rand#1292])
  • The Dirichlet::new_with_size constructor was removed ([rand#1292])
  • Add WeightedIndexTree ([rand#1372], [rand#1444])
  • Add PertBuilder to allow specification of mean or mode ([rand#1452])
  • Rename Zeta's parameter a to s ([rand#1466])
  • Mark WeightError, PoissonError, BinomialError as #[non_exhaustive] ([rand#1480])
  • Remove support for usage of isize as a WeightedAliasIndex weight ([rand#1487])
  • Change parameter type of Zipf::new: n is now floating-point ([rand#1518])

API changes: renames

  • Move Slice -> slice::Choose, EmptySlice -> slice::Empty ([rand#1548])
  • Rename trait DistString -> SampleString ([rand#1548])
  • Rename DistIter -> Iter, DistMap -> Map ([rand#1548])
  • Move {Weight, WeightError, WeightedIndex} -> weighted::{Weight, Error, WeightedIndex} ([rand#1548])
  • Move weighted_alias::{AliasableWeight, WeightedAliasIndex} -> weighted::{..} ([rand#1548])
  • Move weighted_tree::WeightedTreeIndex -> weighted::WeightedTreeIndex ([rand#1548])

Testing

  • Add Kolmogorov Smirnov tests for distributions ([rand#1494], [rand#1504], [rand#1525], [rand#1530])

Fixes

  • Fix Knuth's method so Poisson doesn't return -1.0 for small lambda ([rand#1284])
  • Fix Poisson distribution instantiation so it return an error if lambda is infinite ([rand#1291])
  • Fix Dirichlet sample for small alpha values to avoid NaN samples ([rand#1209])
  • Fix infinite loop in Binomial distribution ([rand#1325])
  • Fix Pert distribution where mode is close to (min + max) / 2 ([rand#1452])
  • Fix panic in Binomial ([rand#1484])
  • Limit the maximal acceptable lambda for Poisson to solve ([rand#1312]) ([rand#1498])
  • Fix bug in Hypergeometric, this is a Value-breaking change ([rand#1510])

Other changes

  • Remove unused fields from Gamma, NormalInverseGaussian and Zipf distributions ([rand#1184]) This breaks serialization compatibility with older versions.

... (truncated)

Commits

Dependabot compatibility score

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 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)

Bumps [rand_distr](https://github.com/rust-random/rand_distr) from 0.4.3 to 0.5.1.
- [Release notes](https://github.com/rust-random/rand_distr/releases)
- [Changelog](https://github.com/rust-random/rand_distr/blob/master/CHANGELOG.md)
- [Commits](rust-random/rand_distr@0.4.3...0.5.1)

---
updated-dependencies:
- dependency-name: rand_distr
  dependency-version: 0.5.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Aug 3, 2026

Copy link
Copy Markdown
Author

Labels

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

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

@git-mind-pr-guardian

Copy link
Copy Markdown

GitMind PR Review

{'pr_url': '#12', 'repo': 'Ayyankhan101/Transformer-In-Rust', 'pr_num': '12', 'title': 'chore: bump rand_distr from 0.4.3 to 0.5.1', 'author': 'dependabot[bot]', 'additions': 4, 'deletions': 14, 'changed_files': 2, 'review': '## Summary\nThis PR bumps the rand_distr version from 0.4.3 to 0.5.1, which includes a fix for missing imports in no_std builds. The changes seem straightforward and do not introduce any significant functionality changes. Overall, the update appears to be a maintenance task to keep dependencies up-to-date.\n\n## Issues\nNo significant issues found.\n\n## Verdict\n✅ APPROVE\nThe PR updates a dependency to a newer version with a relevant fix, and the changes are minimal and do not introduce any obvious issues.'}


Auto-generated by GitMind — AI-powered code analysis.

@Ayyankhan101

Copy link
Copy Markdown
Owner

Superseded by #16, which takes this bump together with the other thirteen and verifies them against current master. All 10 CI checks pass there; the failures shown here were inherited from the pre-fix base commit, not caused by the bump.

@dependabot @github

dependabot Bot commented on behalf of github Aug 23, 2026

Copy link
Copy Markdown
Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@Ayyankhan101
Ayyankhan101 deleted the dependabot/cargo/rand_distr-0.5.1 branch August 23, 2026 23:46
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.

1 participant