rust - 为什么开发依赖不能是可选的?
问题描述
正如这里明确提到的,开发依赖项不能是可选的。其根本原因是什么?
这是可选的开发依赖项可能有用且重要的示例:假设您有一个包 A 需要一个包 B 用于测试目的。However, when you test the package A, in some cases, you specify a particular feature:
cargo test --package A --features "F1"
It would then seem to be legitimate that you have the option of specifying the dev-dependency to B differently when the feature "F1" is selected. 但是,如果您的开发依赖关系已经被引入(非可选),您似乎无法控制它!
解决方案
推荐阅读
- angular - 角度路由器按需销毁路由的存储组件
- hyperlink - 在 Kentico 报告中创建链接
- objective-c - Objective-C 字符串中是否有占位符说明符?
- unity3d - 导入统一 2Dgame 套件显示一些错误
- java - Android 批量插入或忽略 JSONArray
- r - Plotly 代码 - 查看器图表不显示
- xaml - 如何在保持 ScrollViewer 启用的同时动态更新 ListView 高度?
- android - Android约束布局顶部白条
- java - 从 sqlite 检索图像会出错?
- docker - 在部署 compose 环境时,当 docker daemon 用完要分配的网络 IP 地址时会发生什么?