aboutsummaryrefslogtreecommitdiffstats
path: root/py_bindings/src
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2024-10-07 12:43:16 +0300
committerJan Tuomi <jan@jantuomi.fi>2024-10-07 12:43:16 +0300
commita4efc83f7f29c6ef8ac9b4c57201c9ecc31266b3 (patch)
treea18c856a5fc15fe509d3e3277e345176608dee21 /py_bindings/src
parent30295ba5e1bdbfa69ad98fc5908ee4b1aabbd2e5 (diff)
Add py_bindings lib, move to monorepo structure
Diffstat (limited to 'py_bindings/src')
-rw-r--r--py_bindings/src/lib.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/py_bindings/src/lib.rs b/py_bindings/src/lib.rs
new file mode 100644
index 0000000..abee9f2
--- /dev/null
+++ b/py_bindings/src/lib.rs
@@ -0,0 +1,16 @@
+use log_db::*;
+
+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);
+ }
+}