Skip to content
LucaCappelletti94 edited this page Oct 19, 2026 · 5 revisions

cargo dejadoc checks Rust doctests for duplication and can also compare functions, code blocks and dependency sources.

Installation

Install Rust stable and Cargo and a C toolchain for your platform. Ensure Cargo's binary directory is on PATH.

Released package

cargo +stable install --locked dejadoc

Wiki examples

The examples in this wiki use main. Install that source build for context and dependency analysis.

cargo +stable install --git https://github.com/LucaCappelletti94/cargo-dejadoc.git --branch main --locked dejadoc

Verify the installation with cargo dejadoc --version.

Local duplicates

cargo dejadoc --functions --context-blocks

Checks describes the findings and function remedies. What counts as the same code explains canonical forms and their limits.

Dependency reuse

cargo dejadoc --context-dependency-depth 1 --context-check-latest false

Dependency reuse explains dependency depth, workspace matches, public APIs, upstream extraction requests and incomplete coverage. Performance gives measured time and memory costs, cache behavior and scaling limits.

Configuration and integration

  • Configuration lists command-line options, .dejadoc.toml keys and exit statuses.
  • GitHub Action covers reviews, dependency-cache handling and fork workflows.
  • Library describes the Rust API and reports.

Released APIs are documented on docs.rs.

Clone this wiki locally