#!/usr/bin/env bash DIR="$(realpath "$(dirname -- "$0")")" # set env variables which are requested for rustexport RUSTUP_HOME="$DIR/.rustup"export CARGO_HOME="$DIR/.cargo" source "$DIR/.cargo/env" echo "Running tests..."cargo testecho "Finished tests" echoechoecho echo "Building binary..."cargo build --releaseecho "Finished building binary. It is available at $DIR/target/release/pmuw-project"
#!/usr/bin/env bash
DIR="$(realpath "$(dirname -- "$0")")"
# set env variables which are requested for rust
export RUSTUP_HOME="$DIR/.rustup"
export CARGO_HOME="$DIR/.cargo"
source "$DIR/.cargo/env"
echo "Running tests..."
cargo test
echo "Finished tests"
echo
echo "Building binary..."
cargo build --release
echo "Finished building binary. It is available at $DIR/target/release/pmuw-project"