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 摘要。