From 71709b5058abbda908b4c165d019c411792f4bf5 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann <m@nuth.ch> Date: Fri, 28 Mar 2025 21:05:44 +0100 Subject: [PATCH] Initialize a new workspace --- add/Cargo.lock | 7 +++++++ add/Cargo.toml | 5 +++++ add/adder/Cargo.toml | 6 ++++++ add/adder/src/main.rs | 3 +++ rust-exercises.code-workspace | 3 +++ 5 files changed, 24 insertions(+) create mode 100644 add/Cargo.lock create mode 100644 add/Cargo.toml create mode 100644 add/adder/Cargo.toml create mode 100644 add/adder/src/main.rs diff --git a/add/Cargo.lock b/add/Cargo.lock new file mode 100644 index 0000000..efe4e14 --- /dev/null +++ b/add/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adder" +version = "0.1.0" diff --git a/add/Cargo.toml b/add/Cargo.toml new file mode 100644 index 0000000..c5ea8e5 --- /dev/null +++ b/add/Cargo.toml @@ -0,0 +1,5 @@ +[workspace] + +members = [ + "adder", +] diff --git a/add/adder/Cargo.toml b/add/adder/Cargo.toml new file mode 100644 index 0000000..9a5826a --- /dev/null +++ b/add/adder/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "adder" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/add/adder/src/main.rs b/add/adder/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/add/adder/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/rust-exercises.code-workspace b/rust-exercises.code-workspace index ecf768f..f19cd29 100644 --- a/rust-exercises.code-workspace +++ b/rust-exercises.code-workspace @@ -1,5 +1,8 @@ { "folders": [ + { + "path": "./add" + }, { "path": "./minigrep" },