bazelbuild / bazelbuild/rules_rust
Setup instructions for rust_analyzer fail to build
- Dominant language
- Starlark
- Stars
- 843
- Forks
- 651
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 15
Description
WORKSPACE:
```
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"],
)
load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
rules_rust_dependencies()
rust_register_toolchains()
load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies")
# https://bazelbuild.github.io/rules_rust/rust_analyzer.html#setup
rust_analyzer_dependencies()
```
```bash
bazel run @rules_rust//tools/rust_analyzer:gen_rust_project
```
Output:
```
✗ bazel run @rules_rust//tools/rust_analyzer:gen_rust_project
INFO: Invocation ID: 45c19b76-e78b-43f2-8f45-0bbb2e0c8be3
ERROR: /home/bb/.cache/bazel/_bazel_bb/60385f905182673b726e25229e70b273/external/rules_rust/util/process_wrapper/BUILD.bazel:55:14: in _native_binary rule @rules_rust//util/process_wrapper:bootstrap_process_wrapper:
Traceback (most recent call last):
File "/home/bb/.cache/bazel/_bazel_bb/60385f905182673b726e25229e70b273/external/bazel_skylib/rules/native_binary.bzl", line 42, column 22, in _impl
return _impl_rule(ctx, ctx.attr.is_windows)
File "/home/bb/.cache/bazel/_bazel_bb/60385f905182673b726e25229e70b273/external/bazel_skylib/rules/native_binary.bzl", line 33, column 23, in _impl_rule
files = depset(items = [out]),
Error in depset: depset() got unexpected keyword argument 'items'
```
Tested on version 0.33, 0.32, and 0.31
Contributor guide
Assessment
This issue has not been assessed yet.