Releases: bazelbuild/rules_rust
0.5.0
0.5.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "73580f341f251f2fc633b73cdf74910f4da64d06a44c063cbf5c01b1de753ec1",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.5.0/rules_rust-v0.5.0.tar.gz"],
)Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Replace slashes with underscores in default crate names. by @cfredric in #1334
- "sandwich" rlibs between native deps in linker order by @krasimirgg in #1333
- Revert "Replace slashes with underscores in default crate names." by @cfredric in #1335
- Replace slashes with underscores in default crate names. by @cfredric in #1336
- remove experimental_use_whole_archive_for_native_deps by @krasimirgg in #1338
- Add support for riscv32 targets by @cfrantz in #1323
- Build
rust_testtargets withcrateusing the same crate name as the underlying library target. by @cfredric in #1332 - Remove unnecessary
crate_nameusage inrust_test_suite. by @cfredric in #1345 - Temporarily disable windows job in CI. by @UebelAndre in #1352
- Added support for Rust 1.61.0 to crate_universe by @UebelAndre in #1348
- Update apple_support by @keith in #1346
- Fixed fetch_shas script to correctly include .gz and .xz extensions by @UebelAndre in #1355
- Added Rust 1.61.0 by @UebelAndre in #1347
- Updated rust_bindgen dependencies API by @UebelAndre in #1354
- Add developing notes for crate_universe by @UebelAndre in #1351
- Ensure memchr is linked after libobject by @bsilver8192 in #1349
- feat: build script toolchains annotations by @roman-kashitsyn in #1344
- Fixed missing docs by @UebelAndre in #1358
- Don't leak native dependencies of proc_macro by @scentini in #1359
- crate_universe: fix typo by @leoluk in #1314
- Updated
rules_rustversion to0.5.0by @UebelAndre in #1360
New Contributors
- @cfrantz made their first contribution in #1323
- @bsilver8192 made their first contribution in #1349
- @leoluk made their first contribution in #1314
Full Changelog: 0.4.0...0.5.0
0.4.0
0.4.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "edb87c0d2ba70823fe3df7862676d695599314a4634b9758bd55f0e8f19c2751",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.4.0/rules_rust-v0.4.0.tar.gz"],
)Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Make get_host_triple public to get a triple from Bazel's repository_ctx by @dtolnay in #1289
- Remove
triplefield from triple struct in favor ofstrby @dtolnay in #1297 - Use EXEC_ROOT paths for genfiles in rust_analyzer aspect by @csmulhern in #1293
- rustc: fix a conditional by @gburgessiv in #1300
- Updated crate_universe docs by @UebelAndre in #1301
- fix for using a nightly channel after commit 841fc6f by @krasimirgg in #1302
- Don't emit
CrateInfofromrust_static_libraryandrust_shared_libraryby @scentini in #1298 - Don't propagate non-shared transitive linker inputs from
rust_static|shared_libraryby @scentini in #1299 - Remove doc about STATIC_RUST_URL env var. by @wt in #1306
- Use tinyjson from crates.io instead of github.com. by @wt in #1309
- Address warnings for example/test dependencies by @UebelAndre in #1312
- crate_universe: Improved documentation by @UebelAndre in #1305
- Add bazel-* directories in cargo_manifest_dir/external_crate to gitignore by @dtolnay in #1279
- Add support for aarch64-apple-ios-sim by @keith in #1304
- Prevents running of clippy on bindgen targets by @csmulhern in #1320
- Updated wasm_bindgen rules to only require core
rules_nodejsrules by @UebelAndre in #1311 - Updated wasm_bindgen dependencies API by @UebelAndre in #1313
- Error calling
all_crate_depswithoutCargo.tomlby @illicitonion in #1327 - Support . workspace member by @illicitonion in #1326
- Bump version to 0.4.0 by @illicitonion in #1329
New Contributors
- @gburgessiv made their first contribution in #1300
Full Changelog: 0.3.1...0.4.0
0.3.1
0.3.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "e074f1e203607c5fcd549929d956170346f8807d2bbaeb98b2ed213c37e0870f",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.3.1/rules_rust-v0.3.1.tar.gz"],
)Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- feat(#514): pass extra flags to clippy by @roman-kashitsyn in #1264
- Enable xz archives by @wt in #1284
- crate_universe: Added tests for serialized config files. by @UebelAndre in #1291
- Fixed build issues in release artifact by @UebelAndre in #1295
- Updated
rules_rustversion to0.3.1by @UebelAndre in #1296
Full Changelog: 0.3.0...0.3.1
0.3.0
0.3.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "7987b82e322d106462812677eb9a801c027fbe46483f497f390d4b94a2b47543",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.3.0/rules_rust-v0.3.0.tar.gz"],
)Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- rust_test_suite: ensure crate names are valid by @durin42 in #1248
- Workaround for issue in linux Cargo binaries by @UebelAndre in #1252
- Updated Rust to 1.60.0 by @UebelAndre in #1247
- Set edition for process_wrapper and cargo_build_script_runner by @dtolnay in #1254
- Add the BUILD.bazel file to the wasm_bindgen distro filegroup target by @diceride in #1261
- Add workaround for arm vs armv7 android issue by @keith in #1259
- crate_universe: propagate build_script_tools by @duarten in #1266
- process_wrapper: add support for terminating rustc after it emits rmeta. by @gigaroby in #1207
- add a stopgap experimental_use_whole_archive_for_native_deps attribute by @krasimirgg in #1269
- Remove
rust_testexample which doesn't build. by @cfredric in #1267 - Don't leak additive build file content across crates by @uhthomas in #1278
- Fix target name in
rust_testexample. by @cfredric in #1280 - Fix crate annotation anchor by @uhthomas in #1282
- Fix typo in render config doc by @uhthomas in #1281
- feat: support extra deps in rust_doc_test by @roman-kashitsyn in #1286
- Outside of examples, fill in all
editionattrs by @dtolnay in #1257 - Remove DEFAULT_RUST_EDITION by @dtolnay in #1256
- Revert "Add workaround for arm vs armv7 android issue" by @keith in #1290
- Updated
rules_rustversion to0.3.0by @UebelAndre in #1288
New Contributors
- @diceride made their first contribution in #1261
- @duarten made their first contribution in #1266
- @uhthomas made their first contribution in #1278
- @roman-kashitsyn made their first contribution in #1286
Full Changelog: 0.2.1...0.3.0
0.2.1
0.2.1
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "b58c63a6d8221f408f8852b4f74f81bc8c7aac9273f3899a74e32e6168a2c624",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.2.1/rules_rust-v0.2.1.tar.gz"],
)Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Updated repository pin in the docs by @UebelAndre in #1240
- Fixed proto package in release artifact by @djmarcin in #1241
- Updating
rules_rustversion to0.2.1by @UebelAndre in #1243
Full Changelog: 0.2.0...0.2.1
0.2.0
0.2.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "39655ab175e3c6b979f362f55f58085528f1647957b0e9b3a07f81d8a9c3ea0a",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.2.0/rules_rust-v0.2.0.tar.gz"],
)Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Build
_import_macro_depinexecmode by @scentini in #1203 - Don't leak deps from rust_proc_macro by @scentini in #1206
- Updated crate_universe setup guide by @UebelAndre in #1202
- cache the release archive in release actions by @UebelAndre in #1201
- Delete deprecated
rulestargets by @UebelAndre in #1210 - Updated crate_universe docs. by @UebelAndre in #1212
- Updated docs to guide users to using releases by @UebelAndre in #1213
- Restrucutred
crate_universedependency macros by @UebelAndre in #1208 - Add NUM_JOBS env var to cargo build scripts by @illicitonion in #1216
- fix
stamp = 0in rust_binary_without_process_wrapper by @krasimirgg in #1218 - Renamed
crate_indexrepository tocrate_universe_crate_indexby @UebelAndre in #1217 - don't emit --codegen={metadata,extra-filename} for rust_static_library and rust_shared_library by @krasimirgg in #1222
- add bots using lld (and examples with clang as a drive by) by @krasimirgg in #1221
- Fixed
crate_universeclippy defects by @UebelAndre in #1228 - Fix some unit tests to run from another workspace by @siddharthab in #1226
- Enabled
rust_doc_testforcrate_universeby @UebelAndre in #1232 - fix: distribute
//tools/rust_analyzerby @UebelAndre in #1234 - Fixed
crates_repositorydeleting.cargo/config.tomlfiles. by @UebelAndre in #1227 - Replace
rust_repositorieswithrust_register_toolchainsin docs by @UebelAndre in #1237 - Updated
crate_universeversion to0.2.0by @UebelAndre in #1239 - Updating
rules_rustversion to0.2.0by @UebelAndre in #1235
New Contributors
- @siddharthab made their first contribution in #1226
Full Changelog: 0.1.0...0.2.0
0.1.0
0.1.0
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust",
sha256 = "7453856d239a004c9e29cde2e45903a068446e4a69501ee7393faf08e1a30403",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.1.0/rules_rust-v0.1.0.tar.gz"],
)Additional documentation can be found at: https://bazelbuild.github.io/rules_rust/#setup
What's Changed
- Set the target triplet when invoking rustc by @damienmg in #136
- Implement directory based runfiles lookup [#130] by @mfarrugi in #132
- Update rust to 1.27.2 by @mfarrugi in #138
- Add --remap-path-prefix=$PWD to make dbg builds more reproducible. by @mfarrugi in #139
- Look for ${crate_name}.rs as a crate_root by default. by @mfarrugi in #137
- Migrate rules_rust to the new Starlark C++ toolchain API by @hlopko in #133
- Do not crash on using version check with development version of bazel. by @hlopko in #145
- Fix version check in rustc.bzl by @hlopko in #146
- Add builtin rust platform decls with examples by @acmcarther in #144
- Update bazel_toolchains pin. by @xingao267 in #147
- Replace usages of
ctx.actionwithctx.actions.{run, run_shell}by @mfarrugi in #151 - STATIC_RUST_URL sets the static.rust-lang.org URL by @damienmg in #143
- Test rustc flag and feature flags by @damienmg in #153
- fix: corner case in crate dependencies by @damienmg in #154
- Update known_shas to recent versions by @damienmg in #156
- Protobuf support by @damienmg in #92
- Fix rust_doc_test with transitive dependencies and add tests for it by @damienmg in #155
- doc: change reference to proto_compile into proto_library by @damienmg in #158
- Pass -p to mkdir to make sure we do not fails if bazel already created the output directory by @damienmg in #159
- Cleanups for compatibility with future Bazel releases by @laurentlb in #162
- Use http_archive for protobuf repository by @damienmg in #163
- Protobuf support: support proto_source_root attribute by @damienmg in #164
- Update bazel-toolchains pin by @hlopko in #165
- Update dependencies, fix a few incompatible issues by @laurentlb in #166
- More bazel --incompatible fixes (#161) by @mfarrugi in #169
- Add edition support to rules and toolchain. (#157) by @mfarrugi in #168
- Update links to crates in documentation by @mjduijn in #175
- Proto: documentation to change dependencies by @damienmg in #173
- Get stardoc working and update docs. #140 by @mfarrugi in #174
- Fix register toolchains example code by @mjduijn in #177
- Small README grammar fixes by @johnedmonds in #181
- Update dependency by @laurentlb in #182
- Change dash to underscore in generated filenames by @mjduijn in #178
- Establish
CARGO_MANIFEST_DIRby @GregBowyer in #180 - Fix setup snippet in the README (#167) by @mfarrugi in #184
- Create CODEOWNERS by @dslomov in #187
- Take 'default_edition' as an optional parameter of BUILD_for_rust_toolchain. by @mfarrugi in #188
- add rule for bindgen (#102) by @mfarrugi in #108
- Fix the label for Clang's BUILD file by @kornholi in #191
- Pass in correct include directories to bindgen by @kornholi in #192
- Test the examples on Bazel's CI by @philwo in #193
- Update bazel-toolchains version by @hlopko in #194
- Update version of stardoc by @damienmg in #196
- Configure Renovate by @renovate-bot in #198
- Update bazel toolchains pin and add toolchain config target by @nlopezgi in #201
- Add linker_script option to rust_binary by @m3rcuriel in #208
- Bump Rust to 1.33.0 by @mjduijn in #210
- Use ProtoInfo instead of legacy .proto attr by @mfarrugi in #211
- #190, #200 :: Migrate to new cc provider. by @mfarrugi in #209
- Make it possible for unit tests to have dev deps by @GregBowyer in #203
- Don't test on Ubuntu 14.04 by @philwo in #215
- Fix symlink resolution in runfiles.rs by @mfarrugi in #214
- update pin to bazel toolchains repo by @nlopezgi in #216
- Fix failure to build without iterable depset by @m3rcuriel in #221
- Add cc toolchain files to rustc dependencies (for linker) by @m3rcuriel in #217
- Migrate for Bazel's --incompatible_require_ctx_in_configure_features by @hlopko in #224
- Fix failure to build without iterable depset pt. 2 by @m3rcuriel in #225
- Add CARGO_CFG_TARGET_OS and CARGO_CFG_TARGET_ARCH to rustc environment variables by @johnedmonds in #230
- Update code for compatibility to Bazel 0.27 by @laurentlb in #232
- Bump Rust to 1.35.0. by @kprevas in #236
- Make rust_proto_library work with proto_library rules using import_prefix / strip_import_prefix . by @lberki in #239
- Replace the legacy .proto. provider with the new ProtoInfo. by @lberki in #242
- Replace the deprecated proto_source_root attribute. by @lberki in #241
- Use empty dictionary instead of None for kwargs by @vitalyd in #244
- Add allow_empty to glob, as the patterns don't necessarily match something by @laurentlb in #245
- Make rust_proto_library not require the proto_library.proto_source_ro… by @lberki in #246
- Update rules_rust dependency on skydoc by @c-parsons in #248
- Use C++ environment variables when constructing link command line by @hlopko in #252
- Update setup instructions by @laurentlb in #254
- Explicitly provide rustc the paths to the standard library. by @wildarch in #258
- Add support for wasm-bindgen. by @johnedmonds in #240
- Add badge for incompatible flag pipeline by @hlopko in #259
- Migrate rules_rust for incompatible_use_platforms_repo_for_constraints by @hlopko in #257
- Run buildifier to reformat bzl/BUILD files by @hlopko in #260
- fix: add all_files to the dummy cc_toolchain by @qzmfranklin in #265
- Update protobuf by @hlopko in #261
- Fix bzl loads by @hlopko in #262
- Bump Rust version to 1.39.0 by @ok32 in #273
- Mirror all http_archives. by @philwo in #269
- Rename wasm_transition to relate to what it actually does by @m3rcuriel in #272
- rust/private/dummy_cc_toolchain: be explicit about the repository by @aehlig in #277
- Use up to date stardoc to avoid build errors by @GregBowyer in #290
- Allow deps to be renamed by @GregBowyer in #285
- Add sha256 argument to load_arbitrary_tool by @m3rcuriel in #292
- Upd...