Expand description
miniextendr-lint: internal build-time lint helpers for the workspace.
This crate scans Rust sources for miniextendr macro usage and emits cargo warnings with actionable diagnostics. It is intended for local development and CI, not as a public API.
§Usage in build.rs
ⓘ
fn main() {
miniextendr_lint::build_script();
}§Configuration
- Controlled by the
MINIEXTENDR_LINTenv var (enabled by default). - Set it to
0,false,no, oroffto disable.
§Lint Codes
Each diagnostic carries a stable MXL### code. See LintCode for the full catalog.
Re-exports§
pub use crate_index::CrateIndex;pub use crate_index::LintItem;pub use crate_index::LintKind;pub use diagnostic::Diagnostic;pub use diagnostic::Severity;pub use lint_code::LintCode;
Modules§
- crate_
index - Shared crate index built from a single parse pass over all source files.
- diagnostic
- Structured diagnostic output for lint rules.
- helpers
- Shared utility functions for lint rule implementations.
- lint_
code - Stable lint rule identifiers.
- rules
- Lint rule implementations.
Structs§
- Lint
Report - Result of running the lint over a crate source tree.
Functions§
- build_
script - Entry point for build.rs. Runs the lint and prints cargo directives.
- cargo_
warning 🔒 - Emits a single cargo warning line after normalizing whitespace.
- lint_
enabled - Returns whether the lint should run based on the given env var.
- run
- Run the lint against the crate rooted at
root.