Releases: bazelbuild/rules_rust
0.27.0
0.27.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "db89135f4d1eaa047b9f5518ba4037284b43fc87386d08c1d1fe91708e3730ae",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.27.0/rules_rust-v0.27.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Add
experimental_symlink_execroot
forcargo_build_script
. by @UebelAndre in #2085 - Fix doc for proc_macro_deps attr by @daivinhtran in #2095
- Fix typo in rust_proto documentation by @ryanpbrewster in #2099
- Make proc macros' "data" available in compile_data of crates that use macro by @dtolnay in #2097
- Update platforms by @keith in #2111
- Option to generate extra targets with crate_universe by @adsnaider in #2103
- Remove
mandatory = True
from theprost_plugin_flag
attribute inrust_prost_toolchain
. by @thb-sb in #2110 - Cleanup args construction by @dzbarsky in #2122
- Add crate_name attribute by @daivinhtran in #2118
- Make @using_cxx example buildable on Windows by @dtolnay in #2114
- Fix rust_doc_test dependency to allow either rust_library or cc_library by @HackAttack in #2112
- Read default annotation values from package's Cargo.toml metadata by @dtolnay in #2124
- Fill in some crate metadata for publishing cargo-bazel to crates.io by @dtolnay in #2132
- Add TemplateVariableInfo for build script toolchains attribute. by @granaghan in #2123
- Fix a typo in the
rust_proto
documentation. by @thb-sb in #2109 - Flip experimental_use_coverage_metadata_files by @UebelAndre in #2128
- Added Rust 1.72.0 by @UebelAndre in #2127
- crate_universe: Allow platform-specific build script env vars by @illicitonion in #2139
- Update rules_apple by @keith in #2137
- Release 0.27.0 by @UebelAndre in #2130
New Contributors
- @ryanpbrewster made their first contribution in #2099
- @adsnaider made their first contribution in #2103
- @dzbarsky made their first contribution in #2122
- @HackAttack made their first contribution in #2112
Full Changelog: 0.26.0...0.27.0
0.26.0
0.26.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "9d04e658878d23f4b00163a72da3db03ddb451273eb347df7d7c50838d698f49",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.26.0/rules_rust-v0.26.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Have the prost process wrapper print warnings to stderr by @UebelAndre in #2053
- Enable rustfmt in bindgen toolchains by default by @UebelAndre in #2055
- Removed legacy
//proto:*.bzl
files and updated docs by @UebelAndre in #2057 - Improve handling of build.rs link dependencies by @coffinmatician in #1970
- Add
opt_level
argument torust_repository_set
. by @konkers in #2036 - Update dependencies versions by @rickvanprim in #2064
- Updated wasm-bindgen dependencies by @UebelAndre in #2066
- Update rust_analyzer dependencies by @UebelAndre in #2065
- Updated crate_universe dependencies by @UebelAndre in #2063
- Disable zig cross compiling example by @UebelAndre in #2081
- Added Rust 1.71.0 by @UebelAndre in #2062
- Add a clang-format check in CI by @UebelAndre in #2077
- Remove cfg exec from linker_scripts attribute. by @granaghan in #2070
- Add support for split_coverage_post_processing by @UebelAndre in #2000
- Remove unnecessary eval to fix PATH variables containing a space by @belak in #2087
- Release 0.26.0 by @UebelAndre in #2083
New Contributors
- @coffinmatician made their first contribution in #1970
- @granaghan made their first contribution in #2070
- @belak made their first contribution in #2087
Full Changelog: 0.25.1...0.26.0
0.25.1
0.25.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "4a9cb4fda6ccd5b5ec393b2e944822a62e050c7c06f1ea41607f14c4fdec57a2",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.25.1/rules_rust-v0.25.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Consolidate rust_prost_library and fix extension-only proto generation. by @freeformstu in #2047
- Fix build failure finding crate_roots when mixed with generated sources by @UebelAndre in #2041
- Remove debug code. by @freeformstu in #2048
- Moved legacy protobuf rules to
proto/protobuf
by @UebelAndre in #2043 - Fix prost proto packages not sanitizing to valid module names by @UebelAndre in #2044
- Update tinyjson by @UebelAndre in #2050
- Release 0.25.1 by @freeformstu in #2049
Full Changelog: 0.25.0...0.25.1
0.25.0
0.25.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "0c2ff9f58bbd6f2a4fc4fbea3a34e85fe848e7e4317357095551a18b2405a01c",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.25.0/rules_rust-v0.25.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Allow sysroots from cc_toolchains to be added to bindgen actions by @UebelAndre in #2024
- Eliminate Rustfmt action in Bindgen rules. Bindgen can run rustfmt by @UebelAndre in #2025
- Exclude .tmp_git_root from globs by @cameron-martin in #1948
- Fix flaky coverage test in CI by @UebelAndre in #2028
- Re-enable zig example on CI by @illicitonion in #2030
- fix:
crate_type
more accurately corresponds to CC linking actions by @rickvanprim in #1975 - Add Prost and Tonic rules. by @freeformstu in #2033
- Release 0.25.0 by @freeformstu in #2042
Full Changelog: 0.24.1...0.25.0
0.24.1
0.24.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "190b5aeba104210f8ed9b1ff595d1f459297fe32db70f0a04f5c537a13ee0602",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.24.1/rules_rust-v0.24.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Update
rust_library_group
to useDepVariantInfo
by @UebelAndre in #2022 - Making rust_std attr in rust_toolchain mandatory by @daivinhtran in #1984
- Release 0.24.1 by @UebelAndre in #2023
New Contributors
- @daivinhtran made their first contribution in #1984
Full Changelog: 0.24.0...0.24.1
0.24.0
0.24.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "48e715be2368d79bc174efdb12f34acfc89abd7ebfcbffbc02568fcb9ad91536",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.24.0/rules_rust-v0.24.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Update bindgen version to 0.65.1 by @UebelAndre in #2008
- Fix thumbv* platform triple resolution by @UebelAndre in #2010
- Don't use startup:windows by @illicitonion in #2012
- Regenerated crate_universe outputs for all packages by @UebelAndre in #2011
- Make
rust_doc_test
inherit it's crate aliases attribute by @k1nkreet in #2007 - feature:
target_compatible_with
added toCommonAttrs
by @rickvanprim in #1976 - fix: load cargo manifest without resolving abs path of deps by @liningpan in #2017
- Fix crate_universe's
all_crate_deps
andaliases
functions failing in case the crate's Cargo.toml has condtional dependencies by @k1nkreet in #2018 - Rust library group by @william-smith-skydio in #1848
- Release v0.24.0 by @UebelAndre in #2020
New Contributors
- @k1nkreet made their first contribution in #2007
- @liningpan made their first contribution in #2017
- @william-smith-skydio made their first contribution in #1848
Full Changelog: 0.23.0...0.24.0
0.23.0
0.23.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "50ec4b84a7ec5370f5882d52f4a1e6b8a75de2f8dcc0a4403747b69b2c4ef5b1",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.23.0/rules_rust-v0.23.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Symlink in the exec-root so that relative paths will work, unchanged. by @freeformstu in #1781
- Fix typo in crate_universe-generated defs.bzl comment by @dtolnay in #1981
- Fix up anchor link by @illicitonion in #1987
- Set windows flags in platform-specific bazelrc by @illicitonion in #1988
- Fixes crates_vendor workspace name detection when using bzlmod by @csmulhern in #1990
- Added Rust 1.70.0 by @UebelAndre in #1991
- Add support for armv8-m by @afoxley in #1993
- Update stardoc version by @UebelAndre in #1997
- Update various bash scripts to pipe errors to stderr by @UebelAndre in #1999
- Split up cargo_build_script tests by @UebelAndre in #2002
- Update bindgen rules to build clang from source. by @UebelAndre in #1998
- Minor CI and test cleanup by @UebelAndre in #2004
- Fix code coverage collection. by @UebelAndre in #2001
- Release 0.23.0 by @UebelAndre in #2003
New Contributors
- @freeformstu made their first contribution in #1781
- @afoxley made their first contribution in #1993
Full Changelog: 0.22.0...0.23.0
0.22.0
0.22.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "50272c39f20a3a3507cb56dcb5c3b348bda697a7d868708449e2fa6fb893444c",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.22.0/rules_rust-v0.22.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Added tests for build script dependencies to crate_universe by @UebelAndre in #1943
- Rename crates_vendor_manifests to cvm to shorten windows path lengths by @scentini in #1944
- Support for
no_std
mode by @scentini in #1934 - Add T2 support for thumbv7em-none-eabi by @UebelAndre in #1957
- Removed
rust_toolchain.os
in favor ofrust_toolchain.exec_triple
. by @UebelAndre in #1960 - feature: expose
extra_rustc_flags
andextra_exec_rustc_flags
atrust_register_toolchains
by @rickvanprim in #1959 - fix: lld-link (MSVC) fix flags including
-l
prefix by @rickvanprim in #1958 - Add T2 support for x86_64-unknown-none by @amari in #1967
- Update rules_apple in tests by @keith in #1972
- Allow specifying exec and target compatibility constraints by @illicitonion in #1971
- Release 0.22.0 by @illicitonion in #1974
New Contributors
- @rickvanprim made their first contribution in #1959
- @amari made their first contribution in #1967
Full Changelog: 0.21.1...0.22.0
0.21.1
0.21.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "25209daff2ba21e818801c7b2dab0274c43808982d6aea9f796d899db6319146",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.21.1/rules_rust-v0.21.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Fix regression in building zlib by @UebelAndre in #1935
- Release 0.21.1 by @UebelAndre in #1936
Full Changelog: 0.21.0...0.21.1
0.21.0
0.21.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "a0a9c7bf3235bb0aaeaca333780e30155858e57c68083baf0970f60d21c05659",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.21.0/rules_rust-v0.21.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Support bzlmod by @cameron-martin in #1528
- Add empty rustfmt.toml by @P1n3appl3 in #1907
- Add Rust 1.68.2 by @gferon in #1908
- cc_common_link: also respect --custom_malloc if set by @durin42 in #1912
- Fix optional deps by platform by @gferon in #1911
- Handle corner case for windows architecture detection by @FaBrand in #1915
- [wasm-bindgen] Update to v0.2.84 by @oliverek12 in #1919
- Exclude target directory from release tars by @illicitonion in #1922
- Respect
#[global_allocator]
incc_common.link
builds by @scentini in #1926 - Make BuildInfo provider public by @illicitonion in #1920
- Added Rust 1.69.0 by @UebelAndre in #1930
- Updated zlib BUILD file to support darwin-arm64 by @UebelAndre in #1931
- Add support for rustc flags to
rust_proto_library
by @UebelAndre in #1932 - Release 0.21.0 by @UebelAndre in #1933
New Contributors
- @FaBrand made their first contribution in #1915
- @oliverek12 made their first contribution in #1919
Full Changelog: 0.20.0...0.21.0