URL library for Rust, based on the WHATWG URL Standard
open sourceMIT OR Apache-2.0free
rust-url is the URL library most Rust code uses: the url crate parses, builds and serialises URLs following the WHATWG URL Standard, the same rules browsers apply, with internationalised domain names handled by its idna crate (ICU4X by default). The repository also publishes percent-encoding, form_urlencoded (for application/x-www-form-urlencoded data) and data-url (for data: URLs). It supports no_std.
Problems it solves
- parse a URL in Rust the same way a browser would
- join a relative link onto a base URL correctly in my Rust crawler
- percent-encode query parameters in Rust
Features
- parse and build URLs by the WHATWG URL Standard
- internationalised domain names through the idna crate
- percent-encoding and form-urlencoded crates
- data: URL parsing
- no_std support
