0.58.0
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
Bzlmod
bazel_dep(name = "rules_rust", version = "0.58.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-liB1wWSmA/Q/tKPRlhWrkeQbzQWByNovcKGu8nOB/lM=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.58.0/rules_rust-0.58.0.tar.gz"],
)
Extensions
Bindgen
Bzlmod
bazel_dep(name = "rules_rust_bindgen", version = "0.58.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_bindgen",
integrity = "sha256-liB1wWSmA/Q/tKPRlhWrkeQbzQWByNovcKGu8nOB/lM=",
strip_prefix = "extensions/bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.58.0/rules_rust-0.58.0.tar.gz"],
)
MdBook
Bzlmod
bazel_dep(name = "rules_rust_mdbook", version = "0.58.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_mdbook",
integrity = "sha256-liB1wWSmA/Q/tKPRlhWrkeQbzQWByNovcKGu8nOB/lM=",
strip_prefix = "extensions/mdbook",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.58.0/rules_rust-0.58.0.tar.gz"],
)
Prost
Bzlmod
bazel_dep(name = "rules_rust_prost", version = "0.58.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_prost",
integrity = "sha256-liB1wWSmA/Q/tKPRlhWrkeQbzQWByNovcKGu8nOB/lM=",
strip_prefix = "extensions/prost",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.58.0/rules_rust-0.58.0.tar.gz"],
)
Protobuf
Bzlmod
bazel_dep(name = "rules_rust_protobuf", version = "0.58.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_protobuf",
integrity = "sha256-liB1wWSmA/Q/tKPRlhWrkeQbzQWByNovcKGu8nOB/lM=",
strip_prefix = "extensions/protobuf",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.58.0/rules_rust-0.58.0.tar.gz"],
)
Wasm-Bindgen
Bzlmod
bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.58.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_wasm_bindgen",
integrity = "sha256-liB1wWSmA/Q/tKPRlhWrkeQbzQWByNovcKGu8nOB/lM=",
strip_prefix = "extensions/wasm_bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.58.0/rules_rust-0.58.0.tar.gz"],
)
What's Changed
- Support new
cargo::
prefixes in build script outputs. by @joell in #3211 - Fix duplicate aliases generated by cargo-bazel when metadata contains… by @havasd in #3215
- Disable
--incompatible_autoload_externally=
as it's unusable in Bazel8 by @UebelAndre in #3214 - Update mdbook to 0.4.44 by @UebelAndre in #3217
- Migrated nix example to bzlmod. by @UebelAndre in #3208
- Add regression test for build.rs generated features by @UebelAndre in #3207
- Add missing bzl modules to examples by @UebelAndre in #3219
- Move buildifier to github actions by @UebelAndre in #3226
- Advertise CrateInfo and DepInfo from the import macro by @sam-mccall in #3220
- Mark cargo internal extension as reproducible by @cerisier in #3237
- Fixed broken protoc toolchain in examples by @UebelAndre in #3221
- Added Rust 1.84.1 by @UebelAndre in #3225
- Add support for
CARGO_BAZEL_DEBUG=TRACE
level logging by @UebelAndre in #3238 - Remove unused code from WORKSPACE files in extensions by @UebelAndre in #3222
- Reduce number of default
supported_platform_triples
for crate_universe by @UebelAndre in #3239 - Set $CARGO in cargo_build_scripts by @illicitonion in #3245
- Replace uses of //tools/cpp:toolchain_utils.bzl with @rules_cc//cc:find_cc_toolchain.bzl by @comius in #3263
- only set $CARGO if toolchain.cargo is set by @krasimirgg in #3275
- Ensure crate_universe modules don't override intermediates for debugging by @UebelAndre in #3244
- Improved release notes by @UebelAndre in #3248
- Upgrade rules_cc and platforms bzlmod pins by @UebelAndre in #3265
- Fix + for semver meta by @ericmcbride in #3277
- Added expected providers to
rust_prost_library
. by @UebelAndre in #3276 - Silence noisy cross_rs warnings by @UebelAndre in #3268
- Allow unpretty aspect to run on
rust_shared_library
targets. by @UebelAndre in #3273 - Patch out old deps from transitive prost extension deps by @UebelAndre in #3264
- Fixed crate_universe when using Rust >= 1.85.0 by @UebelAndre in #3251
- Add note about private crate registries by @ericmcbride in #3278
- Merge all runfiles of
@bazel_tools//tools/bash/runfiles
by @fmeum in #3292 - Allow target names containing
.
for rust_test_suite macro. by @vaibhav-1207 in #3298 - map system from "darwin" to "macos" when parsing triple by @christianscott in #3296
- Add 2024 edition to rustfmt tool by @havasd in #3288
- feat: Create aliases for build dependencies by @bakjos in #3229
- Fix incorrect replacement field in LTO error message by @HackAttack in #3283
- Ran buildifier by @UebelAndre in #3301
- bindgen: don't
register_toolchains
in Bzlmod by @lalten in #3231 - Propagate cc_library defines to clang by @nbdd0121 in #3271
- Add prost and tonic deps in rust-project.json if needed for proto by @hauserx in #3270
- Add
build_script_link_deps
to crate annotation system. by @abezukor in #3272 - Reorganized
//tools
package by @UebelAndre in #3303 - Moved
@rules_rust//tools/runfiles
to@rules_rust//rust/runfiles
by @UebelAndre in #3294 - Add *.rmeta to rustc_lib rule by @Neo-Zhixing in #3290
- Added Rust 1.85.0 by @UebelAndre in #3281
- fix: add NIX_LDs vars to work on NixOS by @UebelAndre in #3304
- Handle debug info packages separately when using
cc_common.link
by @yuzhy8701 in #3257 - Use
--remote_download_all
when buildingrust_analyzer_crate_spec
s by @martingms in #3192 - Release 0.58.0 by @UebelAndre in #3302
- Fixed release github workflow. by @UebelAndre in #3305
New Contributors
- @joell made their first contribution in #3211
- @comius made their first contribution in #3263
- @vaibhav-1207 made their first contribution in #3298
- @christianscott made their first contribution in #3296
- @bakjos made their first contribution in #3229
- @lalten made their first contribution in #3231
- @abezukor made their first contribution in #3272
- @Neo-Zhixing made their first contribution in #3290
Full Changelog: 0.57.1...0.58.0