Skip to content

Update serde to 0.9 #15325

Closed
Closed

Activity

  1. changed the title [-]Update serde to 0.9.[/-] [+]Update serde to 0.9[/+] on Feb 1, 2017
  2. SimonSapin commented on Feb 1, 2017

    @SimonSapin
    Member

    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.

  3. added
    B-meta
    on Feb 1, 2017
  4. nox commented on Feb 1, 2017

    @nox
    Contributor

    @SimonSapin As long as the serde feature isn't used, AFAIK it shouldn't appear in Cargo.lock at all.

  5. SimonSapin commented on Feb 1, 2017

    @SimonSapin
    Member

    For some reason I was convinced of the opposite but I just tried it and you’re right. Edited previous comment.

  6. SimonSapin commented on Feb 1, 2017

    @SimonSapin
    Member

    Not including them might be a Cargo bug, depending on how you look at it: rust-lang/cargo#3629

  7. nox commented on Feb 18, 2017

    @nox
    Contributor

    dwrote has been forked to the Servo organisation, while waiting for a 0.2 version to be published.

  8. added 4 commits that reference this issue on Feb 18, 2017
    4bda4dd
    b731416
    c2126e0
    fe3f4ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

B-meta

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions