You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m not sure what’s the best way to approach this. Serde support is part of the public API exposed by the url crate, so I think that upgrading to 0.9 is a breaking change. That means it’ll have to be in url version 2.0.0, which would be disruptive as upgrades will need to be coordinated through Servo’s dependency graph.
Wouldn't it still be a breaking change to remove serde from rust-url? Or you want to have only the new serde versions in the url-serde or whatever will be called and keep old serde versions as optional feature in rust-url?
This should allow you to use rust-url and serde 0.9 together, though admittedly in a way that’s not as convenient as if this support had been directly in the url crate. You’ll also end up with two versions of serde in your Cargo.lock file, but only one of them will be built as long as the serde feature of the url crate is not enabled.
When the time comes to make other breaking changes to the url crate and publish version 2.0.0, we’ll also remove support for serde 0.8.
Activity
SimonSapin commentedon Jan 25, 2017
I’m not sure what’s the best way to approach this. Serde support is part of the public API exposed by the
urlcrate, so I think that upgrading to 0.9 is a breaking change. That means it’ll have to be inurlversion 2.0.0, which would be disruptive as upgrades will need to be coordinated through Servo’s dependency graph.mhristache commentedon Jan 25, 2017
I have the implementation ready. Should I update the version to 2.0.0?
SimonSapin commentedon Jan 25, 2017
@nox mentioned an alternative: having serde support in a separate crate, similar to this one: https://docs.rs/hyper_serde/0.2.0/hyper_serde/
mhristache commentedon Jan 25, 2017
Wouldn't it still be a breaking change to remove serde from rust-url? Or you want to have only the new serde versions in the url-serde or whatever will be called and keep old serde versions as optional feature in rust-url?
SimonSapin commentedon Jan 25, 2017
I don’t know, both are options.
mhristache commentedon Jan 26, 2017
Let me know how you want to have it and I am happy to do the implementation.
SimonSapin commentedon Jan 26, 2017
Alright. In that case, please send a PR to this repository that adds a new
url_serdecrate (in a sub-directory) that does something similar to https://github.com/nox/hyper_serde/blob/master/src/lib.rs (but with serde 0.9). Look at https://github.com/servo/rust-url/blob/bb1100baf0/src/lib.rs#L1735-L1756 for the body of the impls, in particular to deal with errors fromUrl::parse.This should allow you to use rust-url and serde 0.9 together, though admittedly in a way that’s not as convenient as if this support had been directly in the
urlcrate. You’ll also end up with two versions of serde in yourCargo.lockfile, but only one of them will be built as long as theserdefeature of theurlcrate is not enabled.When the time comes to make other breaking changes to the
urlcrate and publish version 2.0.0, we’ll also remove support for serde 0.8.Auto merge of #274 - maximih:master, r=SimonSapin
SimonSapin commentedon Jan 28, 2017
Fixed in #274.
Auto merge of servo#274 - maximih:master, r=SimonSapin