Răsfoiți Sursa

fix: add Serde std feature if needed (#1068)

* fix: add Serde std feature if needed

* bump the version to 2.5.7
Jérémy HERGAULT 1 an în urmă
părinte
comite
2387efa12d
2 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 2 2
      url/Cargo.toml
  2. 1 1
      url/src/lib.rs

+ 2 - 2
url/Cargo.toml

@@ -2,7 +2,7 @@
 
 name = "url"
 # When updating version, also modify html_root_url in the lib.rs
-version = "2.5.6"
+version = "2.5.7"
 authors = ["The rust-url developers"]
 
 description = "URL library for Rust, based on the WHATWG URL Standard"
@@ -32,7 +32,7 @@ serde = { version = "1.0", optional = true, features = ["derive"], default-featu
 
 [features]
 default = ["std"]
-std = ["idna/std", "percent-encoding/std", "form_urlencoded/std"]
+std = ["idna/std", "percent-encoding/std", "form_urlencoded/std", "serde/std"]
 
 # Enable to use the #[debugger_visualizer] attribute. This feature requires Rust >= 1.71.
 debugger_visualizer = []

+ 1 - 1
url/src/lib.rs

@@ -143,7 +143,7 @@ url = { version = "2", features = ["debugger_visualizer"] }
 */
 
 #![no_std]
-#![doc(html_root_url = "https://docs.rs/url/2.5.6")]
+#![doc(html_root_url = "https://docs.rs/url/2.5.7")]
 #![cfg_attr(
     feature = "debugger_visualizer",
     debugger_visualizer(natvis_file = "../../debug_metadata/url.natvis")