Skip to content

Upgrading rand 0.5 to 0.6

Breaking0.5.6 → 0.6.5Breaking1Platform2New16Changed19Fixed8Other9

BreakingUpgrade verdict

1 breaking change and 2 platform requirement changes.

  • Remove usage of Rc from ThreadRng ().
  • Uniform supports inclusive ranges: Uniform::from(a..=b).
  • Support for i128 and u128 is automatically enabled for Rust >= 1.26.
3 items need code or config changes

Adds autocfg ^0.1, average ^0.9.2, packed_simd ^0.3, rand_chacha ^0.1, rand_hc ^0.1, rand_isaac ^0.1, rand_jitter ^0.1, rand_os ^0.1, rand_pcg ^0.1, rand_xorshift ^0.1, rand_xoshiro ^0.1.

Drops bincode, cloudabi, fuchsia-cprng, serde, serde_derive, stdweb.

Installs 31 packages in all (was 42).

Breaking1
Remove usage of Rc from ThreadRng ().
RcThreadRng
Platform2
Uniform supports inclusive ranges: Uniform::from(a..=b).
UniformUniform::from(a..=b)
Support for i128 and u128 is automatically enabled for Rust >= 1.26.
i128u128i128_support