Skip to content

Rust (Cargo) support: tracking issue #62

Open

Description

@adityankale190895

DiffCI selects the tests a change affects so AI coding agents (and people) can run them before pushing. It supports JS/TS, Vue, Go and Maven today. Rust is next, and this is open for contributors.

First supported setup: a Cargo workspace or single crate, run with cargo test, selecting at the crate level first.

Steps (each is one PR; take any that are unblocked):

Ground rules

  • When the adapter is unsure, it records a blockers entry and DiffCI runs the full suite. An empty graph must never look like "nothing affected".
  • Read the adapter guide first; the Go adapter (src/repo/adapters/go.ts) is the closest model.
  • Discuss design questions here, so every step stays consistent.

Using Rust and want to help, or have a repository we could test against? Say so below. 👍 this issue if you'd use it; reactions on the language tracking issues decide what comes after.

Activity

  1. added
    enhancement
    help wanted
    on Oct 29, 2026
  2. adityankale190895 commented on Oct 30, 2026

    @adityankale190895
    MemberAuthor

    @FredApps — your Go and Maven safety fixes (#32–#36) are some of the most careful work in this repo, and the Rust adapter needs exactly that "run everything unless we're certain" thinking. Would you be interested in taking #59 (selecting tests by crate dependency)? It's the core of the adapter: mapping a change to the crates that depend on it, falling back to a full run for build scripts, proc macros and anything we can't model. #58 (file → Cargo package mapping) is the smaller first step if you'd rather start there.

    Equally happy if Python (#56, import graph) interests you more. Thanks again for everything so far!

  3. FredApps commented on Nov 10, 2026

    @FredApps
    Contributor

    I'll take this on, starting with #58 and then #59. I'll keep the milestones in separate PRs, followed by command synthesis, registration and a public Rust replay.

    The planned boundary is crate-level selection from Cargo metadata, with dependency edges including dev-dependencies and optional dependencies. Build scripts, procedural macros, unresolved ownership and unsupported includes will retain full validation. The first mapping PR will stay unregistered and fail closed until dependency analysis and command coverage are ready.

  4. adityankale190895 commented on Nov 16, 2026

    @adityankale190895
    MemberAuthor

    @FredApps Thank you. You did everything you said you would, in the order you said you'd do it:

    Each step stayed fail-closed until the next one was ready, so every PR was easy to review on its own. Rust is now DiffCI's fifth supported ecosystem, and you built all of it.

    The glob replay stayed FULL on every revision, which is the right result for a first boundary. Making real repositories narrow is tracked in #131, which you're maintaining. I'm leaving this tracking issue open until a Rust replay narrows at least one revision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    adapterenhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions