Name Date Size #Lines LOC

..--

env/H25-Apr-2025-1411

rust/hello_world/H25-Apr-2025-4322

.bazelignoreH A D25-Apr-20257 11

.bazelrcH A D25-Apr-2025519 1611

.envrcH A D25-Apr-2025321 85

.gitignoreH A D25-Apr-20259 21

BUILD.bazelH A D25-Apr-20251.1 KiB5147

Cargo.lockH A D25-Apr-2025155 86

Cargo.tomlH A D25-Apr-202563 55

MODULE.bazelH A D25-Apr-2025902 4537

README.mdH A D25-Apr-2025479 128

WORKSPACE.bazelH A D25-Apr-202536 21

WORKSPACE.bzlmodH A D25-Apr-202553 21

cargo_test.shH A D25-Apr-20251.2 KiB4723

helloHD25-Apr-2025386.8 KiB

rustc_test.shH A D25-Apr-20251.1 KiB4123

rustfmt_test.shH A D25-Apr-20251.2 KiB4121

README.md

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