Releases: bazelbuild/rules_rust
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
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://github.com/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
0.18.0
0.18.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "2466e5b2514772e84f9009010797b9cd4b51c1e6445bbd5b5e24848d90e6fb2e",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.18.0/rules_rust-v0.18.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
Breaking Changes
rust_toolchain.target_json
changed from a label to a string. Users can either move their existing json files into Starlark dicts or convert the sources on the fly with a repository rule (an example can be found in #1810)
What's Changed
- Unify functions for computing constraint values for platform triple abi by @UebelAndre in #1805
- Updated platform triple values from strings to structs ("triple") by @UebelAndre in #1804
- Convert
rust_toolchain
attrsexec_triple
andtarget_triple
to structs by @UebelAndre in #1808 - Delete
rust_toolchain.rusrc_srcs
by @UebelAndre in #1807 - Disable job in CI to avoid infrastructure failure. by @UebelAndre in #1816
- Added tests for the
triple
constructor by @UebelAndre in #1811 - Use correct dynamic link args fro proc-macro crates by @konkers in #1803
- support
resolver = "2"
target-specific features by @wmatthews-google in #1710 - Updated
rust_toolchain.target_json
to take encoded json strings by @UebelAndre in #1810 - Use env method recently added to cargo_metadata by @illicitonion in #1813
- Fixes resolver issue with root packages and another dependency format by @Dig-Doug in #1819
- Encapsulate running cargo into a struct by @illicitonion in #1815
- Instructions on how to perform
rustfmt
check (#1822) by @fmorency in #1823 - Added update known shas to include T1-T2 triples by @UebelAndre in #1824
- Various cleanups by @UebelAndre in #1828
- Updated rules_rust to version 0.18.0 by @UebelAndre in #1829
New Contributors
Full Changelog: 0.17.0...0.18.0
0.17.0
0.17.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "d125fb75432dc3b20e9b5a19347b45ec607fabe75f98c6c4ba9badaab9c193ce",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.17.0/rules_rust-v0.17.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Update clippy and rustfmt aspects to require CrateInfo providers by @UebelAndre in #1772
- Support
target_settings
inrust_repository_set
andrust_toolchain_repository
by @xortive in #1758 - rustdoc_test: substitute the root of the current crate by @bsilver8192 in #1777
- Disable broken clang and ldd CI jobs by @UebelAndre in #1785
- Updated the ios_build example to use
crates_vendor
by @UebelAndre in #1778 - Download
rustc
inrustfmt_toolchain_repository
by @UebelAndre in #1769 - Updated crate_universe dependencies by @UebelAndre in #1775
- Update docs on setting Rust versions by @UebelAndre in #1786
- Updated
rust_bindgen
to userustfmt_toolchain
by @UebelAndre in #1770 - Add file:// prefix to env var in docs by @illicitonion in #1788
- Added Rust 1.66.1 by @UebelAndre in #1767
- Add "crate-name={}" tag to Crate Universe targets by @alexjpwalker in #1787
- Added compatibility flags to
.bazelrc
to prevent regressions by @UebelAndre in #1789 - Prevent crates_vendor from restarting bazel. by @matts1 in #1791
- Added support for
--nolegacy_external_runfiles
torust_doc_test
by @UebelAndre in #1790 - Have
--experimental_use_cc_common_link
coverrust_shared_library
by @scentini in #1792 - Fix use of
rustfmt_toolchain
whenrustc
is not provided by @UebelAndre in #1794 - Fix
cc_common.link
file output name by @scentini in #1795 - Revert "Disable broken clang and ldd CI jobs (#1785)" by @scentini in #1796
- Add
CARGO_BAZEL_REPIN_ONLY
repinning allowlist by @hobofan in #1798 - [crate_universe] add an annotation to disable pipelining by @Calsign in #1733
- rustdoc_test: fix and test OUT_DIR by @bsilver8192 in #1779
- Added Rust 1.67.0 by @UebelAndre in #1799
- Updated rules_rust version to
0.17.0
by @UebelAndre in #1800
New Contributors
- @xortive made their first contribution in #1758
- @alexjpwalker made their first contribution in #1787
- @hobofan made their first contribution in #1798
- @Calsign made their first contribution in #1733
Full Changelog: 0.16.1...0.17.0
0.16.1
0.16.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "aaaa4b9591a5dad8d8907ae2dbe6e0eb49e6314946ce4c7149241648e56a1277",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.16.1/rules_rust-v0.16.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Update Release github pipeline to trigger automatically by @UebelAndre in #1757
- draft: fix data and compile_data for rust_doc by @paulfariello in #1741
- Fixed inability to deserialize crate_universe lockfiles by @UebelAndre in #1760
- Updated rules_rust version to
0.16.1
by @UebelAndre in #1761
New Contributors
- @paulfariello made their first contribution in #1741
Full Changelog: 0.16.0...0.16.1