summaryrefslogtreecommitdiffstats
path: root/CLI/rust
diff options
context:
space:
mode:
authora14m <[email protected]>2020-12-15 14:14:41 +0100
committera14m <[email protected]>2020-12-15 14:56:31 +0100
commit9b0bce6583ea400cea7bcb90cd2da50edd0db3ac (patch)
tree21aa0b734bd72c0f1287fb9795a026559d44f7c5 /CLI/rust
parentadfac4deba6d4fc4d91c2a8d4b42a6d24241bfb0 (diff)
Add the basic rust package structure
Diffstat (limited to 'CLI/rust')
-rw-r--r--CLI/rust/.gitignore11
-rw-r--r--CLI/rust/Cargo.lock5
-rw-r--r--CLI/rust/Cargo.toml7
-rw-r--r--CLI/rust/src/main.rs3
4 files changed, 26 insertions, 0 deletions
diff --git a/CLI/rust/.gitignore b/CLI/rust/.gitignore
new file mode 100644
index 0000000..b1ade94
--- /dev/null
+++ b/CLI/rust/.gitignore
@@ -0,0 +1,11 @@
+# Generated by Cargo
+# will have compiled files and executables
+debug/
+target/
+
+# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
+# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
+# Cargo.lock
+
+# These are backup files generated by rustfmt
+**/*.rs.bk
diff --git a/CLI/rust/Cargo.lock b/CLI/rust/Cargo.lock
new file mode 100644
index 0000000..2486a4b
--- /dev/null
+++ b/CLI/rust/Cargo.lock
@@ -0,0 +1,5 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+[[package]]
+name = "game-of-life"
+version = "0.1.0"
diff --git a/CLI/rust/Cargo.toml b/CLI/rust/Cargo.toml
new file mode 100644
index 0000000..39eb416
--- /dev/null
+++ b/CLI/rust/Cargo.toml
@@ -0,0 +1,7 @@
+[package]
+name = "game-of-life"
+version = "0.1.0"
+authors = ["a14m <[email protected]>"]
+edition = "2018"
+
+[dependencies]
diff --git a/CLI/rust/src/main.rs b/CLI/rust/src/main.rs
new file mode 100644
index 0000000..e7a11a9
--- /dev/null
+++ b/CLI/rust/src/main.rs
@@ -0,0 +1,3 @@
+fn main() {
+ println!("Hello, world!");
+}