sc-lint
sc-lint checks Rust repositories for boundary, portability, runtime, and
repository-policy problems. The Rust CLI is the product command surface; the
separately published Python distribution provides bindings and repository
helper modules.
Current release: 0.8.5.
Install
Install the CLI and its analyzer binaries with Homebrew:
Release archives are available from
GitHub Releases. The sc-lint
crate page is on crates.io; crate API docs
are on docs.rs.
The Python package is installed separately:
It does not install the Rust CLI binaries. Install the CLI from Homebrew or a
release archive before using Python helpers that locate or invoke sc-lint.
See the Python bindings guide.
Other supported distribution and integration channels are Scoop, WinGet, the GitHub Action, and the Rust crates on crates.io. The Python package supplies bindings and helpers; it is not the CLI installer.
Run checks
With a configured sc-lint.toml, run the consumer CI lint profile for a
consumer repository with:
Bare sc-lint lint ci runs sc-lint's own maintainer profile.
Run an individual analyzer with:
Use sc-lint --json lint ci --consumer for machine-readable output. The offline manual
is available with sc-lint docs; start with its installation,
configuration, using-sc-lint, and package guides.
The analyzers can also be run directly when working on their Rust crates:
Analyzer rules
The rule inventories below match the 0.8.5 analyzer crates. Full descriptions, configuration, and examples are in each linked crate guide.
Boundary
sc-lint-boundary
checks graph cycles, source boundaries, dependency policy, features, and
manifests. Its rules are:
SCB-CYCLE-001–SCB-CYCLE-003SCB-BOUNDARY-001–SCB-BOUNDARY-004SCB-CALLER-001SCB-DEPENDENCY-001–SCB-DEPENDENCY-004SCB-FEATURE-001SCB-MANIFEST-001–SCB-MANIFEST-006
Portability
sc-lint-portability
checks cross-platform paths, environment access, Unix shell assumptions, and
cfg parity:
PORT-001–PORT-010
Runtime
sc-lint-runtime
checks blocking waits, sleep calls, block_on, and mutex guards held across
.await:
SCB-RUNTIME-001–SCB-RUNTIME-007
Packages
The workspace version is 0.8.5. The sc-lint CLI composes the analyzer
crates; the support crates are reusable building blocks.
| Package | Role |
|---|---|
sc-lint |
CLI and product command surface |
sc-lint-boundary |
Boundary analyzer |
sc-lint-portability |
Portability analyzer |
sc-lint-runtime |
Runtime analyzer |
sc-lint-analyzer-support |
Shared analyzer implementation support |
sc-lint-attributes |
#[sc_lint(...)] procedural attribute |
sc-lint-directives |
Shared directive parser and types |
sc-lint-schema |
Analyzer report and finding types |
sc-lint on PyPI |
Python bindings and repository helpers |
Project links
Contributing
From a source checkout, run the complete repository gates: