#url

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

#641 in Embedded development

Download history 754/week @ 2025-12-18 384/week @ 2025-12-25 829/week @ 2026-01-01 1283/week @ 2026-01-08 1623/week @ 2026-01-15 1692/week @ 2026-01-22 1427/week @ 2026-01-29 1507/week @ 2026-02-05 1200/week @ 2026-02-12 1505/week @ 2026-02-19 2666/week @ 2026-02-26 2075/week @ 2026-03-05 1304/week @ 2026-03-12 1822/week @ 2026-03-19 1518/week @ 2026-03-26 1095/week @ 2026-04-02

6,035 downloads per month
Used in 5 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

~130KB