rust-stdx/stdx

GitHub: rust-stdx/stdx

受 Go 标准库启发的 Rust 非官方扩展标准库,整合常用 crate 并通过源码直接引入的方式提升供应链安全。

Stars: 164 | Forks: 6

# Rust 的(非官方)扩展标准库:为所有人带来简洁、高性能与供应链安全 受 Go 广泛的标准库启发,我们正在构建 Rust 的扩展标准库,旨在为每一位 Rust 开发者带来简洁、高性能与供应链安全。 一旦该理念被证明极具价值,我们计划将整个代码库捐赠给 Rust Foundation,以建立信任并推动其普及。 请在发布公告中了解更多信息:https://kerkour.com/stdx ## 用法 为了避免命名空间冲突和供应链风险,我们不使用中心化的包仓库。请直接从源码导入包,例如: ``` base64 = { git = "https://github.com/rust-stdx/stdx", branch = "main" } # 或者,固定一个 commit base64 = { git = "https://github.com/rust-stdx/stdx", ref = "1234" } # 或者,使用 Codeberg base64 = { git = "https://codeberg.org/rust-stdx/stdx", branch = "main" } # 或者,fork 它并使用你自己的镜像 base64 = { git = "https://git.[my-organization].com/[username]/stdx", branch = "main" } ``` 与名称所暗示的相反,大多数包通过禁用默认的 `std` 特性,也支持 `no_std` 环境。请查看各个包的文档以了解更多信息。 除了 `work_in_progress` 文件夹中的 crate 外,`main` 分支被认为是稳定的。偶尔可能会发生一些轻微的破坏性更新,但我们会尽最大努力减少干扰。 ## 文档 https://rust-stdx.github.io/stdx ## 开发说明 请参阅 [.devcontainer/Dockerfile](./.devcontainer/Dockerfile)。 接着: ``` rustup default stable ``` 然后你就可以准备 ~~Go~~ Rust 了! 请查看 `Makefile` 以获取开发过程中最常用的命令。 ## 许可证 MIT ([LICENSE.txt](./LICENSE.txt)) ### Forks | Package | Forked from | Commit | Original License | | --- | --- | --- | --- | | `bel` | https://github.com/cel-rust/cel-rust | 8287d04156a1b31efe0dd53db78e943fef15c59a | MIT | | `cron` | https://github.com/zslayton/cron | ?? | MIT | | `acme` | https://github.com/instant-labs/instant-acme | 5e12971830a5907f0aeba4dfd602ec26db4bc30c | Apache 2.0 | | `anyerr` | https://github.com/dtolnay/anyhow | 5a88bc48ca18c9720be292487dcdcbc93004d15a | MIT | | `constant_time_eq` | https://github.com/cesarb/constant_time_eq | 09a34625babf29e1b622ed46e959ea517986b12a | CC0-1.0 | | `crc32fast` | https://github.com/srijs/rust-crc32fast | 479ecdf0174dd3a0f7d48b2f66a386d8d2369963 | MIT | | `embed` | https://github.com/pyrossh/rust-embed | 105fdfebab5820ea0628149ee62b34f6d2df3bb8 | MIT | | `derivative` | https://github.com/mcarton/rust-derivative | 5179a968ca6d70792f62dfe6727ab8d5b8b5cf5e | MIT | | `form_urlencoded` | https://github.com/servo/rust-url | 54346fa288e16b25b71c45149d7067c752b450e0 | MIT | | `httpdate` | https://github.com/pyfisch/httpdate | 63f723c6eae30ec130a6c5625ec38c4b49b0891c | MIT | | `ipnetwork` | https://github.com/achanda/ipnetwork | f01575cbf2fc596c0a1761c122aa92525cbb7974 | MIT | | `itoa` | https://github.com/dtolnay/itoa | 945f297a243887f66407fcd65088b3713a464851 | MIT | | `maxminddb` | https://github.com/oschwald/maxminddb-rust | b5a6ccc2f1c8e990b54bbac648f524cdf043522a | ISC | | `memmem` | https://github.com/jneem/memmem | d6e6a0b1fb391539cf8511e7a2de76016d86a870 | MIT | | `mimeguess` | https://github.com/abonander/mime_guess | 1ae11679916b18fcced93c11104b7aed53bd35a2 | MIT | | `num_cpus` | https://github.com/seanmonstar/num_cpus | 7c03fc930cc47a9b94e8ca66ca44ef1a454c8f51 | MIT | | `percent_encoding` | https://github.com/servo/rust-url | 54346fa288e16b25b71c45149d7067c752b450e0 | MIT | | `ryu` | https://github.com/dtolnay/ryu | 8234c4d95f97565bfa562cd1572bb0e8ed80cc44 | Apache 2.0 | | `serde_urlencoded` | https://github.com/nox/serde_urlencoded | 0cca840185fa85b39e2cc8a0b2547fff5ace8e68 | MIT | | `serde_yaml` | https://github.com/dtolnay/serde-yaml | 2009506d33767dfc88e979d6bc0d53d09f941c94 | MIT | | `tld` | https://github.com/rushmorem/publicsuffix | 47958d65a3eab3a01e4a9cf46ccf40c11a7e8052 | MIT | | `unsafe_libyaml` | https://crates.io/crates/unsafe-libyaml | 417668ce6565ece14bbd9b4a73137d9241ea1365 | MIT |
标签:Rust, 依赖管理, 可视化界面, 基础组件库, 标准库扩展, 网络安全研究, 网络流量审计, 通知系统