NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #3111 most downloaded on crates.io
Runfiles lookup library for Bazel-built Rust binaries and tests.
Latest stable
0.3.0
Last release 3 months ago
27 Jul 2026
Release timing varies
gaps range from 4 months to 3.3 years
Nearly every release is documented
notes for 3 of 3 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
3 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
`python load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_rust", sha256 = "7987b82e322d106462812677eb9a
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "7987b82e322d106462812677eb9a801c027fbe46483f497f390d4b94a2b47543",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.3.0/rules_rust-v0.3.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
rust_test example which doesn't build. by @cfredric in https://github.com/bazelbuild/rules_rust/pull/1267rust_test example. by @cfredric in https://github.com/bazelbuild/rules_rust/pull/1280edition attrs by @dtolnay in https://github.com/bazelbuild/rules_rust/pull/1257rules_rust version to 0.3.0 by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1288Full Changelog: https://github.com/bazelbuild/rules_rust/compare/0.2.1...0.3.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Delete deprecated rules targets by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1210
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "39655ab175e3c6b979f362f55f58085528f1647957b0e9b3a07f81d8a9c3ea0a",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.2.0/rules_rust-v0.2.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
_import_macro_dep in exec mode by @scentini in https://github.com/bazelbuild/rules_rust/pull/1203rules targets by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1210crate_universe dependency macros by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1208stamp = 0 in rust_binary_without_process_wrapper by @krasimirgg in https://github.com/bazelbuild/rules_rust/pull/1218crate_index repository to crate_universe_crate_index by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1217crate_universe clippy defects by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1228rust_doc_test for crate_universe by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1232//tools/rust_analyzer by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1234crates_repository deleting .cargo/config.toml files. by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1227rust_repositories with rust_register_toolchains in docs by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1237crate_universe version to 0.2.0 by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1239rules_rust version to 0.2.0 by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1235Full Changelog: https://github.com/bazelbuild/rules_rust/compare/0.1.0...0.2.0
Replace the deprecated proto_source_root attribute. by @lberki in https://github.com/bazelbuild/rules_rust/pull/241
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "7453856d239a004c9e29cde2e45903a068446e4a69501ee7393faf08e1a30403",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.1.0/rules_rust-v0.1.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
ctx.action with ctx.actions.{run, run_shell} by @mfarrugi in https://github.com/bazelbuild/rules_rust/pull/151CARGO_MANIFEST_DIR by @GregBowyer in https://github.com/bazelbuild/rules_rust/pull/180CcInfo for staticlib & cdylib allowing rust outputs to be used in c++ rules by @GregBowyer in https://github.com/bazelbuild/rules_rust/pull/361rust_test by @GregBowyer in https://github.com/bazelbuild/rules_rust/pull/373CcDep info related to rust_test by @GregBowyer in https://github.com/bazelbuild/rules_rust/pull/379bazel_version repository to avoid conflict by @wchargin in https://github.com/bazelbuild/rules_rust/pull/460grpc flag to is_grpc to make it more apparent it's a bool by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/518BAZEL_VERSION for detection of pre-1.0 Bazel. by @jmillikin in https://github.com/bazelbuild/rules_rust/pull/508greet method, instead of greeting by @diohabara in https://github.com/bazelbuild/rules_rust/pull/533cargo_build_script_runner + ran rustfmt by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/538load_arbitrary_tool required sha256s attribute. by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/545bazel sync by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/544load_arbitrary_tool causing it to require attrs by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/554Label macro wherever possible by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/543i386, armv7, and openbsd. by @jmillikin in https://github.com/bazelbuild/rules_rust/pull/509io_bazel_rule_rust to rules_rust by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/500env attribute to rust_test rule by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/577//rust/platform:macos alias by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/593crate_name attribute when setting CARGO_CRATE_NAME. by @martinboehme in https://github.com/bazelbuild/rules_rust/pull/669name_to_crate_name to test binary names. by @martinboehme in https://github.com/bazelbuild/rules_rust/pull/670rust_test_suite macro by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/679crate_universe now renders json formatted lockfiles by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/692crate_universe by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/705rustfmt rules and aspects. by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/722rustfmt_aspect now appropriately uses a config by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/748examples/crate_universe directory by @bcmyers in https://github.com/bazelbuild/rules_rust/pull/759use_libtest_harness attribute to rust_test by @hlopko in https://github.com/bazelbuild/rules_rust/pull/754//tools/rustfmt to //:rustfmt by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/761out_dir_tar attribute by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/769rustfmt_generator rule by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/790test package is no longer reliant on @examples repository by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/789toolchain argument of collect_deps was unused. Removing it. by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/798_tidy function to the utils module as dedent by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/793create_universe no longer assumes the name of rust_repository repos by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/805cargo_build_script source code. by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/816rust_common.create_crate_info by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/818rust_stdlib_filegroup rule, a helper for creating toolchains by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/802crate attribute in wrapper rules with proc-macro targets. by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/807crate attribute to rustdoc rules (deprecated dep) by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/799crate_universe documentation from README into docs by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/826noclippy tag by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/824rust_toolchain components. by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/792rust_binary::out_binary by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/772compile_data attribute can now be gathered from dependencies by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/814-Lnative/-lstatic when linking native dependencies by @krasimirgg in https://github.com/bazelbuild/rules_rust/pull/841rust_clippy_aspect by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/851tut.actions consistently across unit tests by @krasimirgg in https://github.com/bazelbuild/rules_rust/pull/853exec configuration to rust_toolchain::rustc_lib by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/856construct_arguments now generates separate Args sets by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/850//test/load_arbitrary_tool/... tests for windows by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/860self-contained object files (musl). by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/829//proto docs to generated docs in //docs by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/873//rust:defs.bzl for cargo_build_script.bzl by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/875//proto rules to provide all required dependencies. by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/868rust_doc_test targets on windows by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/888rules_rust by @hlopko in https://github.com/bazelbuild/rules_rust/pull/832rust_test_binary by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/880//tools/rustfmt to dynamically work within rules_rust itself by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/883rustc_compile_action now requires an explicit attr param by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/886cargo_bootstrap_repository rule by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/891rules_foreign_cc version for examples by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/895default_edition and default_version to rust_common by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/897--extern flags passed to rustc by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/892rules_nodejs for wasm_bindgen rules by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/890rust_wasm_bindgen error messaging by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/914rust_repositories from redefining toolchains by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/922cargo_bootstrap_repository by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/932rust_benchmark rule by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/938rules_foreign_cc to 0.6.0 by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/940rustc_env_files by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/946rules_cc and rules_proto versions by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/945bazel_skylib to 1.1.1 by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/957cargo_bootstrap_repository not triggering on changes to srcs by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/959rules_cc and bazel_stardoc versions by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/965incompatible_make_rust_providers_target_independent flag by @scentini in https://github.com/bazelbuild/rules_rust/pull/967rustc_compile_action to threat all dependencies as direct depenencies by @scentini in https://github.com/bazelbuild/rules_rust/pull/970cargo_build_script breakage when SYSROOT is specified by @scentini in https://github.com/bazelbuild/rules_rust/pull/976cargo_build_script by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/985cargo_build_script bin names by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/10061.56.1 by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1007rustc_env_file can now render workspace status stamp format strings by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/9830.2.78 and rules_nodejs to 4.4.4 by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/984cc_toolchain issues for rust_doc rules by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1021display_name when consolidating crate specs by @reiyw in https://github.com/bazelbuild/rules_rust/pull/1039DepInfo.transitive_crate_outputs field by @scentini in https://github.com/bazelbuild/rules_rust/pull/1053DepInfo.transitive_libs by @scentini in https://github.com/bazelbuild/rules_rust/pull/1054cargo:rustc-link-arg=FLAG instruction in build script runner by @ddeville in https://github.com/bazelbuild/rules_rust/pull/1061incompatible_disable_custom_test_launcher by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1070pdb_file output group by @ddeville in https://github.com/bazelbuild/rules_rust/pull/1065.dSYM package in OutputGroupInfo for cdylib and bin targets on darwin by @ddeville in https://github.com/bazelbuild/rules_rust/pull/1072incompatible_disable_custom_test_launcher fiip by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1085incompatible_disable_custom_test_launcher by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1079dep attribute from rustdoc rules by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1086bzl_library targets to have a more discoverable name by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1088build_bazel_rules_nodejs to 4.6.0 by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1087incompatible_disable_custom_test_launcher and related code by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1095rust_toolchain.rust_lib to rust_toolchain.rust_std by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1102cargo_bootstrap_repository. by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1101rustc bundles mandatory for rust_toolchain. by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1104rules_rust_dependencies and rust_register_toolchains macros by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1105rust_toolchain with depsets by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1109rust_doc_test using execpath paths instead of rootpath by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1129rust_toolchain now generates a Rust sysroot by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1119rust_toolchain by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1136bazel-skylib by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1137import macro prototype. by @cfredric in https://github.com/bazelbuild/rules_rust/pull/1142rust_proto_library targets. by @cfredric in https://github.com/bazelbuild/rules_rust/pull/1145transform_deps. by @cfredric in https://github.com/bazelbuild/rules_rust/pull/1150cargo_bootstrap_repository binaries by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1160user.bazelrc support to each workspace. by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1161crates_universe rule with crates_repository by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1158cargo_build_script to forward rustc args to build scripts by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1165crate.spec being ignored in crate_universe rules. by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1174rust_toolchain.llvm_tools consistent with rust_std by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1180cargo-raze outputs with v0.15.0 by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1184crate_universe dependencies by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1196crate_universe to version 0.1.0. by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1197rules_rust version to 0.1.0. by @UebelAndre in https://github.com/bazelbuild/rules_rust/pull/1198Note truncated.
One column per quarter.