Description: Use alloc instead of std for garde strings Author: Simon Quigley Origin: vendor Forwarded: not-needed Last-Update: 2026-08-22 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/src/features/garde.rs +++ b/src/features/garde.rs @@ -206,7 +206,7 @@ mod tests { #[garde(length(chars, min = 1, max = 100))] #[garde(length(min = 1, max = 100))] #[garde(length(utf16, min = 1, max = 100))] - value: std::string::String, + value: alloc::string::String, } #[derive(garde::Validate)] @@ -223,7 +223,7 @@ mod tests { fn matches_string_behavior() { for s in &["hello", "héllo", "😀", "a", ""] { let string_result = StringTest { - value: std::string::String::from(*s), + value: alloc::string::String::from(*s), } .validate(); let compact_result = CompactTest {