1️⃣ First Commit

This commit is contained in:
2025-02-09 12:37:11 +01:00
commit 35c4035037
4 changed files with 24 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
/target
/.idea
Cargo.lock

6
Cargo.toml Normal file
View File

@@ -0,0 +1,6 @@
[package]
name = "aweblibv2"
version = "0.1.0"
edition = "2021"
[dependencies]

1
README.md Normal file
View File

@@ -0,0 +1 @@
# A Web Lib V2

14
src/lib.rs Normal file
View File

@@ -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);
}
}