Releases: bazelbuild/rules_rust
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:/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:/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:/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:/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:/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:/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:/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:/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:/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
0.19.0
0.19.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "dc8d79fe9a5beb79d93e482eb807266a0e066e97a7b8c48d43ecf91f32a3a8f3",
urls = ["https:/bazelbuild/rules_rust/releases/download/0.19.0/rules_rust-v0.19.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Add
render_config
attribute tocrates_vendor
. by @UebelAndre in #1832 - Remove ios/android/wasm support for gen_rust_project deps by @P1n3appl3 in #1684
- Fix typo: plced -> placed by @kiron1 in #1834
- Fix code example in doc by @kiron1 in #1838
- fix: use target_triple struct instead of string by @wcalandro in #1835
- Fix tests for new Apple toolchain by @keith in #1844
- Fix test assertion for arm64 macs by @keith in #1845
- Make rust_clippy providers match rustfmt_test by @0x4da in #1806
- Silence windows build failure by @UebelAndre in #1863
- Support
[patch]
in crate_universe when using multipleCargo.toml
s by @UebelAndre in #1856 - Updated Rust to 1.67.1 by @UebelAndre in #1864
- Re-enable crate_universe MacOS tests by @UebelAndre in #1861
- Skip detecting abi for empty values by @UebelAndre in #1830
- Forward
toolchains
tocargo_build_script
targets by @UebelAndre in #1862 - crate_universe: Support fetching crates with git branch, tag or rev by @ted-logan in #1846
- Use
_make_link_flags_darwin
when target os isios
. by @thb-sb in #1843 - Add Fuchsia platform support by @P1n3appl3 in #1833
- Parallelize cargo tree calls by @JohnAmican in #1874
- Pipe stderr from cargo tree processes by @illicitonion in #1879
- Update crate_universe dependencies by @UebelAndre in #1872
- Make fetch_shas work with mktemp from coreutils 8.32 by @bsilver8192 in #1870
- Support sparse indexes by @illicitonion in #1857
- Added Rust 1.68.0 by @UebelAndre in #1866
- Add support for thumbv7em with hard float by @Codetector1374 in #1871
- Release rules_rust and cargo-bazel by @illicitonion in #1882
New Contributors
- @kiron1 made their first contribution in #1834
- @0x4da made their first contribution in #1806
- @thb-sb made their first contribution in #1843
- @JohnAmican made their first contribution in #1874
- @Codetector1374 made their first contribution in #1871
Full Changelog: 0.18.0...0.19.0