From 9b0bce6583ea400cea7bcb90cd2da50edd0db3ac Mon Sep 17 00:00:00 2001 From: a14m Date: Tue, 15 Dec 2020 14:14:41 +0100 Subject: Add the basic rust package structure --- CLI/rust/.gitignore | 11 +++++++++++ CLI/rust/Cargo.lock | 5 +++++ CLI/rust/Cargo.toml | 7 +++++++ CLI/rust/src/main.rs | 3 +++ 4 files changed, 26 insertions(+) create mode 100644 CLI/rust/.gitignore create mode 100644 CLI/rust/Cargo.lock create mode 100644 CLI/rust/Cargo.toml create mode 100644 CLI/rust/src/main.rs 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 "] +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!"); +} -- cgit v1.2.3