Skip to content

Remove Url depedency #1089

Closed
Closed
@seanmonstar

Description

@seanmonstar

Now that hyper::Uri has sufficient parsing capability, and can represent any URI for the server or client, does it make sense to still also use the Url type? When looking at the rustdocs generated, it certainly looks confusing that there is both Url and Uri at the crate root. And issues like #1087 and others sometimes appear because people assume hyper controls the Url type.

Some options I'm considering:

  • Remove any direct usage of Url, but implement From<Url> for Uri, so people can easily do Request::new(Get, url.into()).
  • Remove the url crate dependency entirely. This would probably be the ideal option, so that the crate is only included in projects that explicitly ask for it. However, it does make it slightly more annoying to create client requests.

/cc @frewsxcv @nox (@alexcrichton for sccache experience)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions