core: Initialize project #3

merged
opened by isaaccorbrey.com targeting main from icorbrey/push-lyqnnmvquzpr
Changed files
+21 -1
footnotes_core
+1 -1
Cargo.toml
··· 4 4 edition = "2024" 5 5 6 6 [workspace] 7 - members = ["footnotes_appview"] 7 + members = ["footnotes_appview", "footnotes_core"] 8 8 resolver = "2"
+6
footnotes_core/Cargo.toml
··· 1 + [package] 2 + name = "footnotes_core" 3 + version = "0.1.0" 4 + edition = "2024" 5 + 6 + [dependencies]
+14
footnotes_core/src/lib.rs
··· 1 + pub fn add(left: u64, right: u64) -> u64 { 2 + left + right 3 + } 4 + 5 + #[cfg(test)] 6 + mod tests { 7 + use super::*; 8 + 9 + #[test] 10 + fn it_works() { 11 + let result = add(2, 2); 12 + assert_eq!(result, 4); 13 + } 14 + }