Skip to content

"for_packages" not populated for Rust package resources #4991

Description

@chinyeungli

I ran a scan_single_package pipeline with pkg:cargo/syn@2.0.117. It correctly returned one detected package. However, none of the corresponding source files in the output include a for_packages value. Only Cargo.toml and Cargo.lock contain a for_packages entry.

Image

The file "Cargo.toml" has the "include" list section that could be used to populate the "for_packages"
e.g.

[package]
edition = "2021"
rust-version = "1.71"
name = "syn"
version = "2.0.117"
authors = ["David Tolnay <dtolnay@gmail.com>"]
build = false
include = [
    "/benches/**",
    "/Cargo.toml",
    "/LICENSE-APACHE",
    "/LICENSE-MIT",
    "/README.md",
    "/src/**",
    "/tests/**",
]

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions