From 277f2c62d200c10a9a0f770a333cb4e933246a5d Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Thu, 18 Jan 2024 22:27:59 +0100 Subject: [PATCH] add cargo basics --- .gitignore | 5 +++++ Cargo.toml | 16 ++++++++++++++++ src/main.rs | 3 +++ 3 files changed, 24 insertions(+) create mode 100644 Cargo.toml create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore index 3ca43ae..193d30e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,8 @@ Cargo.lock # MSVC Windows builds of rustc generate these, which store debugging information *.pdb + + +# Added by cargo + +/target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..0543e1f --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "template" +version = "0.1.0" +edition = "2021" +publish = false +authors = ["Christoph J. Scherr "] +license = "MIT" +description = "No description yet" +readme = "README.md" +homepage = "https://git.cscherr.de/PlexSheep/rs-base" +repository = "https://git.cscherr.de/PlexSheep/rs-base" +keywords = ["template"] + + +[dependencies] + 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!"); +}