Skip to content

Commit 619de8e

Browse files
committed
Explanation of default features change.
1 parent a544730 commit 619de8e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

url/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ assert!(data_url.fragment() == Some(""));
7373
# run().unwrap();
7474
```
7575
76+
## Default Features
77+
78+
Versions `< 3` of the crate have no default features. Versions `>= 3` have the default feature 'std'.
79+
If you are upgrading across this boundary and you have specified `default-features = false`, then
80+
you will need to add the 'std' feature or the 'alloc' feature to your dependency.
81+
The 'std' feature has the same behavior as the previous versions. The 'alloc' feature
82+
provides no_std support.
83+
7684
## Serde
7785
7886
Enable the `serde` feature to include `Deserialize` and `Serialize` implementations for `url::Url`.

0 commit comments

Comments
 (0)