xref: /aosp_15_r20/external/bazelbuild-rules_rust/examples/bazel_env/README.md (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1# rules_rust with bazel_env
2
3This example uses [bazel_env.bzl](https://github.com/buildbuddy-io/bazel_env.bzl) to
4provide `cargo`, `cargo-clippy`, `rustc` and `rustfmt` from the bazel toolchains
5to the user. They will be available directly in the PATH when the user
6enters this directory and has [direnv](https://direnv.net/) set up.
7
8Advantages:
9
10- The user doesn't have to install the toolchains themselves.
11- The tool versions will always match exactly those that bazel uses.
12