← 输入框|github.com|刷新
Skip to content

rustpython-stdlib compilation failure with old mt19937 dependency #8025

Closed

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".

Activity

  1. fanninpm commented on Jun 4, 2026

    @fanninpm
    Contributor

    Are you sure it's not related to #8010?

  2. AsmPrgmC3 commented on Jun 4, 2026

    @AsmPrgmC3
    Author

    That PR specifies mt19937 = "3.3" so this doesn't apply anymore. I didn't see the PR when making this issue, but it did indeed fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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