rust-random / getrandom

A small cross-platform library for retrieving random data from (operating) system source
Apache License 2.0
275 stars 180 forks source link

fix: Downgrade `libc` #422

Closed ratankaliani closed 4 months ago

ratankaliani commented 4 months ago

Overview

The most recent release of getrandom is dependent on libc ^0.2.154, which has been yanked from crates.io: https://crates.io/crates/libc/0.2.154. This PR downgrades libc to a version that is still on crates.io, 0.2.153.

Projects that are dependent on getrandom need to downgrade to a previous version of getrandom (ex. v0.2.14) to avoid seeing the following:

Updating crates.io index
error: failed to select a version for the requirement `libc = "^0.2.154"`
candidate versions found which didn't match: 0.2.153, 0.2.152, 0.2.151, ...
location searched: crates.io index
required by package `getrandom v0.2.15`
    ... which satisfies dependency `getrandom = "^0.2.15"` of package ...`
    ... which satisfies git dependency ... of package ... 
    (/home/runner/_work/...)`
perhaps a crate was updated and forgotten to be re-vendored