openwrt编译时加速依赖下载
export PIP_INDEX_URL=https://mirrors.hetao.me/pypi/simple
export npm_config_registry=https://mirrors.hetao.me/npm-registry
export RUSTUP_DIST_SERVER=https://mirror.sjtu.edu.cn/rust-static
export RUSTUP_UPDATE_ROOT=https://mirror.sjtu.edu.cn/rust-static/rustup
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
export CARGO_REGISTRIES_MIRROR_INDEX=sparse+https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/
export CARGO_REGISTRY_DEFAULT="mirror"
echo registry=https://mirrors.hetao.me/npm-registry > HOME/.npmrc
mkdir -pHOME/.config/pip
cat << EOF > HOME/.config/pip/pip.conf
[global]
index-url = https://mirrors.hetao.me/pypi/simple
format = columns
EOF
mkdir -vpHOME/.cargo
cat << EOF > HOME/.cargo/env
RUSTUP_DIST_SERVER=https://mirror.sjtu.edu.cn/rust-static
RUSTUP_UPDATE_ROOT=https://mirror.sjtu.edu.cn/rust-static/rustup
EOF
cat << EOF>HOME/.cargo/config
[source]
[source.mirror]
registry = "sparse+https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/"
[source.crates-io]
replace-with = "mirror"
EOF
export http_proxy=http://192.168.33.6:3128
export https_proxy=http://192.168.33.6:3128
export no_proxy=127.0.0.1,172.16.0.0/12,192.168.0.0/16,.cn,.hetao.me,localhost,local,.local