Simplify TOML syntax

* Sections like `[dependencies.foo]` can be entries in a `[dependencies]`
  section with the `{key = value}` syntax.
* Per-target dependencies can be expressed with more general `cfg(…)`
  conditions instead of exact target triples:
  https://github.com/rust-lang/cargo/pull/2328
This commit is contained in:
Simon Sapin 2016-04-26 18:21:08 +02:00
parent a44ebd5024
commit 83b3ebf6ac
36 changed files with 285 additions and 898 deletions

View file

@ -8,27 +8,18 @@ publish = false
name = "profile"
path = "lib.rs"
[dependencies.profile_traits]
path = "../profile_traits"
[dependencies.plugins]
path = "../plugins"
[dependencies.util]
path = "../util"
[dependencies.ipc-channel]
git = "https://github.com/servo/ipc-channel"
[dependencies]
profile_traits = {path = "../profile_traits"}
plugins = {path = "../plugins"}
util = {path = "../util"}
ipc-channel = {git = "https://github.com/servo/ipc-channel"}
hbs-pow = "0.2"
log = "0.3.5"
libc = "0.2"
regex = "0.1.55"
time = "0.1.12"
[target.x86_64-apple-darwin.dependencies.task_info]
path = "../../support/rust-task_info"
[target.'cfg(target_os = "macos")'.dependencies]
task_info = {path = "../../support/rust-task_info"}
[target.i686-apple-darwin.dependencies.task_info]
path = "../../support/rust-task_info"
[target.'cfg(target_os = "linux")'.dependencies]
regex = "0.1.55"