rustfs
rustfs copied to clipboard
Update rand requirement from 0.3 to 0.8 in /rustfs
Updates the requirements on rand to permit the latest version.
Changelog
Sourced from rand's changelog.
[0.8.0] - 2020-12-18
Platform support
- The minimum supported Rust version is now 1.36 (#1011)
getrandomupdated to v0.2 (#1041)- Remove
wasm-bindgenandstdwebfeature flags. For details of WASM support, see the getrandom documentation. (#948)ReadRng::next_u32andnext_u64now use little-Endian conversion instead of native-Endian, affecting results on Big-Endian platforms (#1061)- The
nightlyfeature no longer implies thesimd_supportfeature (#1048)- Fix
simd_supportfeature to work on current nightlies (#1056)Rngs
ThreadRngis no longerCopyto enable safe usage within thread-local destructors (#1035)gen_range(a, b)was replaced withgen_range(a..b).gen_range(a..=b)is also supported. Note thataandbcan no longer be references or SIMD types. (#744, #1003)- Replace
AsByteSliceMutwithFilland add support for[bool], [char], [f32], [f64](#940)- Restrict
rand::rngs::adaptertostd(#1027; see also #928)StdRng: add newstd_rngfeature flag (enabled by default, but might need to be used if disabling default crate features) (#948)StdRng: Switch from ChaCha20 to ChaCha12 for better performance (#1028)SmallRng: Replace PCG algorithm with xoshiro{128,256}++ (#1038)Sequences
- Add
IteratorRandom::choose_stableas an alternative tochoosewhich does not depend on size hints (#1057)- Improve accuracy and performance of
IteratorRandom::choose(#1059)- Implement
IntoIteratorforIndexVec, replacing theinto_itermethod (#1007)- Add value stability tests for
seqmodule (#933)Misc
- Support
PartialEqandEqforStdRng,SmallRngandStepRng(#979)- Added a
serde1feature and added Serialize/Deserialize toUniformIntandWeightedIndex(#974)- Drop some unsafe code (#962, #963, #1011)
- Reduce packaged crate size (#983)
- Migrate to GitHub Actions from Travis+AppVeyor (#1073)
Distributions
Alphanumericsamples bytes instead of chars (#935)Uniformnow supportschar, enablingrng.gen_range('A'..='Z')(#1068)- Add
UniformSampler::sample_single_inclusive(#1003)Weighted sampling
- Implement weighted sampling without replacement (#976, #1013)
rand::distributions::alias_method::WeightedIndexwas moved torand_distr::WeightedAliasIndex. The simpler alternativerand::distribution::WeightedIndexremains. (#945)- Improve treatment of rounding errors in
WeightedIndex::update_weights(#956)WeightedIndex: return error on NaN instead of panic (#1005)Documentation
- Document types supported by
random(#994)
Commits
98a1aafMerge pull request #1076 from dhardy/work46082d5Fix installation of multilibd109f18Update changelog for rand v0.8cc93daeMerge pull request #1079 from JJPennington/master9aa8bc1Modified the StdRng documentation34423a6Use cp to create redirectd4b180dMerge pull request #1078 from rust-random/work21959b1aAdjust homepage to point at the booke9adf45Switch documentation links to docs.rsda3458bAdd HTML redirect- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language@dependabot badge mewill comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot dashboard:
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)