Releases: bazelbuild/rules_rust
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
0.35.0
0.35.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "d21c328b21f3c9ecfa4c1e92dd61ace63ff22603234067cf0fe495f75ac251ae",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.35.0/rules_rust-v0.35.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Include all toolchain files in the current toolchain by @illicitonion in #2336
- fix: use
watch_file
in.envrc
by @cgrindel in #2343 - Minor cleanup of
.bazelrc
andpresubmit.yaml
by @UebelAndre in #2341 - _rust_binary_impl: propagate
data
to the crate info by @krasimirgg in #2342 - chore: remove print from MODULE.bazel by @cgrindel in #2345
- Register apple cc toolchain by @illicitonion in #2352
- Register a toolchain by default in MODULE.bazel by @matts1 in #2351
- Adjust is_exec_configuration heuristic by @sdtwigg in #2349
- Minor cleanup by @UebelAndre in #2357
- Added Rust 1.74.1 by @UebelAndre in #2354
- Include more cc_toolchain flags in RustBindgen actions by @UebelAndre in #2358
- chore: add
//bzlmod:hello_world_test
and use it as BCR presubmit by @cgrindel in #2347 - Added
rust_unpretty_aspect
andrust_unpretty
rules by @UebelAndre in #2356 crate.select()
support by @rickvanprim in #1977- Fix
alias_rules
missing CcInfo and not being listed inCARGO_BAZEL_SRCS
and misc Nix example fixes. by @rickvanprim in #2353 - Remove
CrateFeatures::Legacy
by @rickvanprim in #2338 - Release 0.35.0 by @UebelAndre in #2360
New Contributors
Full Changelog: 0.34.1...0.35.0
0.34.1
0.34.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "75177226380b771be36d7efc538da842c433f14cd6c36d7660976efb53defe86",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.34.1/rules_rust-v0.34.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
cargo-bazel
now supportsalias_rule
to customize the aliases generated by @rickvanprim in #2312- fix: update download URL for BCR presubmit check by @cgrindel in #2337
- Release 0.34.1 by @illicitonion in #2339
New Contributors
Full Changelog: 0.34.0...0.34.1
0.34.0
0.34.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "049fe1866e36f7c46cd266b66bad160a9a792e90e5ddd2baeae48fadeea94832",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.34.0/rules_rust-v0.34.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Uprev bazel CI to bazel 7.0.0 by @matts1 in #2322
- Add
env
attribute torust_binary
by @UebelAndre in #1692 - cargo-bazel: Corrected sparse registry splicing code by @JulianSchmid in #2325
- Add support for QNX by @jondo2010 in #2195
- Platform transition added to Rust binary rules. by @rickvanprim in #2310
- Remove
.bazelversion
file to always use latest release available. by @UebelAndre in #2323 - Add crate for testing build configs by @illicitonion in #2326
- Add licence to Cargo.toml by @illicitonion in #2327
- Inform users that
crate
andsrcs
are mutually exclusive by @UebelAndre in #1650 - Regenerate crate_universe examples by @UebelAndre in #2330
- Moved
generate_target_compatible_with
intorender_config
. by @rickvanprim in #2329 - Release 0.34.0 by @UebelAndre in #2334
New Contributors
- @JulianSchmid made their first contribution in #2325
- @jondo2010 made their first contribution in #2195
Full Changelog: 0.33.0...0.34.0
0.33.0
0.33.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "0f18dd752b87d2203c140b3e356364b08a91eb6aa9b2d689ea69eb7cc2530f4d",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.33.0/rules_rust-v0.33.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- rust-analyzer: Include prost_runtime as a dep for rust_prost_library by @DolceTriade in #2290
- Fix inclusion/exclusion of optional dependencies by @kersson in #2295
- Add android in runtime linking support check by @gferon in #2144
- Improve the error message when crate root couldn't be found. by @hlopko in #2296
- Cleanup sysroot flag by @UebelAndre in #2297
- Declare dependencies in vendored crates by @matts1 in #2246
- Use js_info macro to populate JsInfo provider (js_rust_wasm_bindgen) by @jstuder-gh in #2303
- Add an option to save the json output from rustc to pass to rust-analyzer by @matts1 in #1942
- Replace fixedReleaser by @scentini in #2304
- Updated direct dependencies by @UebelAndre in #2308
- Move implementation detail settings into private module by @UebelAndre in #2305
- Add a new presubmit environment for bzlmod by @matts1 in #2309
- fix:
rustc_compile_action
emitsCcInfo
forwasm32
targets by @rickvanprim in #1979 - NixOS added as a Platform target including a pseudo target triple by @rickvanprim in #2311
- Pin repo to bazel 6.4.0 by @illicitonion in #2318
- Allow additional targets to compile with bzlmod by @matts1 in #2314
- Introduced
TargetTriple
newtype. by @rickvanprim in #2315 - Nix example switched to using
crate_universe_dependencies(bootstrap=True)
by @rickvanprim in #2313 - Release 0.33.0 by @illicitonion in #2319
New Contributors
- @kersson made their first contribution in #2295
- @jstuder-gh made their first contribution in #2303
Full Changelog: 0.32.0...0.33.0
0.32.0
0.32.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "1e7114ea2af800c6987ca38daeee13e3ae6e934875b4f7ca24b798857f95431e",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.32.0/rules_rust-v0.32.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Use a more recent rules_rust version in the Setup docs. by @katre in #2274
- replace pwd in rust-project.json output #1 by @ibigbug in #2272
- cargo_build_script can use rustc_env_files by @illicitonion in #2276
- Bump cargo_toml to 0.17.1 by @illicitonion in #2278
- Add repin script by @illicitonion in #2282
- Default experimental_toolchain_generated_sysroot to True by @daivinhtran in #2277
- crate_universe: Allow passing extra args down to crate_universe_bootstrap by @DolceTriade in #2279
- Added support for multiple javascript rule sets to wasm_bindgen package by @UebelAndre in #2284
- Release 0.32.0 by @illicitonion in #2289
New Contributors
- @ibigbug made their first contribution in #2272
- @DolceTriade made their first contribution in #2279
Full Changelog: 0.31.0...0.32.0
0.31.0
0.31.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "36ab8f9facae745c9c9c1b33d225623d976e78f2cc3f729b7973d8c20934ab95",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.31.0/rules_rust-v0.31.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Regenerated crate_universe test data by @UebelAndre in #2221
- Update default resolver version in crates_universe rules by @UebelAndre in #2220
- Added tracing (logging) to crate_universe by @UebelAndre in #2224
- Split write_splicing_manifest and write_config_file. by @matts1 in #2225
- Adds support for bindeps in crate universe by @csmulhern in #2226
- Support artifact dependencies in crate.spec by @dtolnay in #2229
- Set --sysroot to sysroot generated by rust_toolchain by @daivinhtran in #2223
- [prost] includes prost crate infos in rust_analyzer_aspect by @iamricard in #2232
- Updated crate_universe dependencies by @UebelAndre in #2228
- process_wrapper: write all output from rustc if json parsing fails. by @gigaroby in #2234
- Take into account DependencyKind when collecting package target dependencies by @dmitrii-ubskii in #2235
- Allow passing explicit labels as select keys by @illicitonion in #2239
- Update wasm-bindgen to 0.2.88 by @alexkirsz in #2240
- Run "bazel run //*:crates_vendor" by @matts1 in #2245
- Rerun crates_vendor for additional packages by @matts1 in #2251
- Fix docs for Bazel@HEAD by @Wyverald in #2250
- Add configuration to mirror github releases to bazel central registry by @kageiit in #2256
- Support rustfmt on crates with generated sources by @UebelAndre in #2255
- Added Rust 1.74.0 by @UebelAndre in #2268
- Fix optional dependency check when crate is renamed by @nbdd0121 in #2265
- Release 0.31.0 by @UebelAndre in #2270
New Contributors
- @iamricard made their first contribution in #2232
- @dmitrii-ubskii made their first contribution in #2235
- @alexkirsz made their first contribution in #2240
- @kageiit made their first contribution in #2256
- @nbdd0121 made their first contribution in #2265
Full Changelog: 0.30.0...0.31.0
0.30.0
0.30.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "6357de5982dd32526e02278221bb8d6aa45717ba9bbacf43686b130aa2c72e1e",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.30.0/rules_rust-v0.30.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Support cargo_bazel_bootstrap for bzlmod by @matts1 in #2021
- Fix handling of proc macro deps with multiple kinds by @ulan in #2211
- Shorten test targets by @daivinhtran in #2214
- Fix issues causing the
Rustc
process wrapper to be built non-determ… by @UebelAndre in #2216 - Release 0.30.0 by @UebelAndre in #2219
New Contributors
Full Changelog: 0.29.1...0.30.0
0.29.1
0.29.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "9ecd0f2144f0a24e6bc71ebcc50a1ee5128cedeceb32187004532c9710cb2334",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.29.1/rules_rust-v0.29.1.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Update using_cxx example to cxx 1.0.109 by @dtolnay in #2200
- Fix prost toolchain documentation typo by @joelwachsler in #2202
- Update rules_cc to 0.0.9 by @toandaominh1997 in #2201
- Add Android Platforms build flags. by @katre in #2198
- Refactor rustc_compile_action to construct CrateInfo internally by @daivinhtran in #2188
- Remove _rustc_env_attr from CrateInfo by @daivinhtran in #2189
- Migrade rbe_ubuntu1604 to rbe_ubuntu2004 by @coeuvre in #2208
- add compile_data attr to cargo_build_script by @krasimirgg in #2203
- Prep release 0.29.1 by @krasimirgg in #2209
New Contributors
- @toandaominh1997 made their first contribution in #2201
Full Changelog: 0.29.0...0.29.1
0.29.0
0.29.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "814680e1ab535f799fd10e8739ddca901351ceb4d2d86dd8126c22d36e9fcbd9",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.29.0/rules_rust-v0.29.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- rustdoc: respect error_format config by @goffrie in #2166
- Set up default allocator_library and global_allocator_library by @illicitonion in #2172
- Add
toolchain
parameter to the affected actions by @kotlaja in #2140 - Make more annotations select-able by @illicitonion in #2180
- Disable Bzlmod explicitly in .bazelrc by @meteorcloudy in #2182
- Refactor CrateInfo construction by @daivinhtran in #2161
- Simplify CPU arch detection in get_host_triple by @dzbarsky in #2183
- Added Rust 1.73.0 by @UebelAndre in #2184
- Disable frequently failing Windows CI by @illicitonion in #2187
- Add target_compatible_with from kwargs to build_script_kwargs by @daivinhtran in #2133
- Set CARGO_MANIFEST_LINKS if links is set by @illicitonion in #2190
- Use canonical labels for analysistest config_settings by @nickgooding in #2191
- [prost] Fix handling of message names with acronyms by @william-smith-skydio in #2193
- [prost] Handle argfiles by @william-smith-skydio in #2194
- Improvements to better support cxx by @illicitonion in #2192
- Prep release 0.29.0 by @illicitonion in #2197
New Contributors
- @nickgooding made their first contribution in #2191
Full Changelog: 0.28.0...0.29.0