1
0

feat: initialize rust project

This commit is contained in:
2026-06-28 16:24:46 +08:00
parent 73e539933a
commit e587d3e5ff
7 changed files with 255 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
[package]
name = "lcrconn"
version = "1.0.0"
edition = "2024"
[dependencies]
thiserror = { workspace = true }

14
kernel/lcrconn/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);
}
}