SuperAPI AI 工具集

dependency management for cargo and npm

通用与其它

查看项目

更新于 10-16 09:52

技能介绍

用途:管理 Rust(Cargo)和 Node.js(npm)项目的依赖,涵盖依赖添加、更新、安全审计与版本冲突排查。触发场景包括更新依赖、出现版本冲突、添加新依赖以及定期(每周/每月)更新。主要能力与常用命令:Cargo 侧提供 cargo add <crate>(添加依赖)、cargo update(更新全部依赖)、cargo update -p <crate>(更新指定依赖)、cargo tree(查看依赖树)、cargo audit(安全审计)、cargo-udeps(检测未使用依赖)。npm 侧提供 npm install <pkg>、npm update、npm audit、npm outdated。冲突排查可使用 cargo tree -i <crate> 查看反向依赖、cargo tree -d 检测重复版本、cargo tree -f "{p} {f}" 检查 feature 冲突,并通过 workspace.dependencies 统一版本。更新策略按语义化版本给出频次:Patch 每周、Minor 每月、Major 每季度。安全审计可运行 cargo audit、cargo audit fix,CI 中可用 cargo audit --deny warnings。使用方式:按需调用对应命令,更新后运行 cargo test --all 等测试验证。限制:文档未提供具体收费、平台、价格与效果信息;cargo-udeps 需 nightly 环境,部分命令依赖项目自身配置。缺失事实暂未提供。