From 15b6e777a2b0430648776fa4a87ba1e71d9fe0f9 Mon Sep 17 00:00:00 2001 From: Isaac Corbrey Date: Wed, 1 Oct 2025 13:33:03 +0000 Subject: [PATCH] lexicon: Initialize project Change-Id: lyqnnmvquzprvolzupzvrpyqqlvyvzov --- Cargo.toml | 2 +- footnotes_lexicon/Cargo.toml | 6 ++++++ footnotes_lexicon/src/lib.rs | 14 ++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 footnotes_lexicon/Cargo.toml create mode 100644 footnotes_lexicon/src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index 6261a66..28d75bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,5 +4,5 @@ version = "0.1.0" edition = "2024" [workspace] -members = ["footnotes_appview", "footnotes_core"] +members = ["footnotes_appview", "footnotes_core", "footnotes_lexicon"] resolver = "2" diff --git a/footnotes_lexicon/Cargo.toml b/footnotes_lexicon/Cargo.toml new file mode 100644 index 0000000..e7e4baf --- /dev/null +++ b/footnotes_lexicon/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "footnotes_lexicon" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/footnotes_lexicon/src/lib.rs b/footnotes_lexicon/src/lib.rs new file mode 100644 index 0000000..b93cf3f --- /dev/null +++ b/footnotes_lexicon/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); + } +} -- 2.43.0