Releases: bazelbuild/rules_rust
0.42.1
0.42.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-JLN47ZcAbx9wEr5Jiib4HduZATGLiDgK7oUi/fvotzU=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.42.1/rules_rust-v0.42.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Fix rust module extension for Bazel pre-7.1 by @cameron-martin in #2612
- Test BCR example in minimum bazel by @illicitonion in #2613
- Release 0.42.1 by @UebelAndre in #2614
Full Changelog: 0.42.0...0.42.1
0.42.0
0.42.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-XT1YVJ6FHJTXBr1v3px2fV37/OCS3dQk3ul+XvfIIf8=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.42.0/rules_rust-v0.42.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Fix crates.io URL by @ericmcbride in #2597
- Add support for
--compile_one_dependency
by @william-smith-skydio in #2598 - Update rules_apple by @sgowroji in #2602
- Support building more things with bzlmod by @matts1 in #2601
- Make bazel lock file cross-platform by @cameron-martin in #2453
- Added Rust 1.77.1 by @UebelAndre in #2591
- Fix (+) In vendored crates semver metadata by @ericmcbride in #2579
- Keep default_features parity from bzlmod to workspace by @Lev1ty in #2606
- clippy: use --cap-lints=warn; apply clippy_flags when capture_output=True by @goffrie in #2451
- Added Rust 1.77.2 by @UebelAndre in #2608
- Re-vendor crate_universe outputs by @UebelAndre in #2609
- Release 0.42.0 by @UebelAndre in #2610
New Contributors
Full Changelog: 0.41.1...0.42.0
0.41.1
0.41.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-mUV3N2A8ORVVZbrm3O9yepAe/Kv4MD2ob9YQhB8aOI8=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.41.1/rules_rust-v0.41.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Add extra_rustc_flags_for_crate_types. by @granaghan in #2431
- Android jobs should be using LTS Bazel releases by @UebelAndre in #2589
- BUG-FIX: host-triple str for bzl mod by @ericmcbride in #2587
- fix(cargo-bazel): ignore example crates when checking if proc-macro by @qtica in #2596
- Deprecated
rust_bindgen.leak_symbols
by @UebelAndre in #2590 - Update test metadata for crate_universe by @UebelAndre in #2599
- Fixed bug where crate_universe could match aliases to bench/example deps by @UebelAndre in #2600
- Cleanup splicing utils by @dzbarsky in #2564
- Updated repository rules to notify users about non-reproducible repos. by @UebelAndre in #2593
- feat: Strip debug info from opt builds by @matte1 in #2513
- Release 0.41.1 by @UebelAndre in #2592
New Contributors
Full Changelog: 0.41.0...0.41.1
0.41.0
0.41.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-Y4v6kjQQfXxh5tU6FQB6YXux/ODFGUq3IlpgBV4Bwj8=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.41.0/rules_rust-v0.41.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Add example of cross-compiling with musl by @illicitonion in #2535
- Temporarily disable "Examples Clang with LLD" CI job by @UebelAndre in #2560
- Update cargo_toml to
0.19.2
by @jun-sheaf in #2551 - Stop rustfmt versioning from overriding rust-analyzer versioning. by @ReticentIris in #2553
- Rust Analyzer added NixOS supported platforms by @rickvanprim in #2547
- Removed unused 'select_with_or' by @dzbarsky in #2562
- Added Rust 1.77.0 by @UebelAndre in #2568
- bzlmod: fix issue with nightly versions by @QuentinPerez in #2545
- Allow a no-cargo setup for bzlmod by @dzbarsky in #2565
- Fixed genquery for rust targets by @UebelAndre in #2559
- Fix cargo-bazel recompile for MODULE.bazel by @ericmcbride in #2570
- Minor cleanup of bzl files by @UebelAndre in #2573
- Added starlark unit tests for
rust_toolchain.opt_level
by @UebelAndre in #2578 - Mark the bzlmod extension reproducible as appropriate by @dzbarsky in #2575
- Release 0.41.0 by @UebelAndre in #2569
New Contributors
- @jun-sheaf made their first contribution in #2551
- @ReticentIris made their first contribution in #2553
- @QuentinPerez made their first contribution in #2545
- @ericmcbride made their first contribution in #2570
Full Changelog: 0.40.0...0.41.0
0.40.0
0.40.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-ww398ehv1QZQp26mRbOkXy8AZnsGGHpoXpVU4WfKl+4=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.40.0/rules_rust-v0.40.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Fix linkopts set in cc deps of bindgen by @daivinhtran in #2422
- Use a path instead of a string for emit in rustc command-line arguments. by @matts1 in #2445
- Fixes the ci failure in Bazel by @sgowroji in #2482
- Add script to revendor all crates by @cameron-martin in #2459
- Update wasm-bindgen to 0.2.91 by @alexkirsz in #2489
- Use commit from cargo lock file for git repositories by @cameron-martin in #2490
- Use non-canonical repo name in hub repo by @cameron-martin in #2491
- Update crate_universe to allow re-pinning precise packages with pins by @UebelAndre in #2493
- Check if resolved index URL starts with sparse+ by @nickcollier in #2498
- Bump crate_universe version to
0.11.0
by @UebelAndre in #2478 - Introduce @rules_testing for Starlark tests by @daivinhtran in #2480
- Update crates_universe render script to run from Bazel by @UebelAndre in #2492
- Allow rules to provide their own rust-analyzer providers by @UebelAndre in #2487
- Update apple rules by @keith in #2506
- Add MODULE.bazel.lock to gitignore by @keith in #2505
- Replace deprecated
ctx.build_file_path
by @mai93 in #2503 - fix rustdoc: omit link flags for rustdoc by @bgeron in #2467
- Updated label crate to understand canonical vs apparent repositories by @UebelAndre in #2507
- Set allow_empty on unknown globs by @illicitonion in #2509
- Re-vendor all crates by @cameron-martin in #2514
- Introduce rules_rust_unsupported_feature by @tpudlik in #2511
- Fix bzlmod examples on windows by @cameron-martin in #2454
- Implement support for dylib linkage by @daivinhtran in #2414
- Fix all-crate-deps with bzlmod and conditionals. by @criemen in #2516
- Locate license file in packge root if not specified in cargo metadata by @nickcollier in #2521
- Split CrateID CrateNameAndVersionReq by @illicitonion in #2525
- Add public interface to lockfile interospection by @illicitonion in #2515
- Use pub(crate) rather than pub by @illicitonion in #2526
- Make
Select
accessors public by @illicitonion in #2528 - Release 0.40.0 by @illicitonion in #2527
New Contributors
- @sgowroji made their first contribution in #2482
- @mai93 made their first contribution in #2503
- @bgeron made their first contribution in #2467
- @tpudlik made their first contribution in #2511
- @criemen made their first contribution in #2516
Full Changelog: 0.39.0...0.40.0
0.39.0
0.39.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-GuRaQT0LlDOYcyDfKtQQ22oV+vtsiM8P0b87qsvoJts=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.39.0/rules_rust-v0.39.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Added
incompatible_no_rustc_sysroot_env
by @UebelAndre in #2428 - Use canonical repo name for aspects by @cameron-martin in #2450
- Make cross-compiling with bzlmod possible, added example by @jondo2010 in #2419
- [docs/cargo.md] Add missing comma by @NilsIrl in #2456
- Remove the no-op argument host_fragments=. by @lberki in #2466
- Add argument
include_coverage
to toggle ifInstrumentedFilesInfo
is created by @kiwiwarmnfuzzy in #2457 - Added Rust 1.76.0 by @UebelAndre in #2468
- Remove the remaining host_fragments= arguments. by @lberki in #2472
- Add Bazel version matrix to bzlmod builds by @UebelAndre in #2469
- Add support for
all_crate_deps
when using bzlmod by @AmeliasCode in #2461 - Use -C link-arg= instead of link-args to handle nested spaces by @kcking in #2471
- Fix serialization of cargo_config attribute with bzlmod by @gferon in #2477
- Generate package license metadata by @nickcollier in #2476
- Fix type error in rust-analyzer rule by @UebelAndre in #2479
- Release 0.39.0 by @freeformstu in #2473
New Contributors
- @NilsIrl made their first contribution in #2456
- @kiwiwarmnfuzzy made their first contribution in #2457
- @AmeliasCode made their first contribution in #2461
- @nickcollier made their first contribution in #2476
Full Changelog: 0.38.0...0.39.0
0.38.0
0.38.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-ZQGWDD5NoySV0eEAfe0HaaU0yxlcMN6jaqVPnYo/A2E=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.38.0/rules_rust-v0.38.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Switch from
sha256
tointegrity
in release notes by @dtolnay in #2389 - Support third party crates with bzlmod by @matts1 in #1910
- Replaced multiple usages of
String
withLabel
. by @rickvanprim in #2363 - Fix missing .wasm output for rust_wasm_bindgen by @alexkirsz in #2396
- Stringify annotation labels by @illicitonion in #2394
- Fix name of toolchain repo by @illicitonion in #2395
- Advertise CcInfo provider on rules by @cameron-martin in #2126
- Add test for query and cquery in the repo by @illicitonion in #2398
- Change default Rust distribution downloads from .tar.gz to .tar.xz by @dtolnay in #2399
- Add annotation support for transient crates. by @matts1 in #2392
- Allow
RustBindgen
action to get--gcc-toolchain
from cc toolchains by @UebelAndre in #2400 - Minor cleanup of prost rules by @UebelAndre in #2397
- Fix the patch_tool annotation. by @matts1 in #2404
- Fix #2402: use
get_lib_name_default(lib)
instead oflib.owner.name
. by @thb-sb in #2405 - Fix #2406: use codegen option
link-args
to forwarduser_link_flags
in bindgen. by @thb-sb in #2407 - Nix Example updated
rules_nixpkgs
version and removed CI workaround. by @rickvanprim in #2409 - Prep for 0.37.0 by @illicitonion in #2403
- Use # not / as a sed escape character by @illicitonion in #2412
- Drop import macro by @scentini in #2411
- Fix rustfmt toolchains when consuming rules_rust with bzlmod. by @jondo2010 in #2410
- Provide a better error message when trying to generate rust-project.json by @jondo2010 in #2196
- Update android example to use Starlark version of android_ndk_repository by @daivinhtran in #2417
- Allow ~ in repository names by @illicitonion in #2427
- Prepare rust rules for Starlark CcToolchainInfo. by @buildbreaker2021 in #2424
- Update rules_apple by @illicitonion in #2436
- Prep 0.38.0 release by @illicitonion in #2437
New Contributors
- @buildbreaker2021 made their first contribution in #2424
Full Changelog: 0.36.2...0.38.0
0.36.2
0.36.2
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "a761d54e49db06f863468e6bba4a13252b1bd499e8f706da65e279b3bcbc5c52",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.36.2/rules_rust-v0.36.2.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Include examples/bzlmod in release tgz for BCR presubmit by @dtolnay in #2379
- Allow using cargo_bazel_bootstrap from module extensions by @matts1 in #2385
- Updated crate_universe dependencies by @UebelAndre in #2381
- Added Rust 1.75.0 by @UebelAndre in #2380
- Update wasm-bindgen to 0.2.89 by @alexkirsz in #2333
- Don't re-write an identical lockfile by @illicitonion in #2386
- Remove tests for invalid crate names by @illicitonion in #2387
- remove incompatible_override_toolchain_transition by @krasimirgg in #2344
- Release 0.36.2 by @UebelAndre in #2382
Full Changelog: 0.36.1...0.36.2
0.36.1
0.36.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "ff1c4b8d154509154acbad7af94d1dda3b59163e62bcd81f8087df10a5f66468",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.36.1/rules_rust-v0.36.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Ignore bzlmod workspace from examples workspace by @illicitonion in #2373
- Add cc_toolchain files to bindgen actions by @UebelAndre in #2375
- Release 0.36.1 by @UebelAndre in #2376
- Expose crates_vendor deps to bzlmod by @dtolnay in #2372
Full Changelog: 0.36.0...0.36.1
0.36.0
0.36.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "cb26277b9e6f2fb0a8dbd7630f1681f45207c601323ca407d2b10b34533212c7",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.36.0/rules_rust-v0.36.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Remove obsolete comment by @illicitonion in #2362
- Remove redundant/legacy cargo_build_script.bzl by @UebelAndre in #2364
- Remove legacy bindgen.bzl interface module by @UebelAndre in #2366
- Updated Bindgen to version
0.69.1
by @UebelAndre in #2367 - rust_analyzer: run bazel aquery with --include_artifacts by @neilisaac in #2328
- Consolidate bzlmod example workspaces by @UebelAndre in #2370
- Ensure bzlmod example tests are run by @UebelAndre in #2371
- Update
rust_bindgen_library
to only link into the direct consumer by @UebelAndre in #2361 - Release 0.36.0 by @illicitonion in #2365
Full Changelog: 0.35.0...0.36.0