Releases: bazelbuild/rules_rust
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
0.10.0
0.10.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "0cc7e6b39e492710b819e00d48f2210ae626b717a3ab96e048c43ab57e61d204",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.10.0/rules_rust-v0.10.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Enable rust-analyzer tests on windows. by @UebelAndre in #1506
- Minor cleanup to documentation by @UebelAndre in #1505
- Apply get_lib_name correctly to the C++ runtime libraries by @scentini in #1508
- Propagate rustc_env{,_files} from rust_test.crate by @bsilver8192 in #1443
- Skip supplying rpaths on Fuchsia by @tmandry in #1511
- add cc_common.link support for rust_library and rust_test by @krasimirgg in #1490
- Update wasm_bindgen to 0.2.82 by @ImJeremyHe in #1513
- Added Rust 1.63.0 by @UebelAndre in #1512
- Fix typo in an example of crates_repository rule by @tetsuok in #1520
- migrating to rbe_preconfig and remove bazel_toolchains by @aranguyen in #1524
- Preserve directory structure of source files when some are generated by @cameron-martin in #1526
- Updates rust_test to use main.rs as the root when use_libtest_harness is false by @csmulhern in #1518
- add cc config info to dummy wasm32 cc toolchain by @kcking in #1532
- Updated rules_rust to version 0.10.0 by @UebelAndre in #1533
New Contributors
- @tmandry made their first contribution in #1511
- @ImJeremyHe made their first contribution in #1513
- @tetsuok made their first contribution in #1520
- @aranguyen made their first contribution in #1524
- @cameron-martin made their first contribution in #1526
- @kcking made their first contribution in #1532
Full Changelog: 0.9.0...0.10.0
0.9.0
0.9.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "6bfe75125e74155955d8a9854a8811365e6c0f3d33ed700bc17f39e32522c822",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.9.0/rules_rust-v0.9.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- toolchain files: ensure test depends on std by @krasimirgg in #1486
- Updated all toolchain_type definitions to be named
toolchain_type
. by @UebelAndre in #1479 - fix:
rust_doc_test
failure to find params file by @ParkMyCar in #1418 - Updated proto rules to fetch dependencies using crate_universe by @UebelAndre in #1491
- Updated
//util/import
to use crate_universe by @UebelAndre in #1492 - Updated examples to use crate_universe by @UebelAndre in #1494
- Delete deprecated targets by @UebelAndre in #1496
- rules_rust: enable pipelined compilation. by @gigaroby in #1275
- pipelining: add the ability to disable pipelining for a single rule. by @gigaroby in #1499
- Do not pass
--Clink-arg=-l
for libstd and libtest by @scentini in #1500 - Implement rules archive release artifact in github action. by @UebelAndre in #1501
- Promoted crate_universe to non-experimental by @UebelAndre in #1504
- Updated rules_rust to version 0.9.0 by @UebelAndre in #1503
Full Changelog: 0.8.1...0.9.0
0.8.1
0.8.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "05e15e536cc1e5fd7b395d044fc2dabf73d2b27622fbc10504b7e48219bb09bc",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.8.1/rules_rust-v0.8.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Fix rust-analyzer being unable to find rust sysroot sources. by @UebelAndre in #1483
- Fixed use of rust-analyzer with rust static and shared lib targets by @UebelAndre in #1482
- Updated rules_rust to version
0.8.1
. by @UebelAndre in #1484
Full Changelog: 0.8.0...0.8.1