Releases: bazelbuild/rules_rust
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
buildifierattribute 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_runfilesby @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_flagsby @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.0by @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/nopicobject 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_srcsby @UebelAndre in #1653 - Replaced custom platform constraint values with aliases to
@platformsby @UebelAndre in #1652 - fix: Fix issue with wasi-0.11.0+wasi-snapshot-preview1 by @semtexzv in #1632
- Update
//util/labelto support+in packages by @UebelAndre in #1654 - Updated rules_rust to version
0.13.0by @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_runrule tocargo_build_scriptby @UebelAndre in #1612 - Restore support for old
cargo_build_scriptload 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_macros andstaticlibs 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 optmode 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.0by @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_dirsupport incargo_dep_envby @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_testfailure to find params file by @ParkMyCar in #1418 - Updated proto rules to fetch dependencies using crate_universe by @UebelAndre in #1491
- Updated
//util/importto 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=-lfor 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
0.8.0
0.8.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "b534645f6025ea887e8be6f577832e2830dc058a2990e287ff7a3745c523a739",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.8.0/rules_rust-v0.8.0.tar.gz"],
)Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- docs: Update homepage instructions for latest version by @typesanitizer in #1441
- Re-enable disabled windows jobs in CI by @UebelAndre in #1353
- Updated toolchain repository rules to represent one toolchain per repo by @UebelAndre in #1442
- Upgrade stardoc by @bsilver8192 in #1444
- Replaced small genrules with uses of bazel_skylib by @UebelAndre in #1451
- crate_universe: shorten
crate_universe_crate_indextocuiby @krasimirgg in #1454 - Add extra_rustc_flag and extra_exec_rustc_flag by @mypmc in #1413
- Fix @libgit2 by @uhthomas in #1457
- Do not add proc-macro deps to transitive_link_search_paths by @krasimirgg in #1424
- Fixed missing items in distro artifact by @UebelAndre in #1450
- Add a way to distinguish proc-macro deps by @krasimirgg in #1420
- feat: add
rustc_flagsattr torust_docrule by @ParkMyCar in #1458 - Updated header of crate_universe generated files to include a regen command by @UebelAndre in #1461
- Cleanup crate_universe dependency macros by @UebelAndre in #1460
- Stamp only binaries by default by @scentini in #1452
- Limit coverage to requested files by @keith in #1467
- Fixed crate_universe lockfile checks for crates_repository rule by @UebelAndre in #1468
- Updated
wasm_bindgenrules dependencies. by @UebelAndre in #1464 - Updated
tools/rust_analyzerto usecrate_universe. by @UebelAndre in #1448 - Update
//bindgento usecrate_universeby @UebelAndre in #1440 - Updated rust-analyzer generator to use clap by @UebelAndre in #1471
- Updated bindgen version by @UebelAndre in #1470
- Fix
rust_binary_without_process_wrapperbuild with--stamppast #1452 by @scentini in #1473 - Added Rust version 1.62.1 by @UebelAndre in #1476
- Fix typo in function name by @gferon in #1478
- Update docs on lockfiles by @illicitonion in #1477
- Added
rust_analyzer_toolchainand repository rules for creating one by @UebelAndre in #1455 - Give useful error on missing workspace manifest by @illicitonion in #1475
- Updated rules_rust to version
0.8.0. by @UebelAndre in #1472
New Contributors
- @typesanitizer made their first contribution in #1441
- @ParkMyCar made their first contribution in #1458
- @gferon made their first contribution in #1478
Full Changelog: 0.7.0...0.8.0
0.7.0
0.7.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "7fb9b4fe1a6fb4341bdf7c623e619460ecc0f52d5061cc56abc750111fba8a87",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.7.0/rules_rust-v0.7.0.tar.gz"],
)Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Add a
cargo_dep_envrule for setting build.rs environment variables by @bsilver8192 in #1415 - Bump the min supported bazel version by @mypmc in #1414
- Add test coverage support by @keith in #1324
- Added
TemplateVariableInfotorust_toolchain. by @UebelAndre in #1416 - Updated
attr.labelattribute defaults to useLabelconstructor by @UebelAndre in #1422 - crate_universe support for individually updating packages. by @UebelAndre in #1426
- Fixed crate_universe not finding target library names for "rlib"s by @UebelAndre in #1429
- Added Rust 1.62.0 by @UebelAndre in #1427
- Do not attempt to instrument rust code for coverage if rust_toolchain.llvm-cov is None by @krasimirgg in #1432
- update crate_universe
--repinargs to not require values. by @UebelAndre in #1433 - Updated crate_universe version to
0.4.0. by @UebelAndre in #1435 - Have rust_test put its compilation outputs in a subdirectory by @scentini in #1434
- exclude
BUILDandWORKSPACEfiles from generated crate_universe targets by @UebelAndre in #1437 - Updated rules_rust to version
0.7.0. by @UebelAndre in #1436
Full Changelog: 0.6.0...0.7.0
0.6.0
0.6.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "872b04538ca20dad94791c348623f079ba93daf274c1d57ae6bfe0930ec77f0d",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.6.0/rules_rust-v0.6.0.tar.gz"],
)Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Ensure crate_features to be included correctly in rust_project.json by @mypmc in #1356
- Add armv7-linux-androideabi tier 2 triple by @keith in #1362
- Update rules_perl in examples by @keith in #1364
- Add
envattribute torust_toolchain. by @UebelAndre in #1363 - Use target instead of rule in rust_register_toolchains edition docs by @dfreese in #1366
- Fix incorrect assertion in test_env_launcher test by @dfreese in #1368
- Use a more compact encoding in the
importmacro. by @cfredric in #1365 - Avoid using common substrings as encodings in
importmacro. by @cfredric in #1370 - Support crates that have mix of generated and nongenerated inputs by @scentini in #1340
- Renamed toolchain files targets by @UebelAndre in #1376
- Removed deprecated file by @UebelAndre in #1380
- Added comments to internal function by @UebelAndre in #1378
- Use
target_compatible_withto makemacoswithXcodehappy by @scentini in #1391 - Fixed Clippy bug with
--@rules_rust//:clippy_flags. by @UebelAndre in #1392 - Added TemplateVariableInfo to rust_toolchain by @UebelAndre in #1377
- Ran clang-format on all C++ sources by @UebelAndre in #1396
- Refactored the Rustfmt tool to work cross-platform by @UebelAndre in #1375
- Reorganized rustfmt source tree by @UebelAndre in #1399
- Added support for vendoring external manifests by @UebelAndre in #1381
- Added more "ignore" tags to rustfmt and clippy rules. by @UebelAndre in #1400
- Enable rustfmt CI for Windows. by @UebelAndre in #1403
- cargo: Fix handling of relative sysroots by @kalcutter in #1371
- Deleted deprecated
rust_analyzerrule. by @UebelAndre in #1405 - Use a vec, not set for rustc_flags for crate_universe annotations by @UebelAndre in #1404
- Deleted "extra workspace member" functionality from crate_universe by @UebelAndre in #1406
- Updated crate_universe version (to
0.3.0) and dependencies by @UebelAndre in #1409 - Update wasm_bindgen to use crate universe. by @UebelAndre in #1398
- Updated
rules_rustversion to0.6.0. by @UebelAndre in #1397
Full Changelog: 0.5.0...0.6.0