Skip to content

chore(deps): Bump rand_distr from 0.4.3 to 0.6.0#65

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/rand_distr-0.6.0
Open

chore(deps): Bump rand_distr from 0.4.3 to 0.6.0#65
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/rand_distr-0.6.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 18, 2026

Bumps rand_distr from 0.4.3 to 0.6.0.

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.6.0] — 2026-02-10

  • Bump to MSRV 1.85.0 and Edition 2024 in line with rand (#28)
  • Update rand to version 0.10.0 (#31, #48)

Additions

  • MultiDistribution trait to sample more efficiently from multi-dimensional distributions (#18)
  • Add WeightedAliasIndex::weights() to reconstruct the original weights in O(n) (#25)
  • ConstMultiDistribution trait as support for fixed-dimension distributions (#29)

Changes

  • Moved Dirichlet into the new multi module and implement MultiDistribution for it (#18)
  • Dirichlet no longer uses const generics, which means that its size is not required at compile time. Essentially a revert of [rand#1292]. (#30)

Fixes

  • Fix Geometric::new for small p > 0 where 1 - p rounds to 1 (#36)
  • Use direct-minimal-versions (#38)
  • Fix panic in FisherF::new on almost zero parameters (#39)
  • Fix panic in NormalInverseGaussian::new with very large alpha; this is a Value-breaking change (#40)
  • Fix hang and debug assertion in Zipf::new on invalid parameters (#41)
  • Fix panic in Binomial::sample with n ≥ 2^63; this is a Value-breaking change (#43)
  • Error instead of producing -inf output for Exp when lambda is -0.0 (#44)
  • Avoid returning NaN from Gamma::sample; this is a Value-breaking change and also affects ChiSquared and Dirichlet (#46)

[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

... (truncated)

Commits
  • 61d08aa Update rand 0.10 (#50)
  • c97a8f5 Merge pull request #46 from mstoeckl/gamma-avoid-nan
  • df52389 Merge pull request #51 from rust-random/push-qyyzynmpkuuo
  • 35ecffe CHANGELOG fixes
  • 06f586e Merge pull request #48 from mstoeckl/update-rand
  • 7540326 Merge pull request #49 from rust-random/push-kzzruutkmsxs
  • a101e4e Add PR links to the CHANGELOG
  • df2bae8 Update rand dependency to latest rc
  • be28239 Merge pull request #41 from mstoeckl/zipf-edge-case
  • 9a8000b Avoid hangs and debug asserts on invalid parameters for Zipf
  • Additional commits viewable in compare view

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 18, 2026

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.

@dependabot dependabot Bot requested review from AzeezIsh and tbraun96 as code owners May 18, 2026 09:16
@dependabot dependabot Bot force-pushed the dependabot/cargo/rand_distr-0.6.0 branch from 7e7a037 to 2d922b6 Compare May 23, 2026 00:39
Bumps [rand_distr](https://github.com/rust-random/rand_distr) from 0.4.3 to 0.6.0.
- [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.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/cargo/rand_distr-0.6.0 branch from 2d922b6 to ab3cdd3 Compare May 27, 2026 05:30
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