Finding Duplicate Rust Code Through AST Normalization (Part 1)

Building a cargo subcommand that detects duplicate Rust code by normalizing ASTs - replacing names with placeholders, erasing literals, and fingerprinting the structural skeleton.

February 14, 2026 · 7 min · 1333 words · Matjaž Domen Pečan