first commit

This commit is contained in:
Peter Schiwy
2025-02-03 22:32:05 +01:00
parent 520f81d44c
commit e337d202ae
13 changed files with 337 additions and 0 deletions

1
database/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/target

6
database/Cargo.toml Normal file
View File

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

18
database/src/lib.rs Normal file
View File

@@ -0,0 +1,18 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
pub fn sub(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);
}
}