rand_core_compat

Crates.iorand_core_compat
lib.rsrand_core_compat
version0.1.0
created_at2025-03-19 10:53:48.004018+00
updated_at2025-03-19 10:53:48.004018+00
descriptionA compatibility layer for different versions of rand_core
homepage
repositoryhttps://github.com/tbu-/rand_core_compat
max_upload_size
id1597889
size29,519
Tobias Bucher (tbu-)

documentation

README

A compatibility layer for rand_core providing adaptation between traits for each version.

Select the rand_core/rand versions you want to have compatibility between using the crate features:

  • rand_core_0_5: rand_core 0.5/rand 0.7.
  • rand_core_0_6: rand_core 0.6/rand 0.8.
  • rand_core_0_9: rand_core 0.9/rand 0.9.

You then most likely want to wrap your RNG, e.g. of version rand_core 0.6/rand 0.8 in a [Rng06] struct. It'll implement the RngCore traits of all the other versions you selected via features.

Commit count: 5

cargo fmt