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