mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
parent
a44ebd5024
commit
83b3ebf6ac
36 changed files with 285 additions and 898 deletions
|
@ -17,17 +17,10 @@ path = "lib.rs"
|
|||
# set this feature.
|
||||
non-geckolib = ["js"]
|
||||
|
||||
[dependencies.plugins]
|
||||
path = "../plugins"
|
||||
|
||||
[dependencies.js]
|
||||
git = "https://github.com/servo/rust-mozjs"
|
||||
optional = true
|
||||
|
||||
[dependencies.ipc-channel]
|
||||
git = "https://github.com/servo/ipc-channel"
|
||||
|
||||
[dependencies]
|
||||
plugins = {path = "../plugins"}
|
||||
js = {git = "https://github.com/servo/rust-mozjs", optional = true}
|
||||
ipc-channel = {git = "https://github.com/servo/ipc-channel"}
|
||||
app_units = {version = "0.2.3", features = ["plugins"]}
|
||||
bitflags = "0.3"
|
||||
deque = "0.3.1"
|
||||
|
@ -47,5 +40,5 @@ smallvec = "0.1"
|
|||
string_cache = {version = "0.2.12", features = ["heap_size"]}
|
||||
url = {version = "1.0.0", features = ["heap_size", "serde"]}
|
||||
|
||||
[target.x86_64-pc-windows-gnu.dependencies]
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
kernel32-sys = "0.2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue