Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upServo forks serde with [patch] #19588
Comments
|
Servo uses a serde fork, the current version in Cargo.lock is https://github.com/gankro/serde?branch=deserialize_from_enums3#fc611736 Does that match yours? Note how in https://github.com/paulrouget/servo-embedding-example they recommend to copy Servo's Cargo.lock in your project to avoid these kind of issues. |
|
Thank you for the link. |
|
Servo has this section in its root [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" }This also seems to make using https://github.com/rust-lang/cargo/blob/0.23.0/src/cargo/util/toml/mod.rs#L743-L745 if self.patch.is_some() && self.replace.is_some() {
bail!("cannot specify both [replace] and [patch]");
} |
|
#19590 replaces This may be a Cargo bug, but |
|
I will be publishing a Serde version with most of the changes from the fork in the next few days. As I understand it, at that point Servo will be able to drop the [patch] of |
|
With the serde work upstreamed servo could remove both patches, as the serde_derive fork “only” introduces a transparent optimization. Performance of gecko is more critical (in the short term), so we would continue to apply the derive patch there. |
|
More breakage cause by this: #19698. Though I think part of the reason is that the fork’s version number is behind crates.io. Doing either of:
might help. What do think @gankro ? |
|
You can remove the fork in the next webrender update, it’s been upstreamed. Webrender still forks serde_derive but it’s for a transparent optimization, failing to include it just means you’re a bit slower. |
|
The fork was indeed removed in #19614. |
I'm trying a build simple servo app with cargo build (rustc 1.24.0-nightly (3bee2b44c 2017-12-16)):
Cargo.toml includes:
But building is terminating with exit code 101:
Windows 7x64.
Help please.