Skip to main content

Crate miniextendr_lint

Crate miniextendr_lint 

Source
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_LINT env var (enabled by default).
  • Set it to 0, false, no, or off to 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§

LintReport
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.