Skip to content

Verify dependency extraction on representative Cargo workspaces #106

Backlog

Description

@TristanKruse

Problem

The existing fixture suite covers the syntax model. The release needs evidence that file-level rules behave as documented on real Cargo layouts, especially where a target or alias changes the identity of a dependency. #98 is the first concrete example and keeps its existing tracker.

Acceptance criteria

  • After Dependency extraction misses references through local extern crate self aliases #98, add a small, pinned corpus with provenance and at least one real multi-crate workspace. Analyze pinned external sources as data, without executing the analyzed projects' build scripts, proc macros, or tests.
  • Pair known allowed and forbidden cases with a source-only edit. Exercise the public rule and assert dependency kind and source location at the extraction API, even when multiple references share one file edge.
  • Cover the highest-risk combinations with focused fixtures: library and binary roots, renamed workspace dependencies, re-exports and local aliases, #[path], and feature- or target-gated source under the published policy. Include controls for ambiguous or unsupported cases.
  • State the supported cfg/feature behavior and the boundaries around macros and generated code. Keep durable, reviewable CI evidence. File bounded resolver defects found by the corpus.

Current extraction fixtures · Rust extraction design · Ruby pinned Rails canary

Part of the ArchUnitRust 1.0 roadmap.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions