12 个版本
0.0.17 | 2024 年 1 月 14 日 |
---|---|
0.0.16 | 2024 年 1 月 14 日 |
#639 in 网络编程
每月 94 次下载
5MB
107 代码行
包含 (ELF 可执行文件, 6.5MB) bin/just, (ELF 可执行文件, 5.5MB) bin/tcping, (ELF 可执行文件, 3MB) bin/fd
目录表↑
init-rs
使用世界上最好的 Cargo 安装软件,绕过 GitHub。
当在某些蓝色星球区域使用 GitHub 下载开源软件时,可能会因为网络质量差而失败。本项目旨在通过 cargo 安装这些软件。使用 rust 注册表提高网络质量。
特性标志
名称 | 描述 | 版本 | 默认? |
---|---|---|---|
just | 🤖 Just 一个命令运行器 | 1.23.0 | ✔️ |
fd | 📂 一个简单、快速且用户友好的 'find' 替代品 | 9.0.0 | ❌ |
lll | 📜 更好的 ls ,提供更多使用信息 |
1.0.0 | ❌ |
tcping | 🌐 TCP ping 工具,用于确定 TCP 端口的可达性 | 0.3.0 | ❌ |
安装
安装 rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
或
export RUSTUP_DIST_SERVER="https://rsproxy.cn"
export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"
curl --proto '=https' --tlsv1.2 -sSf https://rsproxy.cn/rustup-init.sh | sh
设置注册表
cat <<EOF | tee -a ~/.cargo/config
[source.crates-io]
replace-with = 'rsproxy-sparse'
[source.rsproxy]
registry = "https://rsproxy.cn/crates.io-index"
[source.rsproxy-sparse]
registry = "sparse+https://rsproxy.cn/index/"
[registries.rsproxy]
index = "https://rsproxy.cn/crates.io-index"
[net]
git-fetch-with-cli = true
EOF
安装 init-rs
cargo install init-rs
或
cargo install init-rs -f --features=just,fd
特别感谢
感谢 Jetbrains 支持这个小型开源项目!
依赖项
~2–10MB
~110K SLoC