From 3f45825a79b377cfe2f4a814ab33e6a63a46801f Mon Sep 17 00:00:00 2001 From: Hector van der Aa Date: Tue, 29 Sep 2026 14:10:45 +0200 Subject: [PATCH] Initial commit --- .gitignore | 1 + Cargo.toml | 6 ++++++ README.md | 8 ++++++++ src/lib.rs | 14 ++++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.toml create mode 100644 README.md create mode 100644 src/lib.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..1ca77a5 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "dynalab-core-rs" +version = "0.0.1" +edition = "2024" + +[dependencies] diff --git a/README.md b/README.md new file mode 100644 index 0000000..866e61e --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# DynaLab Core + +> [!IMPORTANT] +> This rewrite is underway and in no way shape or form functional. + +This repository contains the Rust rewrite of initial [DynaLab Core](https://git.h3cx.dev/Exergie/dynalab-core.git) implementation originally written in python. + +The choice has been made to move over to Rust to have a higher performing back-end library as the original implementation was being restricted due to the limitations of the Python GIL interpreter as well as the asyncio stack. 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); + } +}