blob: 7ac9130257461f49dcbd9912b990592a1011d4c6 [file] [log] [blame]
#!/usr/bin/env bash
set -eux
# Normalize working directory to root of repository.
cd "$(dirname "${BASH_SOURCE[0]}")"/..
# Re-generates all files which may need to be re-generated after changing crate_universe.
bazel run //crate_universe/3rdparty:crates_vendor
bazel run //tools/rust_analyzer/3rdparty:crates_vendor
for d in examples/crate_universe/vendor_*; do
(cd "${d}" && CARGO_BAZEL_REPIN=true bazel run :crates_vendor)
done
for d in examples/crate_universe* test/no_std
do
(cd "${d}" && CARGO_BAZEL_REPIN=true bazel query //... >/dev/null)
done
# `nix_cross_compiling` special cased as `//...` will invoke Nix.
(cd examples/nix_cross_compiling && CARGO_BAZEL_REPIN=true bazel query @crate_index//... >/dev/null)