Releases: bazelbuild/rules_rust
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
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_repository
to 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_toolchain
and refactored toolchain repository rules by @UebelAndre in #1719 - Re-pinned all dependencies managed by crate_universe by @UebelAndre in #1735
- Propagate
compatible_with
attribute to the underlying_build_script_run
target 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_with
to the underlyingcargo_build_script
rust_binary
target by @scentini in #1754 - Remove unnecessary binary file by @scentini in #1755
- Updated rules_rust to version
0.16.0
by @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/import
test 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.0
by @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
0.14.0
0.14.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "dd79bd4e2e2adabae738c5e93c36d351cf18071ff2acf6590190acf4138984f6",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.14.0/rules_rust-v0.14.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Reenable windows job by @scentini in #1658
- Also pass -c opt to tests in opt mode CI by @scentini in #1626
- Fix naming of ambiguous libs by @scentini in #1625
- Allow
buildifier
attribute to be a file by @djkoloski in #1660 - Fix issue #1417 - Group deps by platform triple rather than cfg(...) string. by @wmatthews-google in #1647
- Re-render crate BUILD files after #1647 by @wmatthews-google in #1655
- Support Windows ARM64 (
aarch64-pc-windows-msvc
) by @p0deje in #1664 - fix: add space to crate data exclude list by @bazaglia in #1665
- Common glob excludes by @bazaglia in #1673
- Revert #1564 by @illicitonion in #1663
- Fix confusing/misleading crate_universe docs by @illicitonion in #1677
- Merge cc toolchain flags into build script env by @illicitonion in #1675
- crate_universe/private/crates_vendor.bzl typo fix by @andrewpollack in #1678
- Updated crate_universe to work with
--nolegacy_external_runfiles
by @UebelAndre in #1680 - Allow passing a bazel path to vendor explicitly by @djkoloski in #1661
- stardoc: Use backtick not
<code>
for attr default values by @illicitonion in #1682 - Add per-toolchain
rustc_flags
by @P1n3appl3 in #1635 - Add RV64GC target by @tdewey-rivos in #1683
- Updated crate_universe dependencies by @UebelAndre in #1686
- Updated all crates_vendor outputs by @UebelAndre in #1687
- Updated rules_rust to version
0.14.0
by @UebelAndre in #1669
New Contributors
- @wmatthews-google made their first contribution in #1647
- @p0deje made their first contribution in #1664
- @bazaglia made their first contribution in #1665
- @P1n3appl3 made their first contribution in #1635
- @tdewey-rivos made their first contribution in #1683
Full Changelog: 0.13.0...0.14.0
0.13.0
0.13.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "324c2a86a8708d30475f324846b35965c432b63a35567ed2b5051b86791ce345",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.13.0/rules_rust-v0.13.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Consider compilation mode when choosing
pic
/nopic
object files to link by @scentini in #1624 - Disable failing job in CI by @UebelAndre in #1640
- Upgraded cfg-expr dependency to 0.12.0. by @levahim in #1636
- [docs] Fixing typos in CargoConfig doc strings by @andrewpollack in #1638
- Deduplicate expand_location targets in rust-project.json crate creation to avoid a bazel crash by @googleson78 in #1639
- Fix vendoring when not in a package by @djkoloski in #1646
- Generated rust-project.json files now include sysroot paths by @UebelAndre in #1641
- Remove deprecated attributes from rust_toolchain and cargo_bootstrap by @UebelAndre in #1651
- Deprecated
rust_toolchain.rustc_srcs
by @UebelAndre in #1653 - Replaced custom platform constraint values with aliases to
@platforms
by @UebelAndre in #1652 - fix: Fix issue with wasi-0.11.0+wasi-snapshot-preview1 by @semtexzv in #1632
- Update
//util/label
to support+
in packages by @UebelAndre in #1654 - Updated rules_rust to version
0.13.0
by @UebelAndre in #1644
New Contributors
- @levahim made their first contribution in #1636
- @googleson78 made their first contribution in #1639
- @djkoloski made their first contribution in #1646
- @semtexzv made their first contribution in #1632
Full Changelog: 0.12.0...0.13.0
0.12.0
0.12.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "a8f5fe529f066068d98a72fa2dd61dbb410ecc2b9a7bd3bd412f529eb0cc9cd8",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.12.0/rules_rust-v0.12.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- process_wrapper: Apply substitutions to param files by @goffrie in #1565
- Avoid rendering a mock root package when possible by @UebelAndre in #1596
- Remove Google mirror from Starlark snippet in release notes by @UebelAndre in #1604
- Updated crate_universe dependencies by @UebelAndre in #1606
- Remove references to Google mirror in docs by @UebelAndre in #1607
- Renamed
_build_script_run
rule tocargo_build_script
by @UebelAndre in #1612 - Restore support for old
cargo_build_script
load statements by @UebelAndre in #1613 - Fixed outdated docs by @UebelAndre in #1614
- Build deps of _build_script_run in 'exec' mode by @scentini in #1561
- Fix ambiguous native dependencies in
proc_macro
s andstaticlib
s by @scentini in #1611 - Fixed CI breakage by @UebelAndre in #1619
- process_wrapper: print line on error to parse message as json by @krasimirgg in #1566
- Add
-c opt
mode to CI by @scentini in #1621 - Added Rust 1.65.0 by @UebelAndre in #1627
- Remove empty glob by @limdor in #1628
- Updated rules_rust to version
0.12.0
by @UebelAndre in #1630
New Contributors
Full Changelog: 0.11.0...0.12.0
0.11.0
0.11.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "696b01deea96a5e549f1b5ae18589e1bbd5a1d71a36a243b5cf76a9433487cf2",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.11.0/rules_rust-v0.11.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Minor cleanup of CI pipelines by @UebelAndre in #1534
- Fix crate_universe/private/srcs.bzl to work with repo mappings by @Wyverald in #1540
- Remove -lgcc from Android builds by @keith in #1541
- Add android example by @keith in #1545
- use crate_info.deps in establish_cc_info by @krasimirgg in #1543
- Strip leading '@'s for labels in the splicing manifest by @Wyverald in #1547
- Update apple_support by @keith in #1549
- Add iOS examples by @keith in #1546
- Fix markdown typo in rust_analyzer.md by @bsilver8192 in #1553
- Update docs to show release policies and support by @illicitonion in #1560
- Added Rust 1.64.0 by @UebelAndre in #1562
- Remap $PWD to empty string instead of "." by @goffrie in #1563
- Export AbsoluteLabel functionality by @scentini in #1568
- update to wasm-bindgen v0.2.83 by @khumps in #1567
- Move crate_root_src to utils.bzl by @hlopko in #1570
- Cleanup deprecated code by @UebelAndre in #1577
- Add an output group for the .rmeta by @bsilver8192 in #1585
- Set CARGO_MANIFEST_DIR at runtime for tests by @bsilver8192 in #1559
- fix: incorrect rustfmt edition query by @roman-kashitsyn in #1582
- Add
out_dir
support incargo_dep_env
by @bsilver8192 in #1571 - Fix build scripts targeting the wrong architecture by @dae in #1564
- Merge runfiles from transitive dependencies of rust_test crate attr by @neilisaac in #1487
- Ignore non-utf8 text in build script output by @dae in #1583
- Expose the output directory from cargo_build_script by @bsilver8192 in #1588
- Fixes crates_vendor labels in remote mode when used from the root workspace by @csmulhern in #1575
- Updated crate_universe dependencies by @UebelAndre in #1591
- Typo correction on doc by @andrewpollack in #1593
- Updated rules_rust to version
0.11.0
. by @UebelAndre in #1587
New Contributors
- @Wyverald made their first contribution in #1540
- @goffrie made their first contribution in #1563
- @khumps made their first contribution in #1567
- @neilisaac made their first contribution in #1487
- @andrewpollack made their first contribution in #1593
Full Changelog: 0.10.0...0.11.0