知识卡片
依赖树定位来源与功能合并
cargo tree可查看依赖路径,–invert追踪谁引入某包,–duplicates定位多版,–edges features帮助解释功能从何处启用。它们适合把审计报告映射到可修改的直接依赖。图反映所用配置与解析结果,不能只看一次输出就宣称所有目标都相同。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 4. Dependencies Solving Problems with Tooling · 查看原书依据
--invert Shows what depends on a specific package, helping you to focus on a particular problematic dependency --edges features Shows what crate features are activated by a dependency link, which helps you figure out what’s going on with feature unification (Item 26) --duplicates Shows crates that have multiple versions present in the dependency graph
参考来源
- 位置:《Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)》第4章《Solving Problems with Tooling》(spine8;extracted/Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)/_epub-src/OEBPS/ch04.html;u126-ch04-019)。
- 结论依据:原文在“--invert”附近的定义、例子或代码支撑本卡核心说明:cargo tree可查看依赖路径,--invert追踪谁引入某包,--duplicates定位多版,--edges features帮助解释功能从何处启用。边界按已读前提解释;示例未执行。
- 原始内容:--invert Shows what depends on a specific package, helping you to focus on a particular problematic dependency --edges features Shows what crate features are activated by a dependency link, which helps you figure out what’s going on with feature unification (Item 26) --duplicates Shows crates that have multiple versions present in the dependency graph