You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
5 years ago
|
1 step
|
||
|
nano /etc/profile
|
||
|
export PATH=/usr/local/cargo/bin:$PATH
|
||
|
export RUSTUP_HOME=/usr/local/rustup
|
||
|
export CARGO_HOME=/usr/local/cargo
|
||
|
2 install rust
|
||
|
wget https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
|
||
|
chmod +x rustup-init; \
|
||
|
./rustup-init -y --no-modify-path --default-toolchain stable; \
|
||
|
rm rustup-init; \
|
||
|
chmod -R a+w+r /usr/local/cargo/; \
|
||
|
chmod -R a+w+r /usr/local/cargo/; \
|
||
|
rustup install nightly beta; \
|
||
|
rustup target add wasm32-unknown-unknown --toolchain nightly; \
|
||
|
cargo install cargo-audit --force; \
|
||
|
cargo install sccache --features redis --force; \
|
||
|
cargo install --git https://github.com/alexcrichton/wasm-gc --force ;
|
||
|
3 redis
|
||
|
protected mode no
|
||
|
|
||
|
maxmemory 50gb
|
||
|
maxmemory-policy allkeys-lru
|
||
|
service redis restart
|
||
|
3 setup sccache+redis
|
||
|
nano /etc/profile
|
||
|
export PATH=/usr/local/cargo/bin:$PATH
|
||
|
export RUSTUP_HOME=/usr/local/rustup
|
||
|
export CARGO_HOME=/usr/local/cargo
|
||
|
export SCCACHE_IDLE_TIMEOUT=0
|
||
|
export SCCACHE_REDIS=redis://127.0.0.1/0
|
||
|
export RUSTC_WRAPPER=sccache
|
||
|
4 user
|
||
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||
|
export RUSTUP_HOME=$HOME/.rustup
|
||
|
export CARGO_HOME=$HOME/.cargo
|
||
|
|
||
|
rustup install stable
|