Skip to content

Use the world's best Cargo to install software, bypassing GitHub.

Notifications You must be signed in to change notification settings

lvillis/init-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents↗️

init-rs

Use the world's best Cargo to install software, bypassing GitHub.


When using GitHub to download open source software in some areas of Blue Planet, it may fail due to poor network quality. This project aims to install these software through cargo. Use the rust registry to improve network quality.

Feature flags

Name Description Version Default?
just 🤖 Just a command runner 1.23.0 ✔️
fd 📂 A simple, fast and user-friendly alternative to 'find' 9.0.0
lll 📜 A better ls with more usage information 1.0.0
tcping 🌐 A TCP ping utility to determine reachability of a TCP port 0.3.0

Installation

install rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

or

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

set registry

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

install init-rs

cargo install init-rs

or

cargo install init-rs -f --features=just,fd

Special thanks

Jetbrains Logo

Thanks to Jetbrains for supporting this small open source project!

About

Use the world's best Cargo to install software, bypassing GitHub.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published