Bug 1424280 - Replace serde and serde_derive with Gankro's modified branch. r=jrmuizel
authorKartikaya Gupta <kgupta@mozilla.com>
Sun, 10 Dec 2017 13:48:54 -0500
changeset 447735 2ee03038f5e55ac888b6cc8a8a5e045cc97ec32e
parent 447734 c9af377b8594ceea6e40739cc8aadad9948900b7
child 447736 8df51ada197d54315b90575afdbe9a351b92f374
push id8527
push userCallek@gmail.com
push dateThu, 11 Jan 2018 21:05:50 +0000
treeherdermozilla-beta@95342d212a7a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1424280
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
.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" }