Recipes/🔧 DevTools/Linter/Formatter
🔧

Linter/Formatter

advanced

Code analysis and formatting tool

Kod analiz ve formatlama araci

Estimated Time
⏱️ 2-4 months
Essential Crates
📦 3

Tags

linterformatteranalysisast

Required Crates

Essential

syn
Rust parsing

Rust ayristirma

crates.io →
syn = { version = "2", features = ["full"] }
quote
Code generation

Kod uretimi

crates.io →
quote = "1"
proc-macro2
Token streams

Token akislari

crates.io →
proc-macro2 = "1"

Optional

tree-sitter
Multi-language parsing

Cok dilli ayristirma

crates.io →
tree-sitter = "0.22"

Starter Template

Copy this Cargo.toml to get started:

[package]
name = "my-linter-formatter"
version = "0.1.0"
edition = "2021"

[dependencies]
syn = { version = "2", features = ["full"] }
quote = "1"
proc-macro2 = "1"
tree-sitter = "0.22"
thiserror = "1"
tracing = "0.1"

Related Patterns

Learn these patterns to build this project effectively:

Other DevTools Projects