| Crates.io | nourl |
| lib.rs | nourl |
| version | 0.1.4 |
| created_at | 2023-01-30 11:11:38.336393+00 |
| updated_at | 2025-03-28 12:31:07.925071+00 |
| description | A simple Url primitive for no_std environments |
| homepage | |
| repository | https://github.com/rmja/nourl |
| max_upload_size | |
| id | 771673 |
| size | 20,537 |
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.
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.