Skip to content

rustpython-stdlib compilation failure with old mt19937 dependency #8025

Description

@AsmPrgmC3

Summary

I just had a compilation failure for rustpython-stdlib 0.5.0, because the dependency on mt19937 <= 3.2 is not specific enough.

Details

rustpython-stdlib specifies a dependency of mt19937 = "<=3.2" in the Cargo.toml (workspace), but that's not specific enough. The constant mt19937::N was made public in version 3.1. Multiple required methods (like get_state() and get_index() also didn't exist before 3.1.

A cargo update did fix the issue, but it'd be nice if that wasn't necessary. I therefore propose to change the dependency to mt19337 = ">=3.1, <=3.2".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions