This example uses bazel_env.bzl to provide cargo, cargo-clippy, rustc and rustfmt from the bazel toolchains to the user. They will be available directly in the PATH when the user enters this directory and has direnv set up.
Advantages:
The user doesn't have to install the toolchains themselves.
The tool versions will always match exactly those that bazel uses.