feat: initialize rust project

This commit is contained in:
yyc12345 committed 2026-06-28 16:24:46 +08:00
1 parent 73e539933a
commit e587d3e5ff
7 files changed
+255

No files matched your search

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