#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

#402 in Embedded development

Download history 450/week @ 2025-01-19 272/week @ 2025-01-26 419/week @ 2025-02-02 1610/week @ 2025-02-09 794/week @ 2025-02-16 835/week @ 2025-02-23 1067/week @ 2025-03-02 494/week @ 2025-03-09 887/week @ 2025-03-16 957/week @ 2025-03-23 576/week @ 2025-03-30 529/week @ 2025-04-06 364/week @ 2025-04-13 438/week @ 2025-04-20 1657/week @ 2025-04-27 1556/week @ 2025-05-04

4,095 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