0.70.0
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
Bzlmod
bazel_dep(name = "rules_rust", version = "0.70.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-X/2f8fby8U8gV7fLqpGl5qzZpMve1ayB2tm+s2hZYB4=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.70.0/rules_rust-0.70.0.tar.gz"],
)Extensions
Bindgen
Bzlmod
bazel_dep(name = "rules_rust_bindgen", version = "0.70.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_bindgen",
integrity = "sha256-X/2f8fby8U8gV7fLqpGl5qzZpMve1ayB2tm+s2hZYB4=",
strip_prefix = "extensions/bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.70.0/rules_rust-0.70.0.tar.gz"],
)MdBook
Bzlmod
bazel_dep(name = "rules_rust_mdbook", version = "0.70.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_mdbook",
integrity = "sha256-X/2f8fby8U8gV7fLqpGl5qzZpMve1ayB2tm+s2hZYB4=",
strip_prefix = "extensions/mdbook",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.70.0/rules_rust-0.70.0.tar.gz"],
)Prost
Bzlmod
bazel_dep(name = "rules_rust_prost", version = "0.70.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_prost",
integrity = "sha256-X/2f8fby8U8gV7fLqpGl5qzZpMve1ayB2tm+s2hZYB4=",
strip_prefix = "extensions/prost",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.70.0/rules_rust-0.70.0.tar.gz"],
)PyO3
bazel_dep(name = "rules_rust_pyo3", version = "0.70.0")Wasm-Bindgen
Bzlmod
bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.70.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_wasm_bindgen",
integrity = "sha256-X/2f8fby8U8gV7fLqpGl5qzZpMve1ayB2tm+s2hZYB4=",
strip_prefix = "extensions/wasm_bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.70.0/rules_rust-0.70.0.tar.gz"],
)What's Changed
- Add the thumbv7em-none-eabihf target by @ngraf3255 in #3875
- platform: add Mac Catalyst triple mappings for crate_universe by @idy in #3872
- bindgen: also support -target by @divVerent in #3883
- Add support for
${pwd}for-L,-resource-dirandINCLUDEenv var by @ArchangelX360 in #3832 - cargo_build_script_runner: parse cargo::metadata key/value pairs by @sebas-zip in #3877
- Update default Rust versions to 1.94.0 / nightly-2026-03-05. by @PiotrSikora in #3886
- Address buildifier issues by @UebelAndre in #3887
- Add rust_objcopy attribute to rust_toolchan by @avrabe in #3727
- Remove rust_binary(out_binary=True) hack. by @PiotrSikora in #3891
- Add PWD prefixing for -internal-isystem by @keith in #3895
- chore: use publish to bcr reusable workflow for bcr mirroring by @kormide in #3775
- Add support for package_alias in crate.spec (bzlmod) by @nmattia in #3743
- Update
pyo3dependencies by @UebelAndre in #3898 - Fix reproducible warning in
crates_repositoryby @UebelAndre in #3904 - Delete "dummy" wasm cc_toolchain by @UebelAndre in #3892
- Update
crossforcrate_universebuilds by @UebelAndre in #3878 - Delete
rules_rust_protobufby @UebelAndre in #3873 - Port some bash scripts to pure shell by @UebelAndre in #3888
- Move
//cargospecific tests to//cargo/testsby @UebelAndre in #3874 - Make test binary names predictable by @UebelAndre in #3899
- Support escaped runfile paths by @moroten in #3910
- Enable coverage job in CI for RBE by @UebelAndre in #2005
- chore: pre-commit autoupdate by @hofbi in #3930
- Add patches making rust analyzer crates deterministic by @hofbi in #3929
- docs: Fix broken doc links by @hofbi in #3931
- Bump MSRV to 1.85.0 by @UebelAndre in #3936
- Add missing runfiles to pyo3 targets by @UebelAndre in #3917
- Added crates.io publishing for the Runfiles library by @UebelAndre in #3913
- Avoid adding data (vs compile_data) to Rustc actions by @UebelAndre in #3916
- Update crate_universe to run Buildifier on stdin by @UebelAndre in #3912
- Update
cargo_tomlto 0.22.1 andtomlto 0.9 by @mrkkrp in #3914 - Update rust-analyzer tool dependencies by @UebelAndre in #3935
- Fix determinism workflow by @UebelAndre in #3933
- Runfiles release 0.2.0 by @UebelAndre in #3938
- Add missing attributes to
rustmodule extension by @UebelAndre in #3947 - Update coverage to work with Bazel 9 by @UebelAndre in #3944
- Added Rust 1.94.1 by @UebelAndre in #3939
- Pull in various Windows improvements by @UebelAndre in #3940
- Fix
cargo_build_scripttree artifact failures by @UebelAndre in #3945 - Update cargo_toml in cargo/3rdparty by @mrkkrp in #3942
- Add avr-none triple support by @stefanbucur in #3950
- Move module_ctx.watch to after lockfile repin by @patrickmscott in #3932
- Support exec_compatible_with for Cargo build scripts by @gpanders in #3951
- Added
versiontorust_toolchainby @UebelAndre in #3952 - Revert "Pin to bazel 8.4.2 (#3804)" by @UebelAndre in #3867
- Fix missing line coverage by @UebelAndre in #3956
- Remap path prefixes for canonicalized paths by @UebelAndre in #3903
- Added
iso_dateandchanneltorust_toolchain. by @UebelAndre in #3957 - Add
--rust-targetto bindgen invocation by @UebelAndre in #3955 - Replace
new_git_repositorywithgit_repositoryby @willstranton in #3965 - Fix crates_repository cache invalidation on Bazel 8 by @menny in #3967
- Fix wasm staticlib extensions by @adincebic in #3968
- Pass all environment variables to vendoring by @patrickmscott in #3964
- Update
rust_stdlib_filegroupto detectprofiler_builtinsby @UebelAndre in #3958 - Wire rust_objcopy into the generated sysroot action inputs by @brianduff in #3972
- cargo-bazel: fix binary targets of proc-macro crates using wrong dep attribute by @lamcw in #3975
- crate_universe: error on empty host triples in cargo tree resolver by @bdolgov in #3979
- crate_universe release 0.18.0 by @UebelAndre in #3969
- Fix parse_cargo_tree_output misclassifying dev-dependencies as host deps by @jonremy in #3976
- Delete
//cargo/settings:incompatible_runfiles_cargo_manifest_dirby @UebelAndre in #3881 - Added Rust 1.95.0 by @UebelAndre in #3971
- Add
unstable_rust_featuresattribute by @FabianWolff in #3963 - Release 0.70.0 by @UebelAndre in #3959
- Updated
CrateInfo.datadocumentation by @UebelAndre in #3978
New Contributors
- @ngraf3255 made their first contribution in #3875
- @idy made their first contribution in #3872
- @divVerent made their first contribution in #3883
- @ArchangelX360 made their first contribution in #3832
- @sebas-zip made their first contribution in #3877
- @moroten made their first contribution in #3910
- @mrkkrp made their first contribution in #3914
- @stefanbucur made their first contribution in #3950
- @gpanders made their first contribution in #3951
- @willstranton made their first contribution in #3965
- @menny made their first contribution in #3967
- @adincebic made their first contribution in #3968
- @brianduff made their first contribution in #3972
- @lamcw made their first contribution in #3975
- @bdolgov made their first contribution in #3979
- @jonremy made their first contribution in #3976
Full Changelog: 0.69.0...0.70.0