AGENT SKILL

test-dependency-audit

Audit every crate's Cargo.toml for unused, duplicate or misplaced dependencies, moving shared deps to the workspace and feature-gating where sensible. Use when asked to audit or slim dependencies.

使用场景测试与质量
License 许可
Apache-2.0
所属仓库
mrchantey/beet
最近更新
2026-10-23
Stars
★ 134
Forks
8

01 前言 Front Matter

name
test-dependency-audit
description
Audit every crate's Cargo.toml for unused, duplicate or misplaced dependencies, moving shared deps to the workspace and feature-gating where sensible. Use when asked to audit or slim dependencies.

02 资源文件 1

03 SKILL.md 正文

Dependency Audit

perform a dependency audit on each crates Cargo.toml.

  • ie beet_net should have very few required dependencies. http is one of many transports and should not be a hard requirement.
  • remove unused/duplicate deps.
  • dependencies that are shared amongst crates belong in the workspace Cargo.toml
  • dependencies that are used by only one crate belong in that crates Cargo.toml
  • if a dep would be a better fit in an upstream or downstream crate in the workspace, move it over.
  • feature gate where possible, but avoid feature spaghettification

Verification

  • verify individual crates after making changes, including with/without the changed features.
  • aggressively use tail for all tests to preserve context

04 同仓库更多 Skills