commit 8030a5cd6e812578200fc4b2ef85946101dcc452 Author: fdai7381 Date: Fri Jan 13 20:30:35 2023 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..37a413c --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +.idea +.vscode + +/target + +.rustup +.cargo diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..45435f0 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "pmuw-project" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..8994795 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "pmuw-project" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/README.md b/README.md new file mode 100644 index 0000000..0b44a63 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# pmuw-project diff --git a/build-project.sh b/build-project.sh new file mode 100755 index 0000000..be0a4cc --- /dev/null +++ b/build-project.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +DIR="$(realpath "$(dirname -- "$0")")" + +CARGO="$DIR/.cargo/bin/cargo" + +"$CARGO" test +"$CARGO" build --release + +exit 0 diff --git a/prepare-build.sh b/prepare-build.sh new file mode 100755 index 0000000..4ece9fb --- /dev/null +++ b/prepare-build.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +DIR="$(realpath "$(dirname -- "$0")")" + +export RUSTUP_HOME="$DIR/.rustup" +export CARGO_HOME="$DIR/.cargo" + +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path + +exit 0 diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}