1*d4726bddSHONG Yifan# Developing crate_universe examples 2*d4726bddSHONG Yifan 3*d4726bddSHONG Yifan## Bootstrapping 4*d4726bddSHONG Yifan 5*d4726bddSHONG YifanCrate Universe examples require a bootstrapping process the first time 6*d4726bddSHONG Yifan`rules_rust` is checked out. To setup the examples, run the following 7*d4726bddSHONG Yifanbazel commands: 8*d4726bddSHONG Yifan 9*d4726bddSHONG Yifan```shell 10*d4726bddSHONG Yifanbazel run //vendor_external:crates_vendor 11*d4726bddSHONG Yifanbazel run //vendor_local_manifests:crates_vendor 12*d4726bddSHONG Yifanbazel run //vendor_local_pkgs:crates_vendor 13*d4726bddSHONG Yifanbazel run //vendor_remote_manifests:crates_vendor 14*d4726bddSHONG Yifanbazel run //vendor_remote_pkgs:crates_vendor 15*d4726bddSHONG Yifan``` 16*d4726bddSHONG Yifan 17*d4726bddSHONG Yifan## Repinning/Updating Dependencies 18*d4726bddSHONG Yifan 19*d4726bddSHONG YifanAfter bootstrapping, Bazel lockfiles can be regenerated by running the following: 20*d4726bddSHONG Yifan 21*d4726bddSHONG Yifan```shell 22*d4726bddSHONG YifanCARGO_BAZEL_REPIN=1 bazel test //... 23*d4726bddSHONG Yifan``` 24*d4726bddSHONG Yifan 25*d4726bddSHONG YifanFor more information on repinning, see: https://bazelbuild.github.io/rules_rust/crate_universe.html#repinning--updating-dependencies 26*d4726bddSHONG Yifan 27