Releases: bazelbuild/rules_rust
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.linkbuilds 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_libraryby @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_flagsattribute 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_configattribute 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.tomls 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
toolchainstocargo_build_scripttargets by @UebelAndre in #1862 - crate_universe: Support fetching crates with git branch, tag or rev by @ted-logan in #1846
- Use
_make_link_flags_darwinwhen 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_jsonchanged 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_toolchainattrsexec_tripleandtarget_tripleto structs by @UebelAndre in #1808 - Delete
rust_toolchain.rusrc_srcsby @UebelAndre in #1807 - Disable job in CI to avoid infrastructure failure. by @UebelAndre in #1816
- Added tests for the
tripleconstructor 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_jsonto 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
rustfmtcheck (#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_settingsinrust_repository_setandrust_toolchain_repositoryby @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_vendorby @UebelAndre in #1778 - Download
rustcinrustfmt_toolchain_repositoryby @UebelAndre in #1769 - Updated crate_universe dependencies by @UebelAndre in #1775
- Update docs on setting Rust versions by @UebelAndre in #1786
- Updated
rust_bindgento userustfmt_toolchainby @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
.bazelrcto prevent regressions by @UebelAndre in #1789 - Prevent crates_vendor from restarting bazel. by @matts1 in #1791
- Added support for
--nolegacy_external_runfilestorust_doc_testby @UebelAndre in #1790 - Have
--experimental_use_cc_common_linkcoverrust_shared_libraryby @scentini in #1792 - Fix use of
rustfmt_toolchainwhenrustcis not provided by @UebelAndre in #1794 - Fix
cc_common.linkfile output name by @scentini in #1795 - Revert "Disable broken clang and ldd CI jobs (#1785)" by @scentini in #1796
- Add
CARGO_BAZEL_REPIN_ONLYrepinning 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.0by @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.1by @UebelAndre in #1761
New Contributors
- @paulfariello made their first contribution in #1741
Full Changelog: 0.16.0...0.16.1
0.16.0
0.16.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "29ea0f1d0cad8fc90400479dee0a8b69204b7e6927081b5a27d6da872114a160",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.16.0/rules_rust-v0.16.0.tar.gz"],
)Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Add
Runfiles::current_repositoryto runfiles library by @UebelAndre in #1713 - Update current_toolchain_files tests to use a dedicated test rule by @UebelAndre in #1714
- Arm Thumb Embedded Targets. by @konkers in #1721
- Match prerelease versions with annotation wildcard by @jfirebaugh in #1716
- Added CI for minimum supported Rust version by @UebelAndre in #1720
- Attach debug info outputs to rust tests by @chancila in #1703
- Addressed clippy warnings from
clippy 0.1.67 (ec56537c 2022-12-15)by @UebelAndre in #1717 - Support the RUNFILES_DIR environment variable. by @matts1 in #1732
- Replace tera template with serde_starlark by @dtolnay in #1734
- Eliminate all use of hash-based collections from crate_universe by @dtolnay in #1737
- Collect targets in a deterministic order by @dtolnay in #1736
- Added
rustfmt_toolchainand refactored toolchain repository rules by @UebelAndre in #1719 - Re-pinned all dependencies managed by crate_universe by @UebelAndre in #1735
- Propagate
compatible_withattribute to the underlying_build_script_runtarget by @scentini in #1745 - crate_universe re-pinning now defaults to "workspace" by @UebelAndre in #1723
- Add gen_binaries annotation to control which bins to make target for by @dtolnay in #1718
- Report context on error failing to get version by @illicitonion in #1744
- Added CI for single toolchain channel workspaces by @UebelAndre in #1712
- Exclude generated files from language stats and collapse in code review by @dtolnay in #1747
- Convert BUILD.$name-$version.bazel from tera to serde_starlark by @dtolnay in #1743
- Regenerate BUILD files using serde_starlark renderer by @dtolnay in #1746
- Repin ./examples/crate_universe_unnamed by @dtolnay in #1752
- Generate only the needed subset of binaries for bindgen and proto by @dtolnay in #1751
- Make loads from @rules_rust//rust:defs.bzl come out on one line by @dtolnay in #1753
- Don't propagate
compatible_withto the underlyingcargo_build_scriptrust_binarytarget by @scentini in #1754 - Remove unnecessary binary file by @scentini in #1755
- Updated rules_rust to version
0.16.0by @UebelAndre in #1750 - Fix release pipeline by @UebelAndre in #1756
New Contributors
- @konkers made their first contribution in #1721
- @jfirebaugh made their first contribution in #1716
- @chancila made their first contribution in #1703
Full Changelog: 0.15.0...0.16.0
0.15.0
0.15.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "5c2b6745236f8ce547f82eeacbbcc81d736734cc8bd92e60d3e3cdfa6e167bb5",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.15.0/rules_rust-v0.15.0.tar.gz"],
)Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Added a build setting for toolchain channels by @UebelAndre in #1671
- Silence flaky
//util/importtest by @UebelAndre in #1693 - Fix typos in crate_universe rendered comments by @UebelAndre in #1691
- load_arbitrary_tool uses tool_suburl to look up sha256 by @ted-logan in #1695
- Fixed typos: normla -> normal by @sulmone in #1699
- Add riscv32imc and riscv64gc to the known sha targets by @ted-logan in #1698
- Fix labels to work with canonical label literals. by @matts1 in #1700
- Added Rust 1.66.0 by @UebelAndre in #1705
- Updated rules_rust to version
0.15.0by @UebelAndre in #1706
New Contributors
- @ted-logan made their first contribution in #1695
- @sulmone made their first contribution in #1699
- @matts1 made their first contribution in #1700
Full Changelog: 0.14.0...0.15.0