Browse Source

Initial commit

main
fdai7381 2 years ago
commit
8030a5cd6e
  1. 7
      .gitignore
  2. 7
      Cargo.lock
  3. 8
      Cargo.toml
  4. 1
      README.md
  5. 10
      build-project.sh
  6. 10
      prepare-build.sh
  7. 3
      src/main.rs

7
.gitignore

@ -0,0 +1,7 @@
.idea
.vscode
/target
.rustup
.cargo

7
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"

8
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]

1
README.md

@ -0,0 +1 @@
# pmuw-project

10
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

10
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

3
src/main.rs

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}
Loading…
Cancel
Save