mirror of
https://github.com/cameron-martin/bazel-lsp.git
synced 2025-08-04 14:28:24 +00:00
![renovate[bot]](/assets/img/avatar_default.png)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_rust](https://redirect.github.com/bazelbuild/rules_rust) | bazel_dep | minor | `0.61.0` -> `0.62.0` | | [rules_rust_prost](https://redirect.github.com/bazelbuild/rules_rust) | bazel_dep | minor | `0.61.0` -> `0.62.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_rust (rules_rust)</summary> ### [`v0.62.0`](https://redirect.github.com/bazelbuild/rules_rust/releases/tag/0.62.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_rust/compare/0.61.0...0.62.0) ### 0.62.0 Additional documentation can be found at: https://bazelbuild.github.io/rules\_rust/#setup #### Bzlmod ```python bazel_dep(name = "rules_rust", version = "0.62.0") ``` #### WORKSPACE ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_rust", integrity = "sha256-ydWjnLPhzqys6Y8Z8J1hxLVQNLw0pWW9z3zYDrTEEq8=", urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.62.0/rules_rust-0.62.0.tar.gz"], ) ``` #### Extensions <details> ##### Bindgen <details> ##### Bzlmod ```python bazel_dep(name = "rules_rust_bindgen", version = "0.62.0") ``` ##### WORKSPACE ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_rust_bindgen", integrity = "sha256-ydWjnLPhzqys6Y8Z8J1hxLVQNLw0pWW9z3zYDrTEEq8=", strip_prefix = "extensions/bindgen", urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.62.0/rules_rust-0.62.0.tar.gz"], ) ``` </details> ##### MdBook <details> ##### Bzlmod ```python bazel_dep(name = "rules_rust_mdbook", version = "0.62.0") ``` ##### WORKSPACE ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_rust_mdbook", integrity = "sha256-ydWjnLPhzqys6Y8Z8J1hxLVQNLw0pWW9z3zYDrTEEq8=", strip_prefix = "extensions/mdbook", urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.62.0/rules_rust-0.62.0.tar.gz"], ) ``` </details> ##### Prost <details> ##### Bzlmod ```python bazel_dep(name = "rules_rust_prost", version = "0.62.0") ``` ##### WORKSPACE ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_rust_prost", integrity = "sha256-ydWjnLPhzqys6Y8Z8J1hxLVQNLw0pWW9z3zYDrTEEq8=", strip_prefix = "extensions/prost", urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.62.0/rules_rust-0.62.0.tar.gz"], ) ``` </details> ##### Protobuf <details> ##### Bzlmod ```python bazel_dep(name = "rules_rust_protobuf", version = "0.62.0") ``` ##### WORKSPACE ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_rust_protobuf", integrity = "sha256-ydWjnLPhzqys6Y8Z8J1hxLVQNLw0pWW9z3zYDrTEEq8=", strip_prefix = "extensions/protobuf", urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.62.0/rules_rust-0.62.0.tar.gz"], ) ``` </details> ##### Wasm-Bindgen <details> ##### Bzlmod ```python bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.62.0") ``` ##### WORKSPACE ```python load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_rust_wasm_bindgen", integrity = "sha256-ydWjnLPhzqys6Y8Z8J1hxLVQNLw0pWW9z3zYDrTEEq8=", strip_prefix = "extensions/wasm_bindgen", urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.62.0/rules_rust-0.62.0.tar.gz"], ) ``` </details> </details> #### What's Changed * [Doc] Improve documentation on toolchain registration with bzlmod by @​bertul[https://github.com/bazelbuild/rules_rust/pull/3430](https://redirect.github.com/bazelbuild/rules_rust/pull/3430)l/3430 * Use toolchain default version during bindgen by @​mbear[https://github.com/bazelbuild/rules_rust/pull/3432](https://redirect.github.com/bazelbuild/rules_rust/pull/3432)l/3432 * Added Rust 1.87.0 by @​UebelAnd[https://github.com/bazelbuild/rules_rust/pull/3443](https://redirect.github.com/bazelbuild/rules_rust/pull/3443)l/3443 * Rewrite relative paths for bin dirs (`-B`) in build scripts by @​mcculloc[https://github.com/bazelbuild/rules_rust/pull/3446](https://redirect.github.com/bazelbuild/rules_rust/pull/3446)l/3446 * Updated buildifier by @​UebelAnd[https://github.com/bazelbuild/rules_rust/pull/3451](https://redirect.github.com/bazelbuild/rules_rust/pull/3451)l/3451 * Filter `panic_files` correctly by @​FabianWol[https://github.com/bazelbuild/rules_rust/pull/3454](https://redirect.github.com/bazelbuild/rules_rust/pull/3454)l/3454 * Fix all crate_universe workspace urls by @​hof[https://github.com/bazelbuild/rules_rust/pull/3457](https://redirect.github.com/bazelbuild/rules_rust/pull/3457)l/3457 * docs: Add recommendations for lockfile by @​hof[https://github.com/bazelbuild/rules_rust/pull/3467](https://redirect.github.com/bazelbuild/rules_rust/pull/3467)l/3467 * typo proc-marco -> proc-macro by @​NilsI[https://github.com/bazelbuild/rules_rust/pull/3472](https://redirect.github.com/bazelbuild/rules_rust/pull/3472)l/3472 * Fixup typo in error message (havee -> have) by @​Syn[https://github.com/bazelbuild/rules_rust/pull/3453](https://redirect.github.com/bazelbuild/rules_rust/pull/3453)l/3453 * rustdoc: make html_in_header work by @​GregBowy[https://github.com/bazelbuild/rules_rust/pull/3343](https://redirect.github.com/bazelbuild/rules_rust/pull/3343)l/3343 * Allow renaming generated Prost crate name by @​purkhus[https://github.com/bazelbuild/rules_rust/pull/3438](https://redirect.github.com/bazelbuild/rules_rust/pull/3438)l/3438 * Allow the customization of sysroot_src in the generated rust-project.… by @​phot[https://github.com/bazelbuild/rules_rust/pull/3306](https://redirect.github.com/bazelbuild/rules_rust/pull/3306)l/3306 * Release 0.62.0 by @​illicitoni[https://github.com/bazelbuild/rules_rust/pull/3473](https://redirect.github.com/bazelbuild/rules_rust/pull/3473)l/3473 #### New Contributors * @​mbeards made their first contributi[https://github.com/bazelbuild/rules_rust/pull/3432](https://redirect.github.com/bazelbuild/rules_rust/pull/3432)l/3432 * @​mccullocht made their first contributi[https://github.com/bazelbuild/rules_rust/pull/3446](https://redirect.github.com/bazelbuild/rules_rust/pull/3446)l/3446 * @​FabianWolff made their first contributi[https://github.com/bazelbuild/rules_rust/pull/3454](https://redirect.github.com/bazelbuild/rules_rust/pull/3454)l/3454 * @​Synss made their first contributi[https://github.com/bazelbuild/rules_rust/pull/3453](https://redirect.github.com/bazelbuild/rules_rust/pull/3453)l/3453 * @​photex made their first contributi[https://github.com/bazelbuild/rules_rust/pull/3306](https://redirect.github.com/bazelbuild/rules_rust/pull/3306)l/3306 **Full Changelog**: https://github.com/bazelbuild/rules\_rust/compare/0.61.0...0.62.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/cameron-martin/bazel-lsp). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC42Mi4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjIuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cameron Martin <cameronmartin123@gmail.com>
75 lines
2.3 KiB
Text
75 lines
2.3 KiB
Text
bazel_dep(name = "rules_rust", version = "0.62.0")
|
|
bazel_dep(name = "rules_rust_prost", version = "0.62.0")
|
|
|
|
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
|
|
rust.toolchain(
|
|
edition = "2021",
|
|
versions = ["1.84.0"],
|
|
)
|
|
use_repo(rust, "rust_toolchains")
|
|
register_toolchains("@rust_toolchains//:all")
|
|
|
|
rust_host_tools = use_extension("@rules_rust//rust:extensions.bzl", "rust_host_tools")
|
|
|
|
use_repo(rust_host_tools, "rust_host_tools")
|
|
|
|
crate = use_extension(
|
|
"@rules_rust//crate_universe:extension.bzl",
|
|
"crate",
|
|
isolate=True
|
|
)
|
|
crate.from_cargo(
|
|
name = "crates",
|
|
cargo_lockfile = "Cargo.lock",
|
|
manifests = ["Cargo.toml"],
|
|
supported_platform_triples = [
|
|
"aarch64-apple-darwin",
|
|
"aarch64-unknown-linux-gnu",
|
|
"x86_64-apple-darwin",
|
|
"x86_64-pc-windows-msvc",
|
|
"x86_64-unknown-linux-gnu",
|
|
],
|
|
)
|
|
use_repo(crate, "crates")
|
|
|
|
crate.annotation(
|
|
crate = "protoc-gen-prost",
|
|
gen_binaries = ["protoc-gen-prost"],
|
|
)
|
|
|
|
crate.annotation(
|
|
crate = "protoc-gen-tonic",
|
|
gen_binaries = ["protoc-gen-tonic"],
|
|
)
|
|
|
|
bazel_dep(
|
|
name = "rules_bazel_integration_test",
|
|
version = "0.33.2",
|
|
dev_dependency = True,
|
|
)
|
|
|
|
bazel_dep(name = "protobuf", version = "29.5")
|
|
|
|
register_toolchains("//prost:prost_toolchain")
|
|
|
|
bazel_dep(name = "hermetic_cc_toolchain", version = "4.0.1")
|
|
|
|
# Workaround for rules_rust and zig target triple compatibility.
|
|
# Pulled from this PR: https://github.com/uber/hermetic_cc_toolchain/pull/223
|
|
single_version_override(module_name = "hermetic_cc_toolchain", patches = ["//bazel:hermetic_cc_toolchain.patch"], patch_strip = 1)
|
|
|
|
zig_toolchains = use_extension("@hermetic_cc_toolchain//toolchain:ext.bzl", "toolchains")
|
|
use_repo(zig_toolchains, "zig_sdk")
|
|
|
|
# TODO:
|
|
# - Add support for hermetic Windows toolchains after fix in zig around pthread.h support:
|
|
# https://github.com/ziglang/zig/issues/10989
|
|
# - Add support for hermetic Mac OS toolchain after hermetic_cc_toolchain fixes support:
|
|
# https://github.com/uber/hermetic_cc_toolchain/issues/10
|
|
|
|
register_toolchains(
|
|
# Use oldest Rust supported version of GLIBC to be as compatible as possible,
|
|
# see https://blog.rust-lang.org/2022/08/01/Increasing-glibc-kernel-requirements.html
|
|
"@zig_sdk//toolchain:x86_64-linux-gnu.2.17",
|
|
"@zig_sdk//toolchain:linux_arm64_gnu.2.17",
|
|
)
|