#8703·cargo

在安装带有二进制文件的框架时,每次都会重新构建 cargo

作者: hampuslidin创建于 2020年9月14日更新于 2026年10月1日
标签C-bugCommand-installS-needs-mentorA-required-featuresE-medium

Problem

Whenever a crate containing multiple binaries, where some of them are behind a feature gate, performing a cargo install <crate-name> will cause a rebuild every time, instead of ignoring the rebuild. This is prevalent for nushell, which has several binaries behind the extra feature, but I was able to reproduce this in a simple project, as described below.

内容来源: rust-lang/cargo