You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
762 B
30 lines
762 B
#!/bin/bash |
|
|
|
set -e |
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
|
|
|
source "$SCRIPT_DIR/dev.env" |
|
|
|
mkdir -p ${RUSTUP_HOME} ${CARGO_HOME} 2>/dev/null ||: |
|
|
|
cd /tmp |
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \ |
|
rustup default stable |
|
rustup update |
|
rustup component add rustfmt clippy |
|
rustup target add wasm32-unknown-unknown |
|
rustup toolchain install nightly |
|
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu |
|
|
|
cargo install --version 2.6.0 flutter_rust_bridge_codegen |
|
cargo install cargo-expand |
|
cargo install wasm-pack |
|
|
|
dart pub global activate fvm |
|
dart --disable-analytics |
|
|
|
# Build demo project |
|
"$RUST_SAMPLE_PROJECT/build.sh" |
|
|
|
echo "Rust development environment setup completed successfully!"
|
|
|