#url #no-std #environment

no-std nourl

A simple Url primitive for no_std environments

5 releases

new 0.1.4 Mar 28, 2025
0.1.3 Mar 28, 2025
0.1.2 Feb 12, 2025
0.1.1 Jan 30, 2023
0.1.0 Jan 30, 2023

#652 in Embedded development

Download history 207/week @ 2024-12-05 505/week @ 2024-12-12 201/week @ 2024-12-19 107/week @ 2024-12-26 194/week @ 2025-01-02 279/week @ 2025-01-09 363/week @ 2025-01-16 380/week @ 2025-01-23 300/week @ 2025-01-30 1316/week @ 2025-02-06 1035/week @ 2025-02-13 787/week @ 2025-02-20 764/week @ 2025-02-27 949/week @ 2025-03-06 930/week @ 2025-03-13 484/week @ 2025-03-20

3,234 downloads per month
Used in 2 crates (via reqwless)

MIT/Apache

18KB
378 lines

A simple Url primitive

CI crates.io

This crate provides a simple Url type that can be used in embedded no_std environments.

If you are missing a feature or would like to add a new scheme, please raise an issue or a PR.

The crate runs on stable rust.

Example

let url = Url::parse("http://localhost/foo/bar").unwrap();
assert_eq!(url.scheme(), UrlScheme::HTTP);
assert_eq!(url.host(), "localhost");
assert_eq!(url.port_or_default(), 80);
assert_eq!(url.path(), "/foo/bar");

The implementation is heavily inspired (close to copy/paste) from the Url type in reqwless.

Dependencies

~155KB