From 69334435673ecdb162a19240c317d104f123457e Mon Sep 17 00:00:00 2001 From: Andrej Krakau Date: Tue, 15 Jul 2025 17:25:24 +0200 Subject: [PATCH] Enable no-std environments with `serde` feature This change is needed to enable compilation in no-std environments when the "serde" feature flag is enabled. --- Cargo.toml | 1 + url/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9ecf07c31..4ed506d9a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,5 @@ [workspace] +resolver = "2" members = [ "url", "form_urlencoded", diff --git a/url/Cargo.toml b/url/Cargo.toml index ed0e3d32d..38148c2bc 100644 --- a/url/Cargo.toml +++ b/url/Cargo.toml @@ -28,7 +28,7 @@ wasm-bindgen-test = "0.3" form_urlencoded = { version = "1.2.1", path = "../form_urlencoded", default-features = false, features = ["alloc"] } idna = { version = "1.0.3", path = "../idna", default-features = false, features = ["alloc", "compiled_data"] } percent-encoding = { version = "2.3.1", path = "../percent_encoding", default-features = false, features = ["alloc"] } -serde = { version = "1.0", optional = true, features = ["derive"], default-features = false } +serde = { version = "1.0", optional = true, features = ["alloc", "derive"], default-features = false } [features] default = ["std"]