Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update rand requirement from 0.8 to 0.9#1201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sfackler merged 1 commit intomasterfromdependabot/cargo/rand-0.9
Feb 2, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabotdependabotbot commented on behalf ofgithubJan 28, 2025

Updates the requirements onrand to permit the latest version.

Changelog

Sourced fromrand's changelog.

[0.9.0] - 2025-01-27

Security and unsafe

  • Policy: "rand is not a crypto library" (#1514)
  • Remove fork-protection fromReseedingRng andThreadRng. Instead, it is recommended to callThreadRng::reseed on fork. (#1379)
  • Usezerocopy to replace someunsafe code (#1349,#1393,#1446,#1502)

Dependencies

Features

  • Supportstd feature withoutgetrandom orrand_chacha (#1354)
  • Enable featuresmall_rng by default (#1455)
  • Remove implicit featurerand_chacha; usestd_rng instead. (#1473)
  • Rename featureserde1 toserde (#1477)
  • Rename featuregetrandom toos_rng (#1537)
  • Add featurethread_rng (#1547)

API changes: rand_core traits

  • Add fnRngCore::read_adapter implementingstd::io::Read (#1267)
  • Add traitCryptoBlockRng: BlockRngCore; maketrait CryptoRng: RngCore (#1273)
  • Add traitsTryRngCore,TryCryptoRng (#1424,#1499)
  • Renamefn SeedableRng::from_rng ->try_from_rng and add infallible variantfn from_rng (#1424)
  • Renamefn SeedableRng::from_entropy ->from_os_rng and add fallible variantfn try_from_os_rng (#1424)
  • Add boundsClone andAsRef to associated typeSeedableRng::Seed (#1491)

API changes: Rng trait and top-level fns

  • Rename fnrand::thread_rng() torand::rng() and remove from the prelude (#1506)
  • Remove fnrand::random() from the prelude (#1506)
  • Add top-level fnsrandom_iter,random_range,random_bool,random_ratio,fill (#1488)
  • Re-introduce fnRng::gen_iter asrandom_iter (#1305,#1500)
  • Rename fnRng::gen torandom to avoid conflict with the newgen keyword in Rust 2024 (#1438)
  • Rename fnsRng::gen_range torandom_range,gen_bool torandom_bool,gen_ratio torandom_ratio (#1505)
  • Annotate panicking methods with#[track_caller] (#1442,#1447)

API changes: RNGs

  • Fix<SmallRng as SeedableRng>::Seed size to 256 bits (#1455)
  • Remove first parameter (rng) ofReseedingRng::new (#1533)

API changes: Sequences

  • Split traitSliceRandom intoIndexedRandom,IndexedMutRandom,SliceRandom (#1382)
  • AddIndexedRandom::choose_multiple_array,index::sample_array (#1453,#1469)

API changes: Distributions: renames

  • Rename modulerand::distributions torand::distr (#1470)
  • Rename distributionStandard toStandardUniform (#1526)
  • Movedistr::Slice ->distr::slice::Choose,distr::EmptySlice ->distr::slice::Empty (#1548)
  • Rename traitdistr::DistString ->distr::SampleString (#1548)
  • Renamedistr::DistIter ->distr::Iter,distr::DistMap ->distr::Map (#1548)

... (truncated)

Commits

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version.- [Release notes](https://github.com/rust-random/rand/releases)- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md)- [Commits](rust-random/rand@0.8.5...0.9.0)---updated-dependencies:- dependency-name: rand  dependency-type: direct:production...Signed-off-by: dependabot[bot] <support@github.com>
@dependabotdependabotbot added the dependenciesPull requests that update a dependency file labelJan 28, 2025
@sfacklersfackler merged commite00ceb1 intomasterFeb 2, 2025
1 of 4 checks passed
@dependabotdependabotbot deleted the dependabot/cargo/rand-0.9 branchFebruary 2, 2025 20:30
@sfacklersfackler mentioned this pull requestFeb 2, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

dependenciesPull requests that update a dependency file

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@sfackler

[8]ページ先頭

©2009-2025 Movatter.jp