bazelbuild / bazelbuild/rules_rust

cargo_build_script no such attribute lint_config

Open
#3,486 0 comments 0 reactions 0 assignees View on GitHub
needs-triage
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

Running cargo_build_script with custom lint config outputs an error:
```
: no such attribute 'lint_config' in 'cargo_build_script' rule.
```
The docs say that [other kwargs are forwarded to rust_binary](https://github.com/bazelbuild/rules_rust/blob/a4353c8fdfadc3bbf16af300e6ad19d0e33fb986/cargo/private/cargo_build_script_wrapper.bzl#L131-L134C19) but they are forwarded to [private/cargo_build_script](https://github.com/bazelbuild/rules_rust/blob/a4353c8fdfadc3bbf16af300e6ad19d0e33fb986/cargo/private/cargo_build_script.bzl#L596) instead which can't take lint_config. Should lint_config be included [here](https://github.com/bazelbuild/rules_rust/blob/a4353c8fdfadc3bbf16af300e6ad19d0e33fb986/cargo/private/cargo_build_script_wrapper.bzl#L151)?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.