#url #no-std

no-std nourl

A simple Url primitive for no_std environments

2 releases

0.1.1 Jan 30, 2023
0.1.0 Jan 30, 2023

#1492 in Embedded development

Download history 159/week @ 2024-07-21 160/week @ 2024-07-28 205/week @ 2024-08-04 245/week @ 2024-08-11 152/week @ 2024-08-18 163/week @ 2024-08-25 180/week @ 2024-09-01 209/week @ 2024-09-08 184/week @ 2024-09-15 180/week @ 2024-09-22 232/week @ 2024-09-29 138/week @ 2024-10-06 241/week @ 2024-10-13 143/week @ 2024-10-20 156/week @ 2024-10-27 192/week @ 2024-11-03

749 downloads per month
Used in 2 crates (via reqwless)

MIT/Apache

10KB
220 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/pase) from the Url type in reqwless.

Dependencies

~155KB