rush_macro init

This commit is contained in:
Rowan Torbitzky-Lane 2025-04-15 13:37:06 -05:00
parent a66ed69e25
commit 3eeae06477
2 changed files with 20 additions and 0 deletions

6
rush_macro/Cargo.toml Normal file
View File

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

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