Upgrading num-bigint 0.4 to 0.5
Breaking0.4.8 → 0.5.1Breaking2Deprecated1Changed1Fixed1
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- 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.
Must act 3 items need code or config changes
Adds rand_core ^0.9.
Installs 21 packages in all (was 17).
What you must change
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_10Splits the
RandBigInt extension trait into BigRng09 and BigRng010, one per rand version.RandBigIntBigRng09BigRng010Deprecations to plan for
Deprecated1
Deprecates the
gen_* methods in favor of new random_* methods.gen_*random_*