Skip to content

Incompatible with rand 0.9+ #8

Description

@dengelt

Using this crate with rand 0.9 or later (current version is 0.9.1) leads to a compile time error like this:

error[E0433]: failed to resolve: could not find `distributions` in `rand`
 --> src/lib.rs:7:10
  |
7 | #[derive(RandGen)]
  |          ^^^^^^^ could not find `distributions` in `rand`
  |
  = note: this error originates in the derive macro `RandGen` (in Nightly builds, run with -Z macro-backtrace for more info)

This is caused by rand 0.9.0 renaming some symbols:

  • module rand::distributions was renamed to rand::distr
  • distribution Standard was renamed to StandardUniform

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions