bazelbuild / bazelbuild/rules_rust
Bug: `gen_rust_project` fails to parse `aquery` output when no Rust targets defined
Open
bug
needs-triage
rust-analyzer
- Dominant language
- Starlark
- Stars
- 843
- Forks
- 651
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 15
Description
The `gen_rust_project` tool fails with a terse
```
Error: missing field `artifacts` at line 2 column 1
```
when run with a correct `rules_rust` WORKSPACE but no actual Rust targets have been defined.
This is because the returned JSON from `bazel aquery` is an empty dict in this case.
Contributor guide
Assessment
This issue has not been assessed yet.