aboutcode-org / aboutcode-org/scancode-toolkit

"for_packages" not populated for Rust package resources

未关闭
#4,991 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
package scan package-at-toplevel package-files
主要语言
Python
星标
2.6k
派生
791
平均合并
1 天 12 小时
30 天内合并 PR
5

描述

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 "]
build = false
include = [
"/benches/**",
"/Cargo.toml",
"/LICENSE-APACHE",
"/LICENSE-MIT",
"/README.md",
"/src/**",
"/tests/**",
]
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。