@ -0,0 +1,7 @@
.idea
.vscode
/target
.rustup
.cargo
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "pmuw-project"
version = "0.1.0"
@ -0,0 +1,8 @@
[package]
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
@ -0,0 +1 @@
# pmuw-project
@ -0,0 +1,21 @@
#!/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"
@ -0,0 +1,14 @@
# set env variables to overwrite the directory where rust is installed into
# download rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
# set the default rust version
rustup default stable
@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}