fork/rules_rust

git clone https://git.julia.blue/fork/rules_rust

Julia RyanFixup rebase285c36a6

patching
4 folders5 files

files

empty_wasi/
forked_getrandom/
src/
vendor/
.gitignore156 B
BUILD.bazel731 B
Cargo.lock1.4 KiB
Cargo.toml479 B
README.md1.1 KiB

Local vendoring with patches

This demonstrates patching out crates when using the "local" vendor mode. The example crate just depends on rand, and we patch out two of the transitive deps:

The result of our getrandom patching is that our binary is always given the same value for seeding its rng. Therefore we can test that rand::random returns the same value to check that the patching behavior is working correctly.