Panamax is a mirror for
rustup and crates.io.
First, configure rustup
for Panamax:
echo "export RUSTUP_DIST_SERVER={{ host }}" >> ~/.bashrc echo "export RUSTUP_UPDATE_ROOT={{ host }}/rustup" >> ~/.bashrc source ~/.bashrc
Then, configure cargo
for Panamax:
mkdir -p ~/.cargo cat <<EOT > ~/.cargo/config [source.panamax] registry = "{{ host }}/git/crates.io-index" [source.panamax-sparse] registry = "sparse+{{ host }}/index/" [source.crates-io] # To use sparse index, change "panamax" to "panamax-sparse". replace-with = "panamax" EOT
Finally, run rustup-init
, and you're done!
wget {{ host }}/rustup/dist/(replace with selected platform)/rustup-init chmod +x rustup-init ./rustup-init