Releases: bazelbuild/rules_rust
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
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_index
tocui
by @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_flags
attr torust_doc
rule 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_bindgen
rules dependencies. by @UebelAndre in #1464 - Updated
tools/rust_analyzer
to usecrate_universe
. by @UebelAndre in #1448 - Update
//bindgen
to usecrate_universe
by @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_wrapper
build with--stamp
past #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_toolchain
and 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_env
rule 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
TemplateVariableInfo
torust_toolchain
. by @UebelAndre in #1416 - Updated
attr.label
attribute defaults to useLabel
constructor 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
--repin
args 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
BUILD
andWORKSPACE
files 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
env
attribute 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
import
macro. by @cfredric in #1365 - Avoid using common substrings as encodings in
import
macro. 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_with
to makemacos
withXcode
happy 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_analyzer
rule. 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_rust
version to0.6.0
. by @UebelAndre in #1397
Full Changelog: 0.5.0...0.6.0
0.5.0
0.5.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "73580f341f251f2fc633b73cdf74910f4da64d06a44c063cbf5c01b1de753ec1",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.5.0/rules_rust-v0.5.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Replace slashes with underscores in default crate names. by @cfredric in #1334
- "sandwich" rlibs between native deps in linker order by @krasimirgg in #1333
- Revert "Replace slashes with underscores in default crate names." by @cfredric in #1335
- Replace slashes with underscores in default crate names. by @cfredric in #1336
- remove experimental_use_whole_archive_for_native_deps by @krasimirgg in #1338
- Add support for riscv32 targets by @cfrantz in #1323
- Build
rust_test
targets withcrate
using the same crate name as the underlying library target. by @cfredric in #1332 - Remove unnecessary
crate_name
usage inrust_test_suite
. by @cfredric in #1345 - Temporarily disable windows job in CI. by @UebelAndre in #1352
- Added support for Rust 1.61.0 to crate_universe by @UebelAndre in #1348
- Update apple_support by @keith in #1346
- Fixed fetch_shas script to correctly include .gz and .xz extensions by @UebelAndre in #1355
- Added Rust 1.61.0 by @UebelAndre in #1347
- Updated rust_bindgen dependencies API by @UebelAndre in #1354
- Add developing notes for crate_universe by @UebelAndre in #1351
- Ensure memchr is linked after libobject by @bsilver8192 in #1349
- feat: build script toolchains annotations by @roman-kashitsyn in #1344
- Fixed missing docs by @UebelAndre in #1358
- Don't leak native dependencies of proc_macro by @scentini in #1359
- crate_universe: fix typo by @leoluk in #1314
- Updated
rules_rust
version to0.5.0
by @UebelAndre in #1360
New Contributors
- @cfrantz made their first contribution in #1323
- @bsilver8192 made their first contribution in #1349
- @leoluk made their first contribution in #1314
Full Changelog: 0.4.0...0.5.0
0.4.0
0.4.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "edb87c0d2ba70823fe3df7862676d695599314a4634b9758bd55f0e8f19c2751",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.4.0/rules_rust-v0.4.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Make get_host_triple public to get a triple from Bazel's repository_ctx by @dtolnay in #1289
- Remove
triple
field from triple struct in favor ofstr
by @dtolnay in #1297 - Use EXEC_ROOT paths for genfiles in rust_analyzer aspect by @csmulhern in #1293
- rustc: fix a conditional by @gburgessiv in #1300
- Updated crate_universe docs by @UebelAndre in #1301
- fix for using a nightly channel after commit 841fc6f by @krasimirgg in #1302
- Don't emit
CrateInfo
fromrust_static_library
andrust_shared_library
by @scentini in #1298 - Don't propagate non-shared transitive linker inputs from
rust_static|shared_library
by @scentini in #1299 - Remove doc about STATIC_RUST_URL env var. by @wt in #1306
- Use tinyjson from crates.io instead of github.com. by @wt in #1309
- Address warnings for example/test dependencies by @UebelAndre in #1312
- crate_universe: Improved documentation by @UebelAndre in #1305
- Add bazel-* directories in cargo_manifest_dir/external_crate to gitignore by @dtolnay in #1279
- Add support for aarch64-apple-ios-sim by @keith in #1304
- Prevents running of clippy on bindgen targets by @csmulhern in #1320
- Updated wasm_bindgen rules to only require core
rules_nodejs
rules by @UebelAndre in #1311 - Updated wasm_bindgen dependencies API by @UebelAndre in #1313
- Error calling
all_crate_deps
withoutCargo.toml
by @illicitonion in #1327 - Support . workspace member by @illicitonion in #1326
- Bump version to 0.4.0 by @illicitonion in #1329
New Contributors
- @gburgessiv made their first contribution in #1300
Full Changelog: 0.3.1...0.4.0
0.3.1
0.3.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "e074f1e203607c5fcd549929d956170346f8807d2bbaeb98b2ed213c37e0870f",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.3.1/rules_rust-v0.3.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- feat(#514): pass extra flags to clippy by @roman-kashitsyn in #1264
- Enable xz archives by @wt in #1284
- crate_universe: Added tests for serialized config files. by @UebelAndre in #1291
- Fixed build issues in release artifact by @UebelAndre in #1295
- Updated
rules_rust
version to0.3.1
by @UebelAndre in #1296
Full Changelog: 0.3.0...0.3.1
0.3.0
0.3.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "7987b82e322d106462812677eb9a801c027fbe46483f497f390d4b94a2b47543",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.3.0/rules_rust-v0.3.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- rust_test_suite: ensure crate names are valid by @durin42 in #1248
- Workaround for issue in linux Cargo binaries by @UebelAndre in #1252
- Updated Rust to 1.60.0 by @UebelAndre in #1247
- Set edition for process_wrapper and cargo_build_script_runner by @dtolnay in #1254
- Add the BUILD.bazel file to the wasm_bindgen distro filegroup target by @diceride in #1261
- Add workaround for arm vs armv7 android issue by @keith in #1259
- crate_universe: propagate build_script_tools by @duarten in #1266
- process_wrapper: add support for terminating rustc after it emits rmeta. by @gigaroby in #1207
- add a stopgap experimental_use_whole_archive_for_native_deps attribute by @krasimirgg in #1269
- Remove
rust_test
example which doesn't build. by @cfredric in #1267 - Don't leak additive build file content across crates by @uhthomas in #1278
- Fix target name in
rust_test
example. by @cfredric in #1280 - Fix crate annotation anchor by @uhthomas in #1282
- Fix typo in render config doc by @uhthomas in #1281
- feat: support extra deps in rust_doc_test by @roman-kashitsyn in #1286
- Outside of examples, fill in all
edition
attrs by @dtolnay in #1257 - Remove DEFAULT_RUST_EDITION by @dtolnay in #1256
- Revert "Add workaround for arm vs armv7 android issue" by @keith in #1290
- Updated
rules_rust
version to0.3.0
by @UebelAndre in #1288
New Contributors
- @diceride made their first contribution in #1261
- @duarten made their first contribution in #1266
- @uhthomas made their first contribution in #1278
- @roman-kashitsyn made their first contribution in #1286
Full Changelog: 0.2.1...0.3.0