Skip to content

Upgrading rand_distr 0.5 to 0.6

Breaking0.5.1 → 0.6.0Breaking2Platform1New3Changed1Fixed7Other1

BreakingUpgrade verdict

2 breaking changes and a platform requirement change.

  • 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.
3 items need code or config changes

Rust requirement changed in 0.6.0-rc.0: 1.63 → 1.85.

Breaking2
Dirichlet no longer uses const generics, so its size is not required at compile time.
Dirichlet
Moves Dirichlet into the new multi module and implements MultiDistribution for it.
DirichletMultiDistributionmulti
Platform1
Bumps the minimum supported Rust version to 1.85.0 and moves to Edition 2024, in line with rand.