---
title: "url 2.0.0 Breaking Changes on crates.io | Since.dev"
description: "What each url release removed, renamed or changed: 88 breaking changes in 3 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/url
last_updated: 2026-12-04
---

# url breaking changes

url 2.0.0 (July 23, 2019) is its newest release with breaking changes, 17 of them. The first: Removed url::define_encode_set! Every breaking API change we have recorded in url on crates.io: 88 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.5.9`, released November 20, 2026. [Source repository](https://github.com/servo/rust-url)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [1.0.0](#v-1-0-0) to [2.0.0](#v-2-0-0): 17 breaking changes in 1 version.
- From [0.5.0](#v-0-5-0) to [2.0.0](#v-2-0-0): 86 breaking changes in 2 versions.

## url 2.0.0 breaking changes

url 2.0.0, released July 23, 2019: 17 breaking changes.

- **Removed** `url::define_encode_set!`  

url::define_encode_set! was removed in url 2.0.0 [crates.io](https://crates.io/crates/url/2.0.0)
- **Removed** `url::form_urlencoded::parse_with_encoding`  

url::form_urlencoded::parse_with_encoding was removed in url 2.0.0 [crates.io](https://crates.io/crates/url/2.0.0)
- **Removed** `url::form_urlencoded::Serializer::append_charset`  

url::form_urlencoded::Serializer::append_charset was removed in url 2.0.0 [crates.io](https://crates.io/crates/url/2.0.0)
- **Removed** `url::form_urlencoded::Serializer::custom_encoding_override`  

url::form_urlencoded::Serializer::custom_encoding_override was removed in url 2.0.0 [crates.io](https://crates.io/crates/url/2.0.0)
- **Removed** `url::HostAndPort`  

url::HostAndPort was removed in url 2.0.0 [crates.io](https://crates.io/crates/url/2.0.0)
- **Removed** `url::ParseOptions::log_syntax_violation`  

url::ParseOptions::log_syntax_violation was removed in url 2.0.0 [crates.io](https://crates.io/crates/url/2.0.0)
- **Removed** `url::SocketAddrs`  

url::SocketAddrs was removed in url 2.0.0 [crates.io](https://crates.io/crates/url/2.0.0)
- **Removed** `url::Url::with_default_port`  

url::Url::with_default_port was removed in url 2.0.0 [crates.io](https://crates.io/crates/url/2.0.0)
- **Signature changed** `url::form_urlencoded::Serializer`  

Was struct Serializer\<T: Target>; now struct Serializer<'a, T: Target>. [crates.io](https://crates.io/crates/url/2.0.0)
- **Signature changed** `url::form_urlencoded::Serializer::encoding_override`  

Was fn encoding_override(&mut self, new: Option<::encoding::EncodingRef>) -> &mut Self; now fn encoding_override(&mut self, new: EncodingOverride<'a>) -> &mut Self. [crates.io](https://crates.io/crates/url/2.0.0)
- **Signature changed** `url::form_urlencoded::Serializer::extend_pairs`  

Was fn extend_pairs\<I, K, V>(&mut self, iter: I) -> &mut Self where I: IntoIterator, I::Item: Borrow<(K, V)>, K: AsRef\<str>, V: AsRef\<str>; now fn extend_pairs\<I, K, V>(&mut self, iter: I) -> &mut Self where I: IntoIterator, I::Item... [crates.io](https://crates.io/crates/url/2.0.0)
- **Signature changed** `url::ParseOptions::encoding_override`  

Was fn encoding_override(mut self, new: Option\<encoding::EncodingRef>) -> Self; now fn encoding_override(mut self, new: EncodingOverride<'a>) -> Self. [crates.io](https://crates.io/crates/url/2.0.0)
- **Signature changed** `url::ParseOptions::syntax_violation_callback`  

Was fn syntax_violation_callback(mut self, new: Option<&'a Fn(SyntaxViolation)>) -> Self; now fn syntax_violation_callback(mut self, new: Option<&'a dyn Fn(SyntaxViolation)>) -> Self. [crates.io](https://crates.io/crates/url/2.0.0)
- **Signature changed** `url::PathSegmentsMut::extend`  

Was fn extend\<I>(&mut self, segments: I) -> &mut Self where I: IntoIterator, I::Item: AsRef\<str>; now fn extend\<I>(&mut self, segments: I) -> &mut Self where I: IntoIterator, I::Item: AsRef\<str>,. [crates.io](https://crates.io/crates/url/2.0.0)
- **Signature changed** `url::Url::deserialize_internal`  

Was fn deserialize_internal\<D>(deserializer: &mut D) -> Result\<Self, D::Error> where D: serde::Deserializer; now fn deserialize_internal<'de, D>(deserializer: D) -> Result\<Self, D::Error> where D: serde::Deserializer<'de>,. [crates.io](https://crates.io/crates/url/2.0.0)
- **Signature changed** `url::Url::parse_with_params`  

Was fn parse_with_params\<I, K, V>(input: &str, iter: I) -> Result\<Url, ::ParseError> where I: IntoIterator, I::Item: Borrow<(K, V)>, K: AsRef\<str>, V: AsRef\<str>; now fn parse_with_params\<I, K, V>(input: &str, iter: I) -> Result\<Url... [crates.io](https://crates.io/crates/url/2.0.0)
- **Signature changed** `url::Url::serialize_internal`  

Was fn serialize_internal\<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: serde::Serializer; now fn serialize_internal\<S>(&self, serializer: S) -> Result\<S::Ok, S::Error> where S: serde::Serializer,. [crates.io](https://crates.io/crates/url/2.0.0)

## url 1.0.0 breaking changes

url 1.0.0, released April 21, 2016: 69 breaking changes.

- **Removed** `url::ErrorHandler`  

url::ErrorHandler was removed in url 1.0.0 [crates.io](https://crates.io/crates/url/1.0.0)
- **Removed** `url::form_urlencoded::serialize`  

url::form_urlencoded::serialize was removed in url 1.0.0 [crates.io](https://crates.io/crates/url/1.0.0)
- **Removed** `url::form_urlencoded::serialize_with_encoding`  

url::form_urlencoded::serialize_with_encoding was removed in url 1.0.0 [crates.io](https://crates.io/crates/url/1.0.0)
- **Removed** `url::format`  

url::format was removed in url 1.0.0 [crates.io](https://crates.io/crates/url/1.0.0)
- **Removed** `url::Host::serialize`  

url::Host::serialize was removed in url 1.0.0 [crates.io](https://crates.io/crates/url/1.0.0)
- **Removed** `url::idna`  

url::idna was removed in url 1.0.0 [crates.io](https://crates.io/crates/url/1.0.0)
- **Removed** `url::OpaqueOrigin::new`  

url::OpaqueOrigin::new was removed in url 1.0.0 [crates.io](https://crates.io/crates/url/1.0.0)
- **Removed** `url::Origin::UID`  

url::Origin::UID was removed in url 1.0.0 [crates.io](https://crates.io/crates/url/1.0.0)
- **Removed** `url::parse_path`  

url::parse_path was removed in url 1.0.0 [crates.io](https://crates.io/crates/url/1.0.0)
- **Removed** `url::ParseResult`  

url::ParseResult was removed in url 1.0.0 [crates.io](https://crates.io/crates/url/1.0.0)

And 59 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## url 0.5.0 breaking changes

url 0.5.0, released November 21, 2015: 2 breaking changes.

- **Removed** `url::Ipv6Address`  

url::Ipv6Address was removed in url 0.5.0 [crates.io](https://crates.io/crates/url/0.5.0)
- **Signature changed** `url::Host::Ipv6`  

Was Ipv6(Ipv6Address); now Ipv6(Ipv6Addr). [crates.io](https://crates.io/crates/url/0.5.0)

## Related packages

- [idna](https://since.dev/packages/crates/idna.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
