Bug 1424280 - Replace serde and serde_derive with Gankro's modified branch. r=jrmuizel

The branch is based off serde 1.0.23 and includes additional changes for faster
enum deserialization which we want for WebRender. The changes are in the process
of being upstreamed but will take a while.

MozReview-Commit-ID: 4xaPQpffzYL
This commit is contained in:
Kartikaya Gupta 2017-12-10 13:48:54 -05:00
parent 0e9ffe73d2
commit 071a573dc4
3 changed files with 9 additions and 0 deletions

View File

@ -2,5 +2,10 @@
registry = 'https://github.com/rust-lang/crates.io-index'
replace-with = 'vendored-sources'
[source."https://github.com/gankro/serde"]
git = "https://github.com/gankro/serde"
branch = "deserialize_from_enums3"
replace-with = "vendored-sources"
[source.vendored-sources]
directory = '@top_srcdir@/third_party/rust'

View File

@ -47,3 +47,5 @@ panic = "abort"
[patch.crates-io]
libudev-sys = { path = "../../../../dom/webauthn/libudev-sys" }
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" }

View File

@ -48,3 +48,5 @@ panic = "abort"
[patch.crates-io]
libudev-sys = { path = "../../../dom/webauthn/libudev-sys" }
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" }