0.56.0
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
Bzlmod
bazel_dep(name = "rules_rust", version = "0.56.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-8TBqrAsli3kN8BrZq8arsN8LZUFsdLTvJ/Sqsph4CmQ=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.56.0/rules_rust-0.56.0.tar.gz"],
)
Extensions
Bindgen
Bzlmod
bazel_dep(name = "rules_rust_bindgen", version = "0.56.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_bindgen",
integrity = "sha256-8TBqrAsli3kN8BrZq8arsN8LZUFsdLTvJ/Sqsph4CmQ=",
strip_prefix = "extensions/bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.56.0/rules_rust-0.56.0.tar.gz"],
)
MdBook
Bzlmod
bazel_dep(name = "rules_rust_mdbook", version = "0.56.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_mdbook",
integrity = "sha256-8TBqrAsli3kN8BrZq8arsN8LZUFsdLTvJ/Sqsph4CmQ=",
strip_prefix = "extensions/mdbook",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.56.0/rules_rust-0.56.0.tar.gz"],
)
Prost
Bzlmod
bazel_dep(name = "rules_rust_prost", version = "0.56.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_prost",
integrity = "sha256-8TBqrAsli3kN8BrZq8arsN8LZUFsdLTvJ/Sqsph4CmQ=",
strip_prefix = "extensions/prost",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.56.0/rules_rust-0.56.0.tar.gz"],
)
Protobuf
Bzlmod
bazel_dep(name = "rules_rust_protobuf", version = "0.56.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_protobuf",
integrity = "sha256-8TBqrAsli3kN8BrZq8arsN8LZUFsdLTvJ/Sqsph4CmQ=",
strip_prefix = "extensions/protobuf",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.56.0/rules_rust-0.56.0.tar.gz"],
)
Wasm-Bindgen
Bzlmod
bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.56.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_wasm_bindgen",
integrity = "sha256-8TBqrAsli3kN8BrZq8arsN8LZUFsdLTvJ/Sqsph4CmQ=",
strip_prefix = "extensions/wasm_bindgen",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.56.0/rules_rust-0.56.0.tar.gz"],
)
What's Changed
- Added
out_name
attribute torust_wasm_bindgen
. by @UebelAndre in #3086 - Use rules_shell instead of built-in rules by @jwnimmer-tri in #3096
- Forward clippy, rustfmt, and rust-analyzer through wasm_bindgen by @UebelAndre in #3094
- Added bzlmod support to
test/no_std
by @UebelAndre in #3091 - Use
abs
from utils instead of the global by @avdv in #3075 - Added global setting for
cargo_build_script.use_default_shell_env
by @UebelAndre in #3065 - Remove unnecessary external dependencies by @UebelAndre in #3088
- Added
rust_prost_transform
rule for modifying granular proto_library by @UebelAndre in #3083 - Ignore .bazel symlinks as well as bazel- symlinks by @illicitonion in #3103
- Added
rules_mdbook
to extension modules. by @UebelAndre in #3105 - Support repository_set from bzlmod by @illicitonion in #3106
- Updated rules_rust_mdbook docs by @UebelAndre in #3108
- Added support for capturing snippets from wasm-bindgen by @UebelAndre in #3087
- Revert "rust_analyzer: don't build a tree of RustAnalyzerInfos (#3028)" by @UebelAndre in #3093
- feat: Add
//rust/settings:lto
by @ParkMyCar in #3104 - Do not cache rustc info in deps resolver by @hauserx in #3107
- Cut release 0.56.0 by @illicitonion in #3109
New Contributors
- @jwnimmer-tri made their first contribution in #3096
- @avdv made their first contribution in #3075
Full Changelog: 0.55.6...0.56.0