-
Notifications
You must be signed in to change notification settings - Fork 0
/
rust.sh
45 lines (35 loc) · 1.04 KB
/
rust.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
# Install rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Install additional components
rustup component add llvm-tools
# Add addionnal targets
rustup target add x86_64-unknown-linux-gnu \
wasm32-unknown-unknown \
wasm32-wasi \
x86_64-unknown-linux-musl \
x86_64-unknown-linux-gnu \
aarch64-linux-android aarch64-unknown-linux-gnu \
aarch64-unknown-linux-musl \
aarch64-apple-darwin \
aarch64-apple-ios
# Install nightly toolchain
rustup toolchain install nightly --allow-downgrade --profile minimal --component clippy rust-docs miri
# Install Webassembly tools
cargo install --force cargo-component \
wasm-tools
# Wasmtime
curl https://wasmtime.dev/install.sh -sSf | bash
# Install addionnal useful binaries.
cargo install --force cbindgen \
bunyan \
cargo-nextest \
cargo-udeps \
cargo-watch \
cargo-audit \
cargo-expand \
cargo-update \
cargo-tarpaulin \
cargo-insta \
sqlx-cli \
bat