bazel-lsp/MODULE.bazel
renovate[bot] 92676c9460
Some checks failed
Rust / Build and Test (push) Has been cancelled
Rust / Release (push) Has been cancelled
chore(deps): update rules_rust modules to v0.62.0 (#149)
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("@&#8203;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("@&#8203;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("@&#8203;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("@&#8203;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("@&#8203;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("@&#8203;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
@&#8203;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
@&#8203;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
@&#8203;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
@&#8203;mcculloc[https://github.com/bazelbuild/rules_rust/pull/3446](https://redirect.github.com/bazelbuild/rules_rust/pull/3446)l/3446
* Updated buildifier by
@&#8203;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
@&#8203;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
@&#8203;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
@&#8203;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
@&#8203;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
@&#8203;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
@&#8203;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
@&#8203;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
@&#8203;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
@&#8203;illicitoni[https://github.com/bazelbuild/rules_rust/pull/3473](https://redirect.github.com/bazelbuild/rules_rust/pull/3473)l/3473

#### New Contributors
* @&#8203;mbeards made their first
contributi[https://github.com/bazelbuild/rules_rust/pull/3432](https://redirect.github.com/bazelbuild/rules_rust/pull/3432)l/3432
* @&#8203;mccullocht made their first
contributi[https://github.com/bazelbuild/rules_rust/pull/3446](https://redirect.github.com/bazelbuild/rules_rust/pull/3446)l/3446
* @&#8203;FabianWolff made their first
contributi[https://github.com/bazelbuild/rules_rust/pull/3454](https://redirect.github.com/bazelbuild/rules_rust/pull/3454)l/3454
* @&#8203;Synss made their first
contributi[https://github.com/bazelbuild/rules_rust/pull/3453](https://redirect.github.com/bazelbuild/rules_rust/pull/3453)l/3453
* @&#8203;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>
2025-07-18 23:49:34 +01:00

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",
)