summary refs log tree commit diff
path: root/comms
diff options
context:
space:
mode:
authorAshelyn Rose <git@ashen.earth>2025-02-13 22:04:48 -0700
committerAshelyn Rose <git@ashen.earth>2025-02-13 22:05:59 -0700
commit8a0c92f80a797f40bc06f524d37247273351be8e (patch)
tree8d0891532dfef753102762f382a7ef3cf002d73c /comms
Minimum app setup
Diffstat (limited to 'comms')
-rw-r--r--comms/Cargo.toml6
-rw-r--r--comms/src/lib.rs14
2 files changed, 20 insertions, 0 deletions
diff --git a/comms/Cargo.toml b/comms/Cargo.toml
new file mode 100644
index 0000000..173f07d
--- /dev/null
+++ b/comms/Cargo.toml
@@ -0,0 +1,6 @@
+[package]
+name = "foxfleet_communicator"
+version = "0.1.0"
+edition = "2021"
+
+[dependencies]
diff --git a/comms/src/lib.rs b/comms/src/lib.rs
new file mode 100644
index 0000000..b93cf3f
--- /dev/null
+++ b/comms/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);
+    }
+}