Releases: bazelbuild/rules_rust
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
0.20.0
0.20.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "950a3ad4166ae60c8ccd628d1a8e64396106e7f98361ebe91b0bcfe60d8e4b60",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.20.0/rules_rust-v0.20.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Skip adding -lstatic to libtest and libstd on Darwin by @gferon in #1620
- Implement support for optional crates enabled with dep: features by @gferon in #1885
- Have rustdoc return its output directory instead of zip default. by @UebelAndre in #1868
- Added
rustdoc_flags
attribute to rust_doc rule by @UebelAndre in #1867 - Fixed rustdoc warnings in crate_universe by @UebelAndre in #1897
- Added Rust 1.68.1 by @UebelAndre in #1898
- Adds per_crate_rustc_flag build setting. by @csmulhern in #1827
- ci: fix test config in cc_common_link_ubuntu2004 by @krasimirgg in #1904
- Release v0.20.0 by @UebelAndre in #1900
Full Changelog: 0.19.1...0.20.0
0.19.1
0.19.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "b4e622a36904b5dd2d2211e40008fc473421c8b51c9efca746ab2ecf11dca08e",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.19.1/rules_rust-v0.19.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Fix triple constraints for iOS and watchOS by @gferon in #1888
- Deleted unused targets and cleanup docs by @UebelAndre in #1889
- Add runfiles support to rust_stdlib_filegroup by @hlopko in #1890
- Disable zig example by @UebelAndre in #1893
- Accumulate all features from cargo tree output by @gferon in #1884
- Release 0.19.1 by @UebelAndre in #1895
Full Changelog: 0.19.0...0.19.1