Skip to content

Bug: Rust crates with edition.workspace = true report no edition #632

Open

Description

@vibgrate-team

Context

extractRustEdition in src/core-open/scanners/rust-scanner.ts only matches edition = "2021". Workspace members commonly inherit it instead:

[package]
name = "api"
edition.workspace = true   # or: edition = { workspace = true }

Those crates show no runtime in vg scan. The scanner already loads the workspace manifest for dependency inheritance (loadWorkspaceManifest), so [workspace.package] edition is available.

What to do

  • When the member inherits edition, read it from [workspace.package] in the workspace manifest.
  • Support both the dotted-key and inline-table forms.
  • Add unit tests.

Acceptance

  • A member with edition.workspace = true under [workspace.package] edition = "2021" reports 2021.
  • A crate with its own edition = "2024" is unchanged.
  • No edition anywhere still leaves the runtime empty.

Activity

  1. added
    bug
    good first issue
    on Nov 10, 2026
  2. vibgrate-team commented on Nov 10, 2026

    @vibgrate-team
    ContributorAuthor

    Confirmed: extractRustEdition (line 511 of src/core-open/scanners/rust-scanner.ts) only matches edition = "2021", so inherited editions give no runtime.

    The workspace manifest text is already loaded via loadWorkspaceManifest (line 620), so you can detect edition.workspace = true or edition = { workspace = true } in the member's [package] and then read edition from the [workspace.package] section of that text. Keep the member's own edition = "2024" winning. A nice first issue; comment if you'd like it assigned.

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

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions