Skip to content

Commit a73e755

Browse files
committed
Remove alloc feature flag
1 parent 3bf9eac commit a73e755

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

url/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ serde = { version = "1.0", optional = true, features = ["derive"] }
3232

3333
[features]
3434
default = ["std"]
35-
std = ["idna/std", "percent-encoding/std", "form_urlencoded/std", "alloc"]
36-
alloc = ["form_urlencoded/alloc", "idna/alloc", "percent-encoding/alloc"]
35+
std = ["idna/std", "percent-encoding/std", "form_urlencoded/std"]
3736

3837
# Enable to use the #[debugger_visualizer] attribute. This feature requires Rust >= 1.71.
3938
debugger_visualizer = []

url/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ extern crate std;
161161
#[macro_use]
162162
extern crate alloc;
163163

164-
#[cfg(not(feature = "alloc"))]
165-
compile_error!("the `alloc` feature must be enabled");
166-
167164
#[cfg(feature = "serde")]
168165
extern crate serde;
169166

url/tests/unit.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ extern crate std;
1515
#[macro_use]
1616
extern crate alloc;
1717

18-
#[cfg(not(feature = "alloc"))]
19-
compile_error!("the `alloc` feature must be enabled");
20-
2118
use alloc::borrow::Cow;
2219
use alloc::borrow::ToOwned;
2320
use alloc::string::{String, ToString};

0 commit comments

Comments
 (0)