Use [patch] instead of [replace]

CC https://github.com/servo/webrender/pull/2215

Also, `[replace]` prevented using `[patch]` for other crates.
(Cargo forbids using both.)
This commit is contained in:
Simon Sapin 2017-12-17 22:09:45 +01:00
parent f175649263
commit 9eee610c39
2 changed files with 50 additions and 65 deletions

View file

@ -23,11 +23,10 @@ opt-level = 3
# debug = true
# lto = false
[replace]
"serde:1.0.23" = { git = "https://github.com/gankro/serde", branch = "deserialize_from_enums3" }
"serde_derive:1.0.23" = { git = "https://github.com/gankro/serde", branch = "deserialize_from_enums3", feature="deserialize_from" }
[patch.crates-io]
serde = { git = "https://github.com/gankro/serde", branch = "deserialize_from_enums3" }
serde_derive = { git = "https://github.com/gankro/serde", branch = "deserialize_from_enums3", feature="deserialize_from" }
#[patch.crates-io]
# If you need to temporarily test Servo with a local fork of some upstream
# crate, add that here. Use the form:
#