fork/rules_rust

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

Julia RyanAdd patching examplea4c87621

cleanup
4 folders5 files

files

empty_wasi/
forked_getrandom/
src/
vendor/
.gitignore107 B
BUILD.bazel741 B
Cargo.lock1.6 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 patch is that the 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.