Skip to content

libstd requires explicit version of rand crate #62308

Closed
@jasonbking

Description

@jasonbking

Most everything else in the rustc repo that needs the rand crate is specifying "0.6" for the version, while libstd has "0.6.1" in its Cargo.toml. Unfortunately, this prevented rust from building on illumos systems without manually patching the rand crate (and is a blocker for #55553) in ~/.cargo/.... (without patching, anything using the rand functions will crash with an illegal system call error). The rand crate itself was fixed in Feb, but the libstd dependency on 0.6.1 prevents any fixed version from being used.

It seems likely there must have been a reason to not rely on semver like all the other components, but it's not obvious what it was/if it's still relevant, so it's not clear if merely updating libstd's Cargo.toml to "0.6" is sufficient, or if something more is required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions