cargo_pup_lint_impl

Crates.iocargo_pup_lint_impl
lib.rscargo_pup_lint_impl
version0.1.4
created_at2025-06-03 16:07:40.910316+00
updated_at2025-11-21 11:57:04.387297+00
descriptionCore lint implementations and rustc integration for cargo-pup architectural linting
homepagehttps://github.com/datadog/cargo-pup
repositoryhttps://github.com/datadog/cargo-pup
max_upload_size
id1699243
size115,775
Scott Gerring (scottgerring)

documentation

README

cargo_pup_lint_impl

cargo_pup logo

Core lint implementations and rustc integration for cargo-pup architectural linting.

This crate contains the actual lint rule implementations and provides the rustc compiler integration that powers cargo-pup's architectural validation capabilities.

Features

  • Rustc integration - Deep integration with the Rust compiler's analysis phases
  • Module lint rules - Enforce architectural boundaries and import restrictions
  • Function lint rules - Validate function signatures, return types, and implementations
  • Struct lint rules - Assert constraints on struct definitions and trait implementations
  • Architecture lint framework - Extensible framework for custom architectural rules

Internal Crate

This crate is primarily intended for internal use by the cargo-pup toolchain. Most users should interact with cargo-pup through:

Architecture

This crate implements the core architectural linting logic that runs during Rust compilation, leveraging rustc's internal APIs to analyze code structure and enforce user-defined rules.

For more information and examples, visit the cargo-pup repository.

Commit count: 65

cargo fmt