Upgrading rand_distr 0.5 to 0.6
Breaking0.5.1 → 0.6.0Breaking2Platform1New3Changed1Fixed7Other1
BreakingUpgrade verdict
2 breaking changes and a platform requirement change.
In plain terms
- Dirichlet no longer needs its dimension known at compile time, which changes how it is constructed.
- The Dirichlet distribution now lives in a new multi module, so import paths change.
- This version requires a newer Rust compiler (1.85.0 or later) and the 2024 edition of the language.
Must act 3 items need code or config changes
Rust requirement changed in 0.6.0-rc.0: 1.63 → 1.85.
What you must change
Breaking2
Dirichlet no longer uses const generics, so its size is not required at compile time.
DirichletMoves Dirichlet into the new multi module and implements MultiDistribution for it.
DirichletMultiDistributionmultiPlatform1
Bumps the minimum supported Rust version to 1.85.0 and moves to Edition 2024, in line with rand.