#url #environment

no-std nourl

A simple Url primitive for no_std environments

5 releases

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

#412 in Embedded development

Download history 254/week @ 2024-12-17 145/week @ 2024-12-24 148/week @ 2024-12-31 271/week @ 2025-01-07 374/week @ 2025-01-14 382/week @ 2025-01-21 286/week @ 2025-01-28 816/week @ 2025-02-04 1509/week @ 2025-02-11 587/week @ 2025-02-18 801/week @ 2025-02-25 1020/week @ 2025-03-04 796/week @ 2025-03-11 596/week @ 2025-03-18 1042/week @ 2025-03-25 501/week @ 2025-04-01

2,996 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

~150KB