Add initial cargo crate

This commit is contained in:
BeastLe9enD 2025-04-05 15:20:16 +02:00
parent 76d73a6a35
commit c666a3960b
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,12 @@
[package]
name = "land_of_barl"
version = "0.1.0"
edition = "2024"
[dependencies]
[build-dependencies]
bindgen = "0.71.1"
[lib]
crate-type = ["staticlib"]

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