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"
33version = " 2.2.0"
44authors = [" The rust-url developers" ]
55description = " Percent encoding and decoding"
6+ categories = [" no_std" ]
67repository = " https://github.com/servo/rust-url/"
78license = " MIT OR Apache-2.0"
89edition = " 2018"
910rust-version = " 1.51"
1011
1112[features ]
12- default = [" alloc" ]
13+ default = [" std" ]
14+ std = [" alloc" ]
1315alloc = []
Original file line number Diff line number Diff line change 3636//!
3737//! assert_eq!(utf8_percent_encode("foo <bar>", FRAGMENT).to_string(), "foo%20%3Cbar%3E");
3838//! ```
39-
4039#![ no_std]
40+
41+ // For forwards compatibility
42+ #[ cfg( feature = "std" ) ]
43+ extern crate std as _;
44+
4145#[ cfg( feature = "alloc" ) ]
4246extern crate alloc;
4347
You can’t perform that action at this time.
0 commit comments