Bug 1424280 - Replace serde and serde_derive with Gankro's modified branch. r?jrmuizel,Build draft
authorKartikaya Gupta <kgupta@mozilla.com>
Sun, 10 Dec 2017 13:48:54 -0500
changeset 710494 4d3325f124c3ea932642fe8835a2909050e9bf48
parent 710493 ffe2fd92265f32f25b16c6d27b58b1a335d530be
child 710495 9efa856c8366ecbb726540e82bc991d229447a05
push id92835
push userkgupta@mozilla.com
push dateSun, 10 Dec 2017 18:58:58 +0000
reviewersjrmuizel, Build
bugs1424280
milestone59.0a1
Bug 1424280 - Replace serde and serde_derive with Gankro's modified branch. r?jrmuizel,Build 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
.cargo/config.in
toolkit/library/gtest/rust/Cargo.toml
toolkit/library/rust/Cargo.toml
--- a/.cargo/config.in
+++ b/.cargo/config.in
@@ -1,6 +1,11 @@
 [source.crates-io]
 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'
--- a/toolkit/library/gtest/rust/Cargo.toml
+++ b/toolkit/library/gtest/rust/Cargo.toml
@@ -42,8 +42,10 @@ panic = "abort"
 [profile.release]
 opt-level = 2
 rpath = false
 debug-assertions = false
 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" }
--- a/toolkit/library/rust/Cargo.toml
+++ b/toolkit/library/rust/Cargo.toml
@@ -43,8 +43,10 @@ panic = "abort"
 [profile.release]
 opt-level = 2
 rpath = false
 debug-assertions = false
 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" }