Skip to content

Upgrading num-bigint 0.4 to 0.5

Breaking0.4.8 → 0.5.1Breaking2Deprecated1Changed1Fixed1

BreakingUpgrade verdict

2 breaking changes.

  • If you use random number generation with this crate, you now pick a feature matching the version of the rand library you depend on, instead of a single rand feature.
  • Code that imported RandBigInt to generate random big integers must now import the trait matching its rand version.
  • The old gen_ methods still work but are deprecated; switch to the new random_ methods.
3 items need code or config changes

Adds rand_core ^0.9.

Installs 21 packages in all (was 17).

Breaking2
Splits the rand feature into rand_0_9, rand_core_0_9, rand_0_10, and rand_core_0_10 features for rand v0.9 and v0.10.
randrand_corerand_0_9rand_core_0_9rand_0_10rand_core_0_10
Splits the RandBigInt extension trait into BigRng09 and BigRng010, one per rand version.
RandBigIntBigRng09BigRng010
Deprecated1
Deprecates the gen_* methods in favor of new random_* methods.
gen_*random_*