Skip to content

Commit

Permalink
chore: Cargo init
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Jul 28, 2024
1 parent bbb9784 commit 1f0d58a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
!.vscode/settings.json

*.code-workspace
*.zip
*.zip

# Added by cargo

/target
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "achievement-enabler"
version = "0.1.0"
edition = "2021"

[dependencies]
14 changes: 14 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit 1f0d58a

Please sign in to comment.