From 9b7f6dceab8e6f05692a235883e06b1f601b59f0 Mon Sep 17 00:00:00 2001 From: Tom Schuster Date: Sat, 23 Mar 2024 19:49:48 +0100 Subject: [PATCH 1/2] Deprecate Origin unicode_serialization. --- url/src/origin.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/url/src/origin.rs b/url/src/origin.rs index 81193f510..a0748ac61 100644 --- a/url/src/origin.rs +++ b/url/src/origin.rs @@ -85,7 +85,12 @@ impl Origin { } } + /// Deprecated: There used to also be a Unicode serialization of an origin. However, it was never widely adopted. /// + #[deprecated( + since = "2.6.0", + note = "There used to also be a Unicode serialization of an origin. However, it was never widely adopted." + )] pub fn unicode_serialization(&self) -> String { match *self { Origin::Opaque(_) => "null".to_owned(), From 3a67a92ee25649ab420e6046fbda169641ff9b21 Mon Sep 17 00:00:00 2001 From: Tom Schuster Date: Sat, 23 Mar 2024 19:50:14 +0100 Subject: [PATCH 2/2] Bump `url` crate version to 2.6.0 --- url/Cargo.toml | 2 +- url/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/url/Cargo.toml b/url/Cargo.toml index a50ab31f1..3909bf6e2 100644 --- a/url/Cargo.toml +++ b/url/Cargo.toml @@ -2,7 +2,7 @@ name = "url" # When updating version, also modify html_root_url in the lib.rs -version = "2.5.0" +version = "2.6.0" authors = ["The rust-url developers"] description = "URL library for Rust, based on the WHATWG URL Standard" diff --git a/url/src/lib.rs b/url/src/lib.rs index 78980e85f..d9dfde301 100644 --- a/url/src/lib.rs +++ b/url/src/lib.rs @@ -134,7 +134,7 @@ url = { version = "2", features = ["debugger_visualizer"] } */ -#![doc(html_root_url = "https://docs.rs/url/2.5.0")] +#![doc(html_root_url = "https://docs.rs/url/2.6.0")] #![cfg_attr( feature = "debugger_visualizer", debugger_visualizer(natvis_file = "../../debug_metadata/url.natvis")