Skip to content

Commit 35653b0

Browse files
committed
Make form_urlencoded no_std compatible
1 parent 48fcbe1 commit 35653b0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

form_urlencoded/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@
1212
//!
1313
//! Converts between a string (such as an URL’s query string)
1414
//! and a sequence of (name, value) pairs.
15+
#![no_std]
1516

17+
extern crate alloc;
18+
19+
use alloc::borrow::{Borrow, Cow, ToOwned};
20+
use alloc::string::String;
21+
use core::str;
1622
use percent_encoding::{percent_decode, percent_encode_byte};
17-
use std::borrow::{Borrow, Cow};
18-
use std::str;
1923

2024
/// Convert a byte string in the `application/x-www-form-urlencoded` syntax
2125
/// into a iterator of (name, value) pairs.

0 commit comments

Comments
 (0)