From 8030a5cd6e812578200fc4b2ef85946101dcc452 Mon Sep 17 00:00:00 2001 From: fdai7381 Date: Fri, 13 Jan 2023 20:30:35 +0100 Subject: [PATCH] Initial commit --- .gitignore | 7 +++++++ Cargo.lock | 7 +++++++ Cargo.toml | 8 ++++++++ README.md | 1 + build-project.sh | 10 ++++++++++ prepare-build.sh | 10 ++++++++++ src/main.rs | 3 +++ 7 files changed, 46 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 README.md create mode 100755 build-project.sh create mode 100755 prepare-build.sh create mode 100644 src/main.rs 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!"); +}