Initial commit

This commit is contained in:
soup 2024-10-19 00:12:09 -04:00
commit d740216b1d
No known key found for this signature in database
3 changed files with 23 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

8
Cargo.toml Normal file
View file

@ -0,0 +1,8 @@
[package]
name = "o_o"
version = "0.1.0"
edition = "2021"
description = "An async runtime"
license = "AGPL"
[dependencies]

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