Releases: bazelbuild/rules_rust
0.51.0
0.51.0
Bzlmod
bazel_dep(name = "rules_rust", version = "0.51.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-BCrPtzRpstGEj+FI2Bw0IsYepHqeGQDxyew29R6OcZM=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.51.0/rules_rust-v0.51.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Promote experimental_toolchain_generated_sysroot to non-experimental by @krasimirgg in #2849
- Propagate
cargo_build_script.data
toRustc
compile actions by @UebelAndre in #2856 - Build
rust_test
targets using a crate name different from the underlying lib by @felipeamp in #2828 - Allow
crates_vendor
to read theCARGO_BAZEL_DEBUG
env var by @UebelAndre in #2862 - crate_universe: Don't preform path translation on
out_dir
by @konkers in #2844 - Allow bzlmod users to inhibit toolchain registration by @konkers in #2819
- Add wasm64 support. by @freeformstu in #2866
- Update crate_universe to determine dep+feature trees per host by @UebelAndre in #2877
- Added tests for
runfiles::parse_repo_mapping
by @UebelAndre in #2869 - Move all settings flags into
//rust/settings
by @UebelAndre in #2870 - Update bindgen version to 0.70.1 by @UebelAndre in #2872
- Fix runfiles creation for directory based runfiles. by @UebelAndre in #2883
- crate_universe release 0.15.0 by @UebelAndre in #2880
- Update
cargo_build_script
to work without runfiles support. by @UebelAndre in #2871 - Revert "Update
cargo_build_script
to work without runfiles support (#2871)" by @UebelAndre in #2885 - Fix keyword handling in prost wrapper by @purkhusid in #2888
- Improved various tests to be more compatible on Windows by @UebelAndre in #2886
- Document upstream tooling wrappers by @illicitonion in #2890
- Update
cargo_build_script
to work without runfiles support. by @UebelAndre in #2887 - Release 0.51.0 by @UebelAndre in #2881
New Contributors
- @purkhusid made their first contribution in #2888
Full Changelog: 0.50.1...0.51.0
0.50.1
0.50.1
Bzlmod
bazel_dep(name = "rules_rust", version = "0.50.1")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-MZscNcESBO9WsdlKVJ9rnTUygTt3jwLXCe9oyDcDbPE=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.50.1/rules_rust-v0.50.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Update crate universe to generate build script targets with compile data by @UebelAndre in #2855
- Release 0.50.1 by @UebelAndre in #2857
Full Changelog: 0.50.0...0.50.1
0.50.0
0.50.0
Bzlmod
bazel_dep(name = "rules_rust", version = "0.50.0")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-NE2PXqlFFVnUDR4msCyI3kZtv1y1Io2MCsrlVxsdqI4=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.50.0/rules_rust-v0.50.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Delete
incompatible_no_rustc_sysroot_env
by @UebelAndre in #2790 - Use
target_flag_value
instead oftarget_triple.str
by @scentini in #2793 - Ensure proto compiler attribute is consistent in prost_toolchain by @UebelAndre in #2794
- Remove deprecated variables from
repositories.bzl
macros by @UebelAndre in #2795 - Restored bzlmod documentation. by @marvin-hansen in #2798
- Build
rust_test
targets using a crate name different from the underlying lib by @felipeamp in #2803 - Update Prost (proto) dependencies to latest versions by @UebelAndre in #2810
- Added
env_inherit
attribute torust_test
by @UebelAndre in #2809 - Revert "Build rust_test targets using a crate name different from the underlying lib" by @felipeamp in #2815
- Use
crate_name
to also matchcrate_root
. by @UebelAndre in #2824 - Moved
cargo_dep_env
into it's own file. by @UebelAndre in #2823 - Doc: update outdated parameter
output_diagnostics
by @LiXuanqi in #2813 - Update min bazel version by @scentini in #2812
- Flip
experimental_use_coverage_metadata_files
by @UebelAndre in #2830 - Consistently thread extra target constraints around by @illicitonion in #2829
- Updated docs to use mdbook by @UebelAndre in #2834
- Add s390x arch support by @Repana-Chowdappa in #2616
- rustdoc_test: Apply prefix stripping to proc_macro dependencies. by @konkers in #1952
- Minor improvements to documentation. by @UebelAndre in #2846
- Updated fetch_shas utility to use the channel manifest tomls by @UebelAndre in #2840
- Support emitting debug logs in rules_rust process wrapper. by @UebelAndre in #2845
- Prune
known_shas.bzl
to only include versions used in BazelCI by @UebelAndre in #2850 - Avoid double building
cargo_build_script.data
targets by @UebelAndre in #2826 - Use fake.rs not /dev/null as fake source file by @illicitonion in #2851
- Moved crate_universe
TreeResolver
into it's own file. by @UebelAndre in #2852 - Error on absolute src paths by @illicitonion in #2853
- Improve crate_universe debug logging for
cargo tree
parsing by @UebelAndre in #2854 - Added Rust 1.81.0 by @UebelAndre in #2841
- Update
runfiles::rlocation!
to returnOption
instead of panicing by @UebelAndre in #2847 - Release 0.50.0 by @UebelAndre in #2835
New Contributors
- @felipeamp made their first contribution in #2803
- @LiXuanqi made their first contribution in #2813
- @Repana-Chowdappa made their first contribution in #2616
Full Changelog: 0.49.3...0.50.0
0.49.3
0.49.3
Bzlmod
bazel_dep(name = "rules_rust", version = "0.49.3")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-3QBrdyIdWeTRQSB8DnrfEbH7YNFEC4/KA7+SVheTKmA=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.49.3/rules_rust-v0.49.3.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Fake resolve roots don't forcibly enable default features by @illicitonion in #2789
- Release 0.49.3 by @illicitonion in #2791
Full Changelog: 0.49.2...0.49.3
0.49.2
0.49.2
Bzlmod
bazel_dep(name = "rules_rust", version = "0.49.2")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-5r5uj7WUevWfVgA45OWPa0brUJilfa0KOKHsVLcQBmA=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.49.2/rules_rust-v0.49.2.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Introduce feature
rules_rust_link_cc
. by @yuzhy8701 in #2723 - Fix up fake resolve roots for proc macros by @illicitonion in #2784
- Release 0.49.2 by @illicitonion in #2785
Full Changelog: 0.49.1...0.49.2
0.49.1
0.49.1
Bzlmod
bazel_dep(name = "rules_rust", version = "0.49.1")
WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
integrity = "sha256-vPcQEm9pdNwttW2exexMfGxOLFOwcotEw1t3CkgCS8k=",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.49.1/rules_rust-v0.49.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Support alwayslink for linking with clang by @cerisier in #2647
- Add virtual deps to package, not virtual workspace root by @illicitonion in #2775
- Release 0.49.1 by @illicitonion in #2776
New Contributors
Full Changelog: 0.49.0...0.49.1
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