blob: d24f651e78a8735f3ed78d33effc61b528f88f1f [file] [view]
# Developing crate_universe examples
## Bootstrapping
Crate Universe examples require a bootstrapping process the first time
`rules_rust` is checked out. To setup the examples, run the following
bazel commands:
```shell
bazel run //vendor_external:crates_vendor
bazel run //vendor_local_manifests:crates_vendor
bazel run //vendor_local_patching:crates_vendor
bazel run //vendor_local_pkgs:crates_vendor
bazel run //vendor_remote_manifests:crates_vendor
bazel run //vendor_remote_pkgs:crates_vendor
```
## Repinning/Updating Dependencies
After bootstrapping, Bazel lockfiles can be regenerated by running the following:
```shell
CARGO_BAZEL_REPIN=1 bazel test //...
```
For more information on repinning, see: https://bazelbuild.github.io/rules_rust/crate_universe.html#repinning--updating-dependencies