diff --git a/.gitignore b/.gitignore index ab951f8..eb7d039 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ + # ---> Rust # Generated by Cargo # will have compiled files and executables @@ -20,3 +21,9 @@ Cargo.lock # 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. #.idea/ +======= +/target + +.env +.env.* +!.env.example diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..ac4f27e --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "merlin-reflect" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..b93cf3f --- /dev/null +++ b/src/lib.rs @@ -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); + } +}