File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ name = "percent-encoding"
3
3
version = " 2.2.0"
4
4
authors = [" The rust-url developers" ]
5
5
description = " Percent encoding and decoding"
6
+ categories = [" no_std" ]
6
7
repository = " https://github.com/servo/rust-url/"
7
8
license = " MIT OR Apache-2.0"
8
9
edition = " 2018"
9
10
rust-version = " 1.51"
10
11
11
12
[features ]
12
- default = [" alloc" ]
13
+ default = [" std" ]
14
+ std = [" alloc" ]
13
15
alloc = []
Original file line number Diff line number Diff line change 36
36
//!
37
37
//! assert_eq!(utf8_percent_encode("foo <bar>", FRAGMENT).to_string(), "foo%20%3Cbar%3E");
38
38
//! ```
39
-
40
39
#![ no_std]
40
+
41
+ // For forwards compatibility
42
+ #[ cfg( feature = "std" ) ]
43
+ extern crate std as _;
44
+
41
45
#[ cfg( feature = "alloc" ) ]
42
46
extern crate alloc;
43
47
You can’t perform that action at this time.
0 commit comments