#url #no-std

no-std nourl

适用于no_std环境的简单Url原语

2个版本

0.1.1 2023年1月30日
0.1.0 2023年1月30日

#1490嵌入式开发

Download history · Rust 包仓库 110/week @ 2024-03-14 · Rust 包仓库 64/week @ 2024-03-21 · Rust 包仓库 120/week @ 2024-03-28 · Rust 包仓库 68/week @ 2024-04-04 · Rust 包仓库 71/week @ 2024-04-11 · Rust 包仓库 89/week @ 2024-04-18 · Rust 包仓库 65/week @ 2024-04-25 · Rust 包仓库 48/week @ 2024-05-02 · Rust 包仓库 42/week @ 2024-05-09 · Rust 包仓库 77/week @ 2024-05-16 · Rust 包仓库 66/week @ 2024-05-23 · Rust 包仓库 47/week @ 2024-05-30 · Rust 包仓库 48/week @ 2024-06-06 · Rust 包仓库 68/week @ 2024-06-13 · Rust 包仓库 134/week @ 2024-06-20 · Rust 包仓库 158/week @ 2024-06-27 · Rust 包仓库

每月416次下载
reqwless使用

MIT/Apache

10KB
220

简单的Url原语

CI crates.io

此crate提供了一种简单的Url类型,可以在嵌入式no_std环境中使用。

如果您缺少某个功能或想添加新的方案,请提交一个issue或PR。

此crate在稳定版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");

实现受到了reqwless中Url类型的强烈启发(几乎可以复制粘贴)。

依赖项

~180KB