Skip to content

Commit

Permalink
Add a synthetic dependency on num-traits
Browse files Browse the repository at this point in the history
Right now the rust-lang/rust integration is compiling Cargo twice on dist
builds, once for Cargo and once for the RLS. This is due to a dependency of
Cargo being recompiled with different features when used from the RLS or not.
For now paper over this problem with a synthetic dependency to prevent Cargo
from being compiled twice.
  • Loading branch information
alexcrichton committed Mar 15, 2018
1 parent b3df526 commit 841f20a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ toml = "0.4"
url = "1.1"
clap = "2.27.0"

# Not actually needed right now but required to make sure that rls/cargo build
# with the same set of features in rust-lang/rust
num-traits = "0.2" # enable the default feature

[target.'cfg(target_os = "macos")'.dependencies]
core-foundation = { version = "0.5.1", features = ["mac_os_10_7_support"] }

Expand Down

0 comments on commit 841f20a

Please sign in to comment.