From 2578d7cf515e0fae80103018f0bbdcdd5aeaccc8 Mon Sep 17 00:00:00 2001 From: schn33fuchs Date: Mon, 27 Apr 2026 12:10:31 +0200 Subject: [PATCH] Added frontend project --- frontend/Cargo.toml | 6 ++++++ frontend/src/lib.rs | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 frontend/Cargo.toml create mode 100644 frontend/src/lib.rs diff --git a/frontend/Cargo.toml b/frontend/Cargo.toml new file mode 100644 index 0000000..fdcf40d --- /dev/null +++ b/frontend/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "frontend" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/frontend/src/lib.rs b/frontend/src/lib.rs new file mode 100644 index 0000000..b93cf3f --- /dev/null +++ b/frontend/src/lib.rs @@ -0,0 +1,14 @@ +pub fn add(left: u64, right: u64) -> u64 { + left + right +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn it_works() { + let result = add(2, 2); + assert_eq!(result, 4); + } +}