Releases: bazelbuild/rules_rust
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
0.28.0
0.28.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "c46bdafc582d9bd48a6f97000d05af4829f62d5fee10a2a3edddf2f3d9a232c1",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.28.0/rules_rust-v0.28.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Remove cfg exec from link_deps attribute by @kalcutter in #2148
- Bump min Bazel version to 6.3 by @scentini in #2150
- Remove usage of grep_includes by @kotlaja in #2072
- Added github action to publish cargo-bazel binaries. by @UebelAndre in #2134
- Add missing comma in nightly's example in index.md by @dayfine in #2151
- cargo_build_scripts can be run from custom directories by @illicitonion in #2152
- Handle files from external repos (fix breaking change in Bazel 3.7.0) by @jgsogo in #2138
- Fix prost documentation errors by @joelwachsler in #2093
- Use cc_toolchain.linker_files() for files required at linking steps by @daivinhtran in #2165
- Added Rust 1.72.1 by @UebelAndre in #2163
- Export bindgen rules through
@rules_rust//bindgen:defs.bzl
by @UebelAndre in #2054 - Revert "Flip experimental_use_coverage_metadata_files" by @UebelAndre in #2164
- Release 0.28.0 by @UebelAndre in #2167
New Contributors
- @kotlaja made their first contribution in #2072
- @dayfine made their first contribution in #2151
- @jgsogo made their first contribution in #2138
- @joelwachsler made their first contribution in #2093
Full Changelog: 0.27.0...0.28.0
0.27.0
0.27.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "db89135f4d1eaa047b9f5518ba4037284b43fc87386d08c1d1fe91708e3730ae",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.27.0/rules_rust-v0.27.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Add
experimental_symlink_execroot
forcargo_build_script
. by @UebelAndre in #2085 - Fix doc for proc_macro_deps attr by @daivinhtran in #2095
- Fix typo in rust_proto documentation by @ryanpbrewster in #2099
- Make proc macros' "data" available in compile_data of crates that use macro by @dtolnay in #2097
- Update platforms by @keith in #2111
- Option to generate extra targets with crate_universe by @adsnaider in #2103
- Remove
mandatory = True
from theprost_plugin_flag
attribute inrust_prost_toolchain
. by @thb-sb in #2110 - Cleanup args construction by @dzbarsky in #2122
- Add crate_name attribute by @daivinhtran in #2118
- Make @using_cxx example buildable on Windows by @dtolnay in #2114
- Fix rust_doc_test dependency to allow either rust_library or cc_library by @HackAttack in #2112
- Read default annotation values from package's Cargo.toml metadata by @dtolnay in #2124
- Fill in some crate metadata for publishing cargo-bazel to crates.io by @dtolnay in #2132
- Add TemplateVariableInfo for build script toolchains attribute. by @granaghan in #2123
- Fix a typo in the
rust_proto
documentation. by @thb-sb in #2109 - Flip experimental_use_coverage_metadata_files by @UebelAndre in #2128
- Added Rust 1.72.0 by @UebelAndre in #2127
- crate_universe: Allow platform-specific build script env vars by @illicitonion in #2139
- Update rules_apple by @keith in #2137
- Release 0.27.0 by @UebelAndre in #2130
New Contributors
- @ryanpbrewster made their first contribution in #2099
- @adsnaider made their first contribution in #2103
- @dzbarsky made their first contribution in #2122
- @HackAttack made their first contribution in #2112
Full Changelog: 0.26.0...0.27.0
0.26.0
0.26.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "9d04e658878d23f4b00163a72da3db03ddb451273eb347df7d7c50838d698f49",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.26.0/rules_rust-v0.26.0.tar.gz"],
)
Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Have the prost process wrapper print warnings to stderr by @UebelAndre in #2053
- Enable rustfmt in bindgen toolchains by default by @UebelAndre in #2055
- Removed legacy
//proto:*.bzl
files and updated docs by @UebelAndre in #2057 - Improve handling of build.rs link dependencies by @coffinmatician in #1970
- Add
opt_level
argument torust_repository_set
. by @konkers in #2036 - Update dependencies versions by @rickvanprim in #2064
- Updated wasm-bindgen dependencies by @UebelAndre in #2066
- Update rust_analyzer dependencies by @UebelAndre in #2065
- Updated crate_universe dependencies by @UebelAndre in #2063
- Disable zig cross compiling example by @UebelAndre in #2081
- Added Rust 1.71.0 by @UebelAndre in #2062
- Add a clang-format check in CI by @UebelAndre in #2077
- Remove cfg exec from linker_scripts attribute. by @granaghan in #2070
- Add support for split_coverage_post_processing by @UebelAndre in #2000
- Remove unnecessary eval to fix PATH variables containing a space by @belak in #2087
- Release 0.26.0 by @UebelAndre in #2083
New Contributors
- @coffinmatician made their first contribution in #1970
- @granaghan made their first contribution in #2070
- @belak made their first contribution in #2087
Full Changelog: 0.25.1...0.26.0