blob: 27916d979bcb721aa5ec7c01526618c9b3530048 [file] [log] [blame]
#!/usr/bin/env bash
set -eu
# 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* 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)