Quick Start
-
Generate
mille.tomlwithmille initTerminal window mille initmille analyzes actual import statements in your source files to infer layer structure and dependencies:
Detected languages: rustScanning imports...Using layer depth: 2Inferred layer structure:domain ← (no internal dependencies)usecase → domainexternal: anyhowinfrastructure → domainexternal: serde, tokioGenerated 'mille.toml'Review the generated config and adjust as needed.
-
Visualize with
mille analyze(optional)Terminal window mille analyzeInspect the actual dependency graph before enforcing rules. Generate an SVG for browser viewing:
Terminal window mille analyze --format svg > graph.svg && open graph.svg -
Run
mille checkTerminal window mille checkExits with code 0 if no violations are found.
-
Add to CI
For GitHub Actions:
- run: mille check --format github-actionsViolations appear as annotations directly in PR reviews.
Next Steps
- Configuration Reference — All
mille.tomloptions - CI Integration — GitHub Actions setup
- Language Guides — Per-language configuration examples