Skip to content

Commit

Permalink
WIP: CARGO: Do not pass --all-features to "cargo metadata"
Browse files Browse the repository at this point in the history
We want to accurately track feature flags so lets not tell cargo
to always enable all features for us.

This essentially reverts intellij-rust#651 ecce3fa.
  • Loading branch information
kumbayo committed Sep 11, 2018
1 parent 0c91352 commit 4bcb919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/rust/cargo/toolchain/Cargo.kt
Expand Up @@ -58,7 +58,7 @@ class Cargo(private val cargoExecutable: Path) {
@Throws(ExecutionException::class)
fun fullProjectDescription(owner: Disposable, projectDirectory: Path, listener: ProcessListener? = null): CargoWorkspace {
val json = CargoCommandLine("metadata", projectDirectory,
listOf("--verbose", "--format-version", "1", "--all-features")
listOf("--verbose", "--format-version", "1")
).execute(owner, listener)
.stdout
.dropWhile { it != '{' }
Expand Down
Expand Up @@ -97,7 +97,7 @@ class CargoProjectStructureTest : RustWithToolchainTestBase() {
Features
Package(foo-0.1.0)
Feature(conditional1,enabled)
Feature(conditional2,enabled)
Feature(conditional2,disabled)
Feature(default,enabled)
""","""
Root
Expand Down

0 comments on commit 4bcb919

Please sign in to comment.