Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
env/ | 04-Jul-2025 | - | 14 | 11 | ||
rust/hello_world/ | 04-Jul-2025 | - | 43 | 22 | ||
.bazelignore | D | 04-Jul-2025 | 7 | 1 | 1 | |
.bazelrc | D | 04-Jul-2025 | 519 | 16 | 11 | |
.envrc | D | 04-Jul-2025 | 321 | 8 | 5 | |
.gitignore | D | 04-Jul-2025 | 9 | 2 | 1 | |
BUILD.bazel | D | 04-Jul-2025 | 1.1 KiB | 51 | 47 | |
Cargo.lock | D | 04-Jul-2025 | 155 | 8 | 6 | |
Cargo.toml | D | 04-Jul-2025 | 63 | 5 | 5 | |
MODULE.bazel | D | 04-Jul-2025 | 902 | 45 | 37 | |
README.md | D | 04-Jul-2025 | 479 | 12 | 8 | |
WORKSPACE.bazel | D | 04-Jul-2025 | 36 | 2 | 1 | |
WORKSPACE.bzlmod | D | 04-Jul-2025 | 53 | 2 | 1 | |
cargo_test.sh | D | 04-Jul-2025 | 1.2 KiB | 47 | 23 | |
hello | D | 04-Jul-2025 | 386.8 KiB | |||
rustc_test.sh | D | 04-Jul-2025 | 1.1 KiB | 41 | 23 | |
rustfmt_test.sh | D | 04-Jul-2025 | 1.2 KiB | 41 | 21 |
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