first commit

This commit is contained in:
mii443
2024-10-15 16:33:55 +00:00
parent cdab177cc2
commit 31b412c129
3 changed files with 25 additions and 1 deletions

6
.gitignore vendored
View File

@ -18,4 +18,8 @@ Cargo.lock
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear # and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/
# Added by cargo
/target

6
Cargo.toml Normal file
View File

@ -0,0 +1,6 @@
[package]
name = "izoli"
version = "0.1.0"
edition = "2021"
[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);
}
}