Skip to content
Luca Cappelletti edited this page Oct 17, 2026 · 3 revisions

cargo dejadoc finds Rust code that was written twice. It compares doctests by default, and it can also compare functions and smaller code blocks across a whole workspace. Copies match after formatting, naming and a set of meaning-preserving rewrites are taken out, so a renamed or reformatted copy is still found.

The README gets you running in a minute. These pages explain the details.

Page Read it to
Checks understand what each check compares and what it suggests
Configuration set options on the command line or in .dejadoc.toml, and keep a copy on purpose
What counts as the same code see which differences are ignored and which keep two copies apart
GitHub Action review pull requests in CI, including pull requests from forks
Library run a scan from Rust and read the report

The pages follow the main branch. The API reference for each released version is on docs.rs.

Clone this wiki locally