feat: init with rust lib and bin crate

This commit is contained in:
steveej 2024-12-23 11:55:36 +01:00
commit ca266531a9
21 changed files with 990 additions and 0 deletions

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