Add a crate which wraps `getrandom` but always compiles
authorMatt Corallo <git@bluematt.me>
Mon, 12 Feb 2024 22:37:09 +0000 (22:37 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 16 Feb 2024 20:34:40 +0000 (20:34 +0000)
commit65108a022f6321df1e1ae35bf56114642d7cf89e
tree5452449c22497698643bfb10bca0b55415fdc74a
parent73da722d18af7b510711c405154d81c1c9458942
Add a crate which wraps `getrandom` but always compiles

In the next commit we'll drop the `ahash` dependency in favor of
directly calling `getrandom` to seed our hash tables. However,
we'd like to depend on `getrandom` only on certain platforms *and*
only when certain features (no-std) are set.

This introduces an indirection crate to do so, allowing us to
depend on it only when `no-std` is set but only depending on
`getrandom` on platforms which it supports.
Cargo.toml
ci/check-cfg-flags.py
no-std-check/Cargo.toml
possiblyrandom/Cargo.toml [new file with mode: 0644]
possiblyrandom/src/lib.rs [new file with mode: 0644]