#url #no-std

no-std nourl

A simple Url primitive for no_std environments

3 releases

0.1.2 Feb 12, 2025
0.1.1 Jan 30, 2023
0.1.0 Jan 30, 2023

#298 in Embedded development

Download history 167/week @ 2024-10-30 157/week @ 2024-11-06 121/week @ 2024-11-13 163/week @ 2024-11-20 158/week @ 2024-11-27 205/week @ 2024-12-04 485/week @ 2024-12-11 255/week @ 2024-12-18 102/week @ 2024-12-25 162/week @ 2025-01-01 250/week @ 2025-01-08 376/week @ 2025-01-15 387/week @ 2025-01-22 311/week @ 2025-01-29 856/week @ 2025-02-05 1434/week @ 2025-02-12

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

MIT/Apache

11KB
226 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