#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

#1404 in Embedded development

Download history 13/week @ 2023-12-18 3/week @ 2024-01-01 87/week @ 2024-01-08 63/week @ 2024-01-15 16/week @ 2024-01-22 16/week @ 2024-01-29 31/week @ 2024-02-05 95/week @ 2024-02-12 75/week @ 2024-02-19 59/week @ 2024-02-26 158/week @ 2024-03-04 113/week @ 2024-03-11 107/week @ 2024-03-18 68/week @ 2024-03-25 138/week @ 2024-04-01

434 downloads per month
Used in 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

~160KB