Releases: bazelbuild/rules_rust
0.49.0
0.49.0
Bzlmod
bazel_dep(name = "rules_rust", version = "0.49.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-WJlhi9KAgMZYAyDIlSCgP11BRCH3zxLMjAsBXsBEyF8=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.49.0/rules_rust-v0.49.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- feat(crates_repository): customizable repin instructions by @stevebarrau in #2756
- rust_stdlib_filegroup: update to support srcs from another package by @krasimirgg in #2735
- Add missing local_path_overrides in examples by @illicitonion in #2747
- Added Rust 1.80.0 by @UebelAndre in #2763
- toolchain: support
$(location)
expansion inextra_rustc_flags
by @krasimirgg in #2761 - Allow for unnamed workspaces/modules when using crates_vendor by @AmeliasCode in #2730
- Respect "--no-typescript" flag in wasm_bindgen by @duarten in #2765
- Add version to bindgen dep by @illicitonion in #2768
- Merge repin scripts by @illicitonion in #2769
- crate_universe: Only compile label regex once. by @criemen in #2751
- Add fake dependency roots for all transitive proc-macros by @illicitonion in #2749
- Release 0.49.0 by @UebelAndre in #2773
New Contributors
- @stevebarrau made their first contribution in #2756
Full Changelog: 0.48.0...0.49.0
0.48.0
0.48.0
Bzlmod
bazel_dep(name = "rules_rust", version = "0.48.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-Weev1uz2QztBlDA88JX6A1N72SucD1V8lBsaliM0TTg=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.48.0/rules_rust-v0.48.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Add support for shared test-only modules by @IvanIsCoding in #2734
- Bazelmod documentation and code examples. by @marvin-hansen in #2713
- Add support for --wrap-extern-fns to bindgen rules by @hlopko in #2743
- Pass toolchain param in ctx.action.run in bindgen by @hlopko in #2745
- Make it possible to not specify clang binary in bindgen by @hlopko in #2746
- Make rustfmt toolchain optional in bindgen by @hlopko in #2744
- Fix collecting cc deps in collect_deps by @mvukov in #2699
- Support incompatible enable proto toolchain resolution by @illicitonion in #2741
- Release 0.48.0 by @illicitonion in #2750
New Contributors
- @IvanIsCoding made their first contribution in #2734
- @marvin-hansen made their first contribution in #2713
- @mvukov made their first contribution in #2699
Full Changelog: 0.47.1...0.48.0
0.47.1
0.47.1
Bzlmod
bazel_dep(name = "rules_rust", version = "0.47.1")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-35cwdTOaqqu4y+aXgIUU2C2PAKMz4+uyJ7/UMIGCmFs=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.47.1/rules_rust-v0.47.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Remote vendor doesn't require srcs present by @illicitonion in #2688
- Add flag to refer to a
sh_toolchain
for process wrapper bootstrap shebangs by @UebelAndre in #2694 - Added Rust 1.79.0 by @UebelAndre in #2695
crate_universe
: Make module extension restarts less expensive. by @criemen in #2691- Add example of using JNI to call into Rust by @illicitonion in #2690
- Apply extra_rustc_flags list to all toolchains by @nmattia in #2693
- rust-analyzer: Factor aliases into the project by @illicitonion in #2709
- crate_universe docs: Split bzlmod from workspace by @illicitonion in #2700
- Updated external dependencies docs by @UebelAndre in #2711
- Update wasm-bindgen to 0.2.92 by @alexkirsz in #2714
- upstream wrappers for cargo, rustc, cargo-clippy by @kolloch in #2703
- Clean up downloads that go through the API instead of the CDN by @ograff in #2718
- Updated rust-analyzer to use repo vs generated files as crate roots by @UebelAndre in #2717
- crate-universe allows workspaces with MODULE.bazel only by @matt-duch in #2720
- Release 0.47.0 by @UebelAndre in #2725
- Update bindgen.bzl to use toolchain system include directories as well by @hlopko in #2727
- Use newer macos runners by @ograff in #2732
New Contributors
- @nmattia made their first contribution in #2693
- @kolloch made their first contribution in #2703
- @matt-duch made their first contribution in #2720
Full Changelog: 0.46.0...0.47.1
0.46.0
0.46.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-F8U7+AC5MvMtPKGdLLnorVM84cDXKfDRgwd7/dq3rUY=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.46.0/rules_rust-v0.46.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- fix: default rustfmt version to supplied rust version by @mattem in #2660
- Use repo-mapping-aware runfiles API in rust-analyzer by @dzbarsky in #2666
- Fix protobuf generated srcs to include all sources by @matts1 in #2676
- Fix cargo_build_script executables. by @matts1 in #2675
- crate_universe: Don't include crate name in build script path. by @criemen in #2663
- Ensure dynamic library dependencies end up in the runfiles directory by @EdSchouten in #2671
- use bazel_ci_rules bazel_dep instead of http_archive by @mmorel-35 in #2678
- Ensure that running
bazel build
on a cargo_build_script target actually runs the build script by @matts1 in #2680 - Allow overriding crate universe packages to local packages by @ograff in #2674
- Depend on a copy of rustfmt for the target by @EdSchouten in #2685
- [Bugfix] Convert metadata keys to screaming snake case instead of screaming kebab case in
cargo_build_script_runner
by @Pagten in #2682 - Add support for override_target when using bzlmod by @AmeliasCode in #2683
- Release 0.46.0 by @illicitonion in #2686
New Contributors
- @mattem made their first contribution in #2660
- @EdSchouten made their first contribution in #2671
- @mmorel-35 made their first contribution in #2678
- @ograff made their first contribution in #2674
- @Pagten made their first contribution in #2682
Full Changelog: 0.45.1...0.46.0
0.45.1
0.45.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-+bWb47wg0VchIADaHt6L5Dma2Gn+Q589nz/MKcTi+lo=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.45.1/rules_rust-v0.45.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Fixup from #2657 by @illicitonion in #2659
Full Changelog: 0.45.0...0.45.1
0.45.0
0.45.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-0IoZbO7cp5obgv01ucsnAjrWdGpBasntBusUXtdj1aY=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.45.0/rules_rust-v0.45.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Fix cc_common_link when using sibling repository layout by @yuzhy8701 in #2643
- Allow runfiles object to be an arbitrary expression. by @matts1 in #2651
- Allow searching for the rlocation of a module. by @matts1 in #2652
- Add support for generated sources to rust-analyzer. by @matts1 in #2654
- Added logging to crate_universe checksum validation by @UebelAndre in #2657
- Release 0.45.0 by @UebelAndre in #2658
New Contributors
- @yuzhy8701 made their first contribution in #2643
Full Changelog: 0.44.0...0.45.0
0.44.0
0.44.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-pt9MIrs/tDVzpMQIjvbQ+v44oOzQ+FrSH/2IiAAzcDA=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.44.0/rules_rust-v0.44.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Add target for running rustfmt directly by @illicitonion in #2648
- Release 0.44.0 by @illicitonion in #2649
Full Changelog: 0.43.0...0.44.0
0.43.0
0.43.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-SnzocNvQp1YK1TW/aUVhR6RSROo1l2RilE1V20WFnK0=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.43.0/rules_rust-v0.43.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Bzlmod-aware runfiles library by @dzbarsky in #2566
- Add clippy_flag flag to allow flags to be added in succession. by @granaghan in #2625
- Add aspect_rules_js to MODULE.bazel by @dzbarsky in #2618
- Register a default rust toolchain. by @matts1 in #2624
- Nit: Fix link to example in rust_bindgen.md by @hauserx in #2628
- Add context to error messages by @illicitonion in #2408
- Update
cargo_bootstrap_repository
interface to match dependency macros by @UebelAndre in #2630 - Added debug logging for spliced manifests to crate_universe by @UebelAndre in #2629
- also rewrite -isystem in addition to -sysroot by @adrianimboden in #2631
- Support loading http credentials from netrc by @golovasteek in #2623
- Updated Buildifier version for crate_universe by @UebelAndre in #2634
- Follow-up documentation/fixes to lockfile API by @illicitonion in #2637
- Add docs and examples of complicated build scripts by @illicitonion in #2635
- Added Rust 1.78.0 by @UebelAndre in #2639
- Remove
incompatible_test_attr_crate_and_srcs_mutually_exclusive
by @UebelAndre in #2641 - Minor cleanup for crate_universe by @UebelAndre in #2644
- Use
cargo tree
to determine feature dependent optional deps by @UebelAndre in #2636 - Release 0.43.0 by @UebelAndre in #2642
- Update cross to fix crate_universe builds in releases by @UebelAndre in #2645
New Contributors
- @hauserx made their first contribution in #2628
- @adrianimboden made their first contribution in #2631
- @golovasteek made their first contribution in #2623
Full Changelog: 0.42.1...0.43.0
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