Skip to content

reqwest 0.13: the trait bound reqwest::Url: serde::Deserialize<'de> is not satisfied #2946

@kpcyrd

Description

@kpcyrd

Hello!

upgrading from 0.12 to 0.13 I noticed this error and I couldn't figure out which feature to enable to get the old behavior back. Since reqwest::Url seems to be a re-export of url::Url I managed to fix it by adding this to my Cargo.toml:

url = { version = "2", features = ["serde"] }

It might be worth either having this as a feature in reqwest, or making some of the other serde features enable this feature too, or documenting it in CHANGELOG.md.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions