Repository navigation
Releases
0.75.0
0.75.0
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
bazel_dep(name = "rules_rust", version = "0.75.0")Extensions
Bindgen
bazel_dep(name = "rules_rust_bindgen", version = "0.75.0")MdBook
bazel_dep(name = "rules_rust_mdbook", version = "0.75.0")Prost
bazel_dep(name = "rules_rust_prost", version = "0.75.0")PyO3
bazel_dep(name = "rules_rust_pyo3", version = "0.75.0")Wasm-Bindgen
bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.75.0")What's Changed
- Add regression testing for override_target annotations by @UebelAndre in #4248
- Remove use of run_shell by @UebelAndre in #4252
- Allow lint configuration on PyO3 extensions by @mkanat in #4256
- Move off deprecated grep-includes alias by @keith in #4259
- Remove unused _grep_includes attribute by @keith in #4261
- feat(mdbook): allow default configuration by @tomatotomata in #4207
- Move coverage tooling to
//rust/coverageby @UebelAndre in #4257 - Prevent bindgen from filtering "-O..." flags. by @slackito in #4269
- rust: build lint runners for the test execution platform by @jrandolf in #4278
- Added Rust 1.98.1 by @u9g in #4280
- Build the coverage collector for the test execution platform by @jrandolf in #4273
- Set the Apple deployment target for rustc from the linker args by @drakeo338 in #4282
- Honor build-script execution constraints in compilation and run actions by @jrandolf in #4270
- Fix rust_analyzer_proc_macro_srv on Windows by setting PATH in launcher by @PJB3005 in #4286
- Add support for riscv64gc-unknown-fuchsia by @jayzhuang in #4294
- Support
cc_libtargets that only provide a dynamic library by @backtr4ce in #4249 - rustdoc: align the doctest runner with the test platform by @jrandolf in #4279
- Map all generated input roots into legacy doctest runfiles by @jrandolf in #4271
- rustdoc: preserve the test invocation environment by @jrandolf in #4277
- cargo: apply explicit lint config to build scripts by @jrandolf in #4275
- Preserve runtime files for compiled doctests by @jrandolf in #4272
- Disable link_deps warning for proc macros by @slackito in #4308
- cargo: propagate target-scoped build-script linker arguments by @jrandolf in #4304
- rust: include macOS LLVM runtime libraries by @jrandolf in #4303
- Order rust lints before clippy lints to allow ignoring unknown lints by @erickt in #4030
- Catch unrecognized processor warnings from LLVM by @schachmat in #4316
- Automatically assign needs-triage label by @inzombieack in #4318
- Normalize Clang forwarded system header paths by @cerisier in #4321
- Provide defaults for optional CrateInfo fields in _create_crate_info by @inzombieack in #4322
- Change cfg default from depset to list by @inzombieack in #4324
- Add a dlltool attribute to rust_toolchain by @chouquette in #4330
- rust_bindgen_library: support cc_lib targets with only a dynamic library by @backtr4ce in #4251
- toolchains: add
*_toolchain_aliasrules by @UebelAndre in #4335 - Export rust_lto_flag from //rust:defs.bzl by @dimorinny in #4338
- Support Windows Python import libraries in the PyO3 toolchain by @mkanat in #4341
- don't pass link_deps to py_pyo3_library by @comicfans in #4334
- Add loongarch64 host toolchain support by @Chris-wh233 in #4150
- Don't link libresolv by default on Darwin/MacOS by @Zer0-One in #4326
- Add a Cargo toolchain by @UebelAndre in #4339
- Resolve the C++ toolchain through rules_cc by @UebelAndre in #4347
- Added Rust 1.99.1 by @UebelAndre in #4311
- Update end-of-life CI runners by @UebelAndre in #4343
- Release 0.75.0 by @UebelAndre in #4340
New Contributors
- @mkanat made their first contribution in #4256
- @tomatotomata made their first contribution in #4207
- @jrandolf made their first contribution in #4278
- @u9g made their first contribution in #4280
- @drakeo338 made their first contribution in #4282
- @PJB3005 made their first contribution in #4286
- @backtr4ce made their first contribution in #4249
- @erickt made their first contribution in #4030
- @schachmat made their first contribution in #4316
- @inzombieack made their first contribution in #4318
- @chouquette made their first contribution in #4330
- @dimorinny made their first contribution in #4338
- @comicfans made their first contribution in #4334
- @Chris-wh233 made their first contribution in #4150
- @Zer0-One made their first contribution in #4326
Full Changelog: 0.74.0...0.75.0
0.74.0
0.74.0
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
bazel_dep(name = "rules_rust", version = "0.74.0")Extensions
Bindgen
bazel_dep(name = "rules_rust_bindgen", version = "0.74.0")MdBook
bazel_dep(name = "rules_rust_mdbook", version = "0.74.0")Prost
bazel_dep(name = "rules_rust_prost", version = "0.74.0")PyO3
bazel_dep(name = "rules_rust_pyo3", version = "0.74.0")Wasm-Bindgen
bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.74.0")What's Changed
- Fix release notes by @UebelAndre in #4174
- Check for nightly toolchain when enabling split debug info. by @slackito in #4186
- Include link_deps in Rust runfiles by @finn-ball in #4204
- Fixes lockfile checksum for non-root repo by @mathetake in #3866
- Upgrade
cargo-lockfrom v10 to v11 by @Silic0nS0ldier in #4228 - Fix Windows GNU staticlib output naming by @cerisier in #4231
- Fix rust_bindgen's clang include path and dep wiring by @AustinSchuh in #4218
- fix(rustdoc): link doc tests against the cc_toolchain's runtime libs by @marvin-hansen in #4220
- Preserve native final-link requirements through rust_static_library by @cerisier in #4232
- Updated granularity of docs summary by @UebelAndre in #4195
- Add RISC-V Linux host toolchain support by @Xeonacid in #4237
- [crate_universe] Implemented logic for having splicer follow .bazelignore by @rdelfin in #4219
- fix: prefix pwd for compiler response file paths by @KirillTim in #4216
- Ignore existing buildifier configs for crate_universe vendoring by @UebelAndre in #4205
- Add support for Rust ABI dynamic libraries by @buntonj in #4179
- Fix aliased crate handling in aliases attribute by @ashi009 in #3693
- use crate_info.owner for linker inputs, if available by @krasimirgg in #4177
- Support passing args to rustfmt by @UebelAndre in #4241
- Support
root_pathattribute incargo_build_scriptby @krasimirgg in #4243 - Add additional tests for aliases attribute by @UebelAndre in #4242
- Derive
dlltoolpath from the linker for Windows-GNU builds by @rdesgroppes in #4206 - Added Rust 1.98.0 by @UebelAndre in #4244
- fix external crate paths for gen_rust_project by @fee1-dead in #4200
- Don't delete CARGO_MANIFEST_DIR entries that shadow execroot entries by @HackAttack in #4236
- Fix rust-analyzer helix config by @UebelAndre in #4199
- Fix clang-cl paths in Cargo build script flags by @cerisier in #4247
- rust_bindgen_library: forward more attributes by @mhils in #4246
- Fix broken links to rust-analyzer docs by @tyler-breisacher-zipline in #4190
- Reduce size of cargo-bazel-lock.json by @UebelAndre in #4133
- Remap the exec root out of build script rustflags by @cpcwood in #4202
- flycheck: Fix label for source file by @tyler-breisacher-zipline in #4238
- Fix custom build script override key names by @alivenets in #4226
- Release 0.74.0 by @UebelAndre in #4245
New Contributors
- @mathetake made their first contribution in #3866
- @Silic0nS0ldier made their first contribution in #4228
- @AustinSchuh made their first contribution in #4218
- @Xeonacid made their first contribution in #4237
- @rdelfin made their first contribution in #4219
- @KirillTim made their first contribution in #4216
- @buntonj made their first contribution in #4179
- @fee1-dead made their first contribution in #4200
- @mhils made their first contribution in #4246
- @tyler-breisacher-zipline made their first contribution in #4190
- @cpcwood made their first contribution in #4202
- @alivenets made their first contribution in #4226
Full Changelog: 0.73.0...0.74.0
0.73.0
0.73.0
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
Bzlmod
bazel_dep(name = "rules_rust", version = "0.73.0")Extensions
Bindgen
Bzlmod
bazel_dep(name = "rules_rust_bindgen", version = "0.73.0")MdBook
Bzlmod
bazel_dep(name = "rules_rust_mdbook", version = "0.73.0")Prost
Bzlmod
bazel_dep(name = "rules_rust_prost", version = "0.73.0")PyO3
bazel_dep(name = "rules_rust_pyo3", version = "0.73.0")Wasm-Bindgen
Bzlmod
bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.73.0")What's Changed
- release: remove WORKSPACE snippets from release notes template by @georgesfarah in #4180
- fix(crate_universe): fix OUTPUT_BASE env var value format in crates_vendor by @georgesfarah in #4102
- Stabilizes per_crate_rustc_flag by @csmulhern in #4182
- fix(crate_universe): pass OUTPUT_BASE as --output_base startup flag to bazel info by @georgesfarah in #4183
- Set
toolchainparameter totoolchain_typeinstead ofNoneby @FabianWolff in #4185 - Add build_script_env_files crate annotation by @finn-ball in #4166
- Release 0.73.0 by @finn-ball in #4187
New Contributors
- @georgesfarah made their first contribution in #4180
Full Changelog: 0.72.0...0.73.0
0.72.0
0.72.0
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
Bzlmod
bazel_dep(name = "rules_rust", version = "0.72.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-A1ZcC1Yw8IZa/HCUY6J5GucUvpzi3CD56sOcnPBvk3k=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.72.0/rules_rust-0.72.0.tar.gz"],
)Extensions
Bindgen
bazel_dep(name = "rules_rust_bindgen", version = "0.72.0")MdBook
bazel_dep(name = "rules_rust_mdbook", version = "0.72.0")Prost
bazel_dep(name = "rules_rust_prost", version = "0.72.0")PyO3
bazel_dep(name = "rules_rust_pyo3", version = "0.72.0")Wasm-Bindgen
bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.72.0")What's Changed
- add a mnemonic to a cargo dep env action by @krasimirgg in #4123
- fix: prefix pwd for imacros flag by @gl3nnleblanc in #4116
- rustc: add support for split debuginfo by @slackito in #4092
- Tolerate partial build failures during rust-analyzer discovery by @mgeisler in #4127
- Fix Clippy errors from #4127 by @mgeisler in #4129
- fix: declare rustfmt aspect action toolchain by @keegancsmith in #4128
- Fix unresolved
${out_dir}token in dep env files by @basvandijk in #4124 - Fixes BEP path handling for rust analyzer specs by @csmulhern in #4130
- Fix rust-analyzer selecting the wrong proc-macro cfg by @UebelAndre in #4137
- Add jsonc support for rust-analyzer setup by @UebelAndre in #4126
- Fix rust-analyzer proc-macro merge for k8-opt-exec paths by @TrapsterDK in #4140
- Return repo_metadata from repository rules by @keith in #4146
- Add rust-analyzer clippy end-to-end test by @alexconrey in #4147
- Added Rust 1.97.0 by @UebelAndre in #4144
- Move flags passed in
rust_flagsnear the end of the rustc invocation. by @slackito in #4135 - Add lint test rules for transitive targets by @alexconrey in #4156
- Added Rust 1.97.1 by @UebelAndre in #4155
- Point CARGO_MANIFEST_DIR to transformed sources dir by @sin-ack in #4154
- Reexport output groups for rustfmt and clippy tests by @alexconrey in #4158
- Add
root_pathattribute for directory crate roots by @krasimirgg in #4142 - Fix NoneType error in rustdoc by @UebelAndre in #4159
- add a docstring for _get_crate_root_path (no functional changes intended) by @krasimirgg in #4162
- deprecate force_all_deps_direct in favor of extra_named_deps by @krasimirgg in #4160
- Add
cargo_build_script.use_cc_toolchainby @UebelAndre in #4161 - Handle PIC/NOPIC correctly in establish_cc_info by @jakos-sec in #4131
- Add
RunfilesBuilderto runfiles by @UebelAndre in #4170 - Fix crate_universe deps interface by @UebelAndre in #4134
- Propagate wasm runfiles by @UebelAndre in #4168
- Avoid force excluding
bazel-*in vscode by @UebelAndre in #4169 - crate_universe: move build-script dep to extra_deps by @ashi009 in #4090
- Respect
--instrumentation_filerfor Rust coverage by @UebelAndre in #4173 - Release 0.72.0 by @UebelAndre in #4171
New Contributors
- @gl3nnleblanc made their first contribution in #4116
- @keegancsmith made their first contribution in #4128
- @basvandijk made their first contribution in #4124
- @TrapsterDK made their first contribution in #4140
- @alexconrey made their first contribution in #4147
- @sin-ack made their first contribution in #4154
- @jakos-sec made their first contribution in #4131
- @ashi009 made their first contribution in #4090
Full Changelog: 0.71.3...0.72.0
0.71.3
0.71.3
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
Bzlmod
bazel_dep(name = "rules_rust", version = "0.71.3")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-h8txtdi9xcNfgjdTBYX+R9CEsxKDucJx+OPvezmkTQM=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.3/rules_rust-0.71.3.tar.gz"],
)Extensions
Bindgen
Bzlmod
bazel_dep(name = "rules_rust_bindgen", version = "0.71.3")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_bindgen",
integrity = "sha256-h8txtdi9xcNfgjdTBYX+R9CEsxKDucJx+OPvezmkTQM=",
strip_prefix = "extensions/bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.3/rules_rust-0.71.3.tar.gz"],
)MdBook
Bzlmod
bazel_dep(name = "rules_rust_mdbook", version = "0.71.3")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_mdbook",
integrity = "sha256-h8txtdi9xcNfgjdTBYX+R9CEsxKDucJx+OPvezmkTQM=",
strip_prefix = "extensions/mdbook",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.3/rules_rust-0.71.3.tar.gz"],
)Prost
Bzlmod
bazel_dep(name = "rules_rust_prost", version = "0.71.3")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_prost",
integrity = "sha256-h8txtdi9xcNfgjdTBYX+R9CEsxKDucJx+OPvezmkTQM=",
strip_prefix = "extensions/prost",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.3/rules_rust-0.71.3.tar.gz"],
)PyO3
bazel_dep(name = "rules_rust_pyo3", version = "0.71.3")Wasm-Bindgen
Bzlmod
bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.71.3")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_wasm_bindgen",
integrity = "sha256-h8txtdi9xcNfgjdTBYX+R9CEsxKDucJx+OPvezmkTQM=",
strip_prefix = "extensions/wasm_bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.3/rules_rust-0.71.3.tar.gz"],
)What's Changed
- Disable path mapping when rustc_env has location expansions by @airtrick-rgb in #4117
- Add cross-platform compatible launcher for rust-analyzer by @UebelAndre in #4118
- Added Rust 1.96.1 by @UebelAndre in #4121
- Add path-mapping test for env location expansion by @UebelAndre in #4120
- Release 0.71.3 by @UebelAndre in #4119
New Contributors
- @airtrick-rgb made their first contribution in #4117
Full Changelog: 0.71.2...0.71.3
0.71.2
0.71.2
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
Bzlmod
bazel_dep(name = "rules_rust", version = "0.71.2")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-BxpuWCzy8nl4ICZvMmXbsnJ7RHSGNm2ezBd9oVI7Ea0=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.2/rules_rust-0.71.2.tar.gz"],
)Extensions
Bindgen
Bzlmod
bazel_dep(name = "rules_rust_bindgen", version = "0.71.2")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_bindgen",
integrity = "sha256-BxpuWCzy8nl4ICZvMmXbsnJ7RHSGNm2ezBd9oVI7Ea0=",
strip_prefix = "extensions/bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.2/rules_rust-0.71.2.tar.gz"],
)MdBook
Bzlmod
bazel_dep(name = "rules_rust_mdbook", version = "0.71.2")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_mdbook",
integrity = "sha256-BxpuWCzy8nl4ICZvMmXbsnJ7RHSGNm2ezBd9oVI7Ea0=",
strip_prefix = "extensions/mdbook",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.2/rules_rust-0.71.2.tar.gz"],
)Prost
Bzlmod
bazel_dep(name = "rules_rust_prost", version = "0.71.2")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_prost",
integrity = "sha256-BxpuWCzy8nl4ICZvMmXbsnJ7RHSGNm2ezBd9oVI7Ea0=",
strip_prefix = "extensions/prost",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.2/rules_rust-0.71.2.tar.gz"],
)PyO3
bazel_dep(name = "rules_rust_pyo3", version = "0.71.2")Wasm-Bindgen
Bzlmod
bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.71.2")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_wasm_bindgen",
integrity = "sha256-BxpuWCzy8nl4ICZvMmXbsnJ7RHSGNm2ezBd9oVI7Ea0=",
strip_prefix = "extensions/wasm_bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.2/rules_rust-0.71.2.tar.gz"],
)What's Changed
- Restore
crate_universe/extension.bzlshim with a deprecation warning by @rdesgroppes in #4114 - Avoid reliance on bazel-bin for rust-analyzer IDE setup by @UebelAndre in #4112
- Release 0.71.2 by @UebelAndre in #4115
New Contributors
- @rdesgroppes made their first contribution in #4114
Full Changelog: 0.71.1...0.71.2
0.71.1
0.71.1
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
Bzlmod
bazel_dep(name = "rules_rust", version = "0.71.1")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-V+O4kW/YOa3NYn1D+ixJB1PLgsyjTHmGvwZ2P/PX95k=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.1/rules_rust-0.71.1.tar.gz"],
)Extensions
Bindgen
Bzlmod
bazel_dep(name = "rules_rust_bindgen", version = "0.71.1")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_bindgen",
integrity = "sha256-V+O4kW/YOa3NYn1D+ixJB1PLgsyjTHmGvwZ2P/PX95k=",
strip_prefix = "extensions/bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.1/rules_rust-0.71.1.tar.gz"],
)MdBook
Bzlmod
bazel_dep(name = "rules_rust_mdbook", version = "0.71.1")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_mdbook",
integrity = "sha256-V+O4kW/YOa3NYn1D+ixJB1PLgsyjTHmGvwZ2P/PX95k=",
strip_prefix = "extensions/mdbook",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.1/rules_rust-0.71.1.tar.gz"],
)Prost
Bzlmod
bazel_dep(name = "rules_rust_prost", version = "0.71.1")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_prost",
integrity = "sha256-V+O4kW/YOa3NYn1D+ixJB1PLgsyjTHmGvwZ2P/PX95k=",
strip_prefix = "extensions/prost",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.1/rules_rust-0.71.1.tar.gz"],
)PyO3
bazel_dep(name = "rules_rust_pyo3", version = "0.71.1")Wasm-Bindgen
Bzlmod
bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.71.1")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_wasm_bindgen",
integrity = "sha256-V+O4kW/YOa3NYn1D+ixJB1PLgsyjTHmGvwZ2P/PX95k=",
strip_prefix = "extensions/wasm_bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.1/rules_rust-0.71.1.tar.gz"],
)What's Changed
- Add
link_depscrate_universe annotation by @UebelAndre in #4109 - Fix publish-to-bcr author by @UebelAndre in #4108
Full Changelog: 0.71.0...0.71.1
0.71.0
0.71.0
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
Bzlmod
bazel_dep(name = "rules_rust", version = "0.71.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-g0at73TIXo7jtOlEoIjrCrtw4HceXkwTQvu5StCNWdI=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.0/rules_rust-0.71.0.tar.gz"],
)Extensions
Bindgen
Bzlmod
bazel_dep(name = "rules_rust_bindgen", version = "0.71.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_bindgen",
integrity = "sha256-g0at73TIXo7jtOlEoIjrCrtw4HceXkwTQvu5StCNWdI=",
strip_prefix = "extensions/bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.0/rules_rust-0.71.0.tar.gz"],
)MdBook
Bzlmod
bazel_dep(name = "rules_rust_mdbook", version = "0.71.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_mdbook",
integrity = "sha256-g0at73TIXo7jtOlEoIjrCrtw4HceXkwTQvu5StCNWdI=",
strip_prefix = "extensions/mdbook",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.0/rules_rust-0.71.0.tar.gz"],
)Prost
Bzlmod
bazel_dep(name = "rules_rust_prost", version = "0.71.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_prost",
integrity = "sha256-g0at73TIXo7jtOlEoIjrCrtw4HceXkwTQvu5StCNWdI=",
strip_prefix = "extensions/prost",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.0/rules_rust-0.71.0.tar.gz"],
)PyO3
bazel_dep(name = "rules_rust_pyo3", version = "0.71.0")Wasm-Bindgen
Bzlmod
bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.71.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_wasm_bindgen",
integrity = "sha256-g0at73TIXo7jtOlEoIjrCrtw4HceXkwTQvu5StCNWdI=",
strip_prefix = "extensions/wasm_bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.71.0/rules_rust-0.71.0.tar.gz"],
)What's Changed
- Remove non-deterministic files from OUT_DIR to fix TreeArtifact cache misses by @jsharpe in #3973
- Don't leak default_shell_env into published CrateInfo.rustc_env by @JSGette in #3990
- Include
compile_datatargets inrustc_envlocation expansion forrust_testby @tamasvajk in #4000 - Move
crate_universeexamples to test dir by @UebelAndre in #3981 - Delete android example by @UebelAndre in #3954
- Ignore unknown warning flags in bindgen by @stephenduong1004 in #4004
- Update rustfmt to work with mixed generated srcs by @UebelAndre in #3983
- Remove WORKSPACE support by @UebelAndre in #4005
- feat: Add BPF triple constraint mapping by @tamird in #3696
- Fixes behavior of rust_generated_srcs within the rust-analyzer aspect by @csmulhern in #3836
- Fix platform label context in rule transitions by @tamasvajk in #3997
- Fix ordering of
--remap-path-prefixflags. by @slackito in #4008 - Add crate_edition helper macro. by @lukasoyen in #4018
- Add additional baremetal platform triples by @davexroth in #4019
- Added support for additional platform triples by @UebelAndre in #4010
- Handle all
-isystemvariant flags in cargo build script path rewriting by @tamasvajk in #3996 - Add support for
experimental_output_pathsby @UebelAndre in #4011 - Add issue templates by @slackito in #4025
- Fix RBE jobs by @UebelAndre in #4032
- mdbook: fix support for external repositories by @mgeisler in #4027
- Add tests for mdbook plugins by @mgeisler in #4028
- Add test for
mdbooksources from different places by @mgeisler in #4029 - Always use param files to handle large rustc commands by @UebelAndre in #4038
- Update wasm-bindgen to 0.2.121 by @anagrius in #4043
- Remove is_proc_macro_dep. by @slackito in #4052
- Fix
OUT_DIRsanitization incargo_build_scriptby @UebelAndre in #4050 - Add extra_exec_rustc_flags_triples to toolchain attributes by @Ahajha in #3911
- Remove placeholder for Google-internal import macro. by @slackito in #4058
- Pass --config skip_children=true to rustfmt by @martingms in #4059
- Strip whitespace from paths before prefixing ${pwd} by @gergondet-woven in #4054
- Update CONTRIBUTING.md by @scentini in #4051
- Fix incorrect exec transition for cargo_build_script by @UebelAndre in #4040
- Support
--incompatible_exclude_starlark_flags_from_exec_config. by @slackito in #4056 - feature: introduce link_deps attribute for native library linkage by @Suyashagarw in #4024
- Added Rust 1.96.0 by @UebelAndre in #4060
- Expose
opt_levelinrustextension by @UebelAndre in #4061 - Consume cc deps with PIC when rustc emits PIE binaries by @UebelAndre in #4062
- Split rustdoc test compilation and execution by @UebelAndre in #4034
- Fix bindgen C++17 transition on Windows by @UebelAndre in #4069
- Rename using_cxx test to ext_annotations by @UebelAndre in #4041
- Statically link crate_universe for MSVC by @UebelAndre in #4031
- Update crate_universe boringssl with openssl by @UebelAndre in #4048
- Added
label_injectionto crate_universe annotations by @UebelAndre in #3755 - Add extensions_bindgen_ios task in CI to verify iOS cross-compilation by @vaibhav-1207 in #4071
- Fixes rust-analyzer include_dirs for crates with generated sources by @csmulhern in #3840
- Prefix execroot-relative file arguments with pwd by @martin4861 in #4067
- Add support for build script runfiles by @UebelAndre in #4066
- Fix rust_doc_test linking with native libraries by @patrickmscott in #4080
- Support path mapping in Rust Starlark actions by @dabanki in #4063
- Update pyo3 to 0.29.0 by @mypmc in #4085
- Added support for rustc self-profiling by @1vipulgupta in #4073
- Update label_injections to work transitively by @UebelAndre in #4081
- Add attestation support to releases by @UebelAndre in #4077
- Fix failing test in rolling bazel version by @UebelAndre in #4076
- Resolve
<binary>.runfiles_manifestfrom argv[0] inRunfiles::create()by @UebelAndre in #4086 - Move rust/toolchain.bzl implementation into rust/private by @UebelAndre in #4087
- fix(cargo_build_script): expand ${pwd} for execpaths and locations in build_script_env by @psalaberria002 in #4088
- Remove C Python headers from pyo3 build actions by @Ahajha in #4095
- Suppress noisy build script warnings by @pauldraper in #4046
- Add
discoverConfigSupport for rust-analyzer by @UebelAndre in #4075 - Consolidate crate_universe generated
defs.bzlintocrates.bzlby @UebelAndre in #4094 - remove mention of cc_deps from warning message by @krasimirgg in #4099
- Fix coverage for crates with mixed sources by @UebelAndre in https://github.com/bazelbuil...
0.70.0
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 https:...
0.69.0
0.69.0
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
Bzlmod
bazel_dep(name = "rules_rust", version = "0.69.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-u8dkwlLQYSgbI1knek1GSA4tz69yr8HObgCtpYzL/Uw=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.69.0/rules_rust-0.69.0.tar.gz"],
)Extensions
Bindgen
Bzlmod
bazel_dep(name = "rules_rust_bindgen", version = "0.69.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_bindgen",
integrity = "sha256-u8dkwlLQYSgbI1knek1GSA4tz69yr8HObgCtpYzL/Uw=",
strip_prefix = "extensions/bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.69.0/rules_rust-0.69.0.tar.gz"],
)MdBook
Bzlmod
bazel_dep(name = "rules_rust_mdbook", version = "0.69.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_mdbook",
integrity = "sha256-u8dkwlLQYSgbI1knek1GSA4tz69yr8HObgCtpYzL/Uw=",
strip_prefix = "extensions/mdbook",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.69.0/rules_rust-0.69.0.tar.gz"],
)Prost
Bzlmod
bazel_dep(name = "rules_rust_prost", version = "0.69.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_prost",
integrity = "sha256-u8dkwlLQYSgbI1knek1GSA4tz69yr8HObgCtpYzL/Uw=",
strip_prefix = "extensions/prost",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.69.0/rules_rust-0.69.0.tar.gz"],
)Protobuf
Bzlmod
bazel_dep(name = "rules_rust_protobuf", version = "0.69.0")
register_toolchains(
"@rules_rust_pyo3//toolchains:toolchain",
"@rules_rust_pyo3//toolchains:rust_toolchain",
)WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_protobuf",
integrity = "sha256-u8dkwlLQYSgbI1knek1GSA4tz69yr8HObgCtpYzL/Uw=",
strip_prefix = "extensions/protobuf",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.69.0/rules_rust-0.69.0.tar.gz"],
)PyO3
bazel_dep(name = "rules_rust_pyo3", version = "0.69.0")Wasm-Bindgen
Bzlmod
bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.69.0")WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_wasm_bindgen",
integrity = "sha256-u8dkwlLQYSgbI1knek1GSA4tz69yr8HObgCtpYzL/Uw=",
strip_prefix = "extensions/wasm_bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.69.0/rules_rust-0.69.0.tar.gz"],
)What's Changed
- Pin to bazel 8.4.2 by @illicitonion in #3804
- bindgen: remove extra trailing space in check for --rust-edition flags by @durin42 in #3799
- Do not include libraries when compiling by @hlopko in #3801
- Fix missing backtick in extensions.bzl by @mgeisler in #3806
- feat: pyo3 support module prefix + naming by @andyscott in #3726
- chore(docs): add starter repo instructions to README by @alexeagle in #3825
- Switch stamping detection to ctx.configuration.stamp_binaries() by @justinhorvitz in #3816
- Fix stamping for rules that don't have a stamp attribute by @justinhorvitz in #3829
- Add Rust 1.92.0 and 1.93.0. by @PiotrSikora in #3820
- fix: support
external_include_pathsin rust_bindgen by @lalten in #3819 - cargo_build_script: allow files for the fake tools defaults by @krasimirgg in #3822
- Make libclang attr as optional in the rust_bindgen_toolchain by @vaibhav-1207 in #3788
- [3844] Use rootpath for wrapper root for determinism by @finn-ball in #3845
- Add platform triple arm-unknown-linux-musleabi by @martin4861 in #3821
- Fix Windows CRLF Issue by @timbess in #3455
- Fix typo in module_bzl.j2 documentation by @hofbi in #3793
- Load cc symbols for bazel9 by @dzbarsky in #3789
- fix: Return repo_metadata from repository rules in rust/repositories.bzl by @mortenmj in #3855
- Add 'build_script_exec_properties' to 'crate.annotation' by @alloveras in #3852
- Add Rust 1.93.1. by @PiotrSikora in #3861
- Provide rust toolchain type in rustdoc action by @FaBrand in #3863
- Include *.rmeta files in stdlib sysroot glob by @redsun82 in #3860
- use an empty staticlib as an allocator library for cc_common.link by @krasimirgg in #3864
- Bump default version of rustc. by @UebelAndre in #3562
- Release 0.69.0 by @illicitonion in #3848
New Contributors
- @mgeisler made their first contribution in #3806
- @andyscott made their first contribution in #3726
- @justinhorvitz made their first contribution in #3816
- @martin4861 made their first contribution in #3821
- @timbess made their first contribution in #3455
- @alloveras made their first contribution in #3852
- @redsun82 made their first contribution in #3860
Full Changelog: 0.68.1...0.69.0