chore: initialize a new workspace with empty lib project

This commit is contained in:
2025-11-16 07:56:13 +01:00
parent 1ca8c5ea75
commit 9aac3d6bed
5 changed files with 33 additions and 0 deletions

View File

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

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