xref: /aosp_15_r20/external/bazelbuild-rules_rust/examples/crate_universe_unnamed/DEVELOPMENT.md (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1# Developing crate_universe examples
2
3## Bootstrapping
4
5Crate Universe examples require a bootstrapping process the first time
6`rules_rust` is checked out. To setup the examples, run the following
7bazel commands:
8
9```shell
10bazel run //vendor_remote_manifests:crates_vendor
11bazel run //vendor_remote_pkgs:crates_vendor
12```
13
14## Repinning/Updating Dependencies
15
16After bootstrapping, Bazel lockfiles can be regenerated by running the following:
17
18```shell
19CARGO_BAZEL_REPIN=1 bazel test //...
20```
21
22For more information on repinning, see: https://bazelbuild.github.io/rules_rust/crate_universe.html#repinning--updating-dependencies
23