From 710fa43083ed5648590c22107213ea6bfc6749cf Mon Sep 17 00:00:00 2001 From: Luke Harding Date: Tue, 30 Apr 2024 22:40:39 -0400 Subject: [PATCH] Initial Cargo Setup --- .gitignore | 12 ++++++++++++ server/Cargo.lock | 7 +++++++ server/Cargo.toml | 8 ++++++++ server/src/main.rs | 3 +++ 4 files changed, 30 insertions(+) create mode 100644 server/Cargo.lock create mode 100644 server/Cargo.toml create mode 100644 server/src/main.rs diff --git a/.gitignore b/.gitignore index a0cee65..64d64ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +#--------------- +# Astro Stuff +#--------------- + # build output dist/ # generated types @@ -12,6 +16,14 @@ yarn-debug.log* yarn-error.log* pnpm-debug.log* +#-------------- +# Rust/Cargo +#-------------- +target/ + +#-------- +# Misc +#-------- # environment variables .env diff --git a/server/Cargo.lock b/server/Cargo.lock new file mode 100644 index 0000000..49d10f3 --- /dev/null +++ b/server/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "server" +version = "0.1.0" diff --git a/server/Cargo.toml b/server/Cargo.toml new file mode 100644 index 0000000..dd022ab --- /dev/null +++ b/server/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "server" +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/server/src/main.rs b/server/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/server/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}