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
servo/rust-url#274 adds a new url_serde crate which uses 0.9. The url crate still has an optional feature that uses serde 0.8. If we make sure that feature is not enabled in a future version of Servo that uses 0.9, serde 0.8 should not be built by Cargo when building Servo, but I think it will still be included in Cargo.lock which will make our "no more than one version of the same crate" lint in test-tidy fail.
At some point we’ll have other reasons to make breaking changes to rust-url and will remove that optional feature at the same time. But I feel that updating serde alone is not enough of a reason to do that yet, since a breaking url version means a breaking version of hyper and likely other crates. This will be a pain to deal with, not only for us in Servo but for the Rust ecosystem in general. (The https://crates.io/crates/url/reverse_dependencies count is currently at 381.)
In the short term we can add serde to the lint’s exception list. It’d be better to rewrite the lint to be based on what’s actually compiled rather than what’s in Cargo.lock, but that likely requires cooperation from Cargo.
Activity
[-]Update serde to 0.9.[/-][+]Update serde to 0.9[/+]SimonSapin commentedon Feb 1, 2017
servo/rust-url#274 adds a new
url_serdecrate which uses 0.9. Theurlcrate still has an optional feature that uses serde 0.8. If we make sure that feature is not enabled in a future version of Servo that uses 0.9, serde 0.8 should not be built by Cargo when building Servo, but I think it will still be included in.Cargo.lockwhich will make our "no more than one version of the same crate" lint intest-tidyfailAt some point we’ll have other reasons to make breaking changes to rust-url and will remove that optional feature at the same time. But I feel that updating serde alone is not enough of a reason to do that yet, since a breaking
urlversion means a breaking version ofhyperand likely other crates. This will be a pain to deal with, not only for us in Servo but for the Rust ecosystem in general. (The https://crates.io/crates/url/reverse_dependencies count is currently at 381.)In the short term we can addserdeto the lint’s exception list. It’d be better to rewrite the lint to be based on what’s actually compiled rather than what’s inCargo.lock, but that likely requires cooperation from Cargo.nox commentedon Feb 1, 2017
@SimonSapin As long as the serde feature isn't used, AFAIK it shouldn't appear in Cargo.lock at all.
SimonSapin commentedon Feb 1, 2017
For some reason I was convinced of the opposite but I just tried it and you’re right. Edited previous comment.
SimonSapin commentedon Feb 1, 2017
Not including them might be a Cargo bug, depending on how you look at it: rust-lang/cargo#3629
nox commentedon Feb 18, 2017
dwrote has been forked to the Servo organisation, while waiting for a 0.2 version to be published.
Update serde to 0.9 (fixes #15325)
Update serde to 0.9 (fixes #15325)
Update serde to 0.9 (fixes #15325)
Update serde to 0.9 (fixes #15325)