Initial commit
This commit is contained in:
4 files changed
+29
No files matched your search
@@ -0,0 +1 @@
|
||||
/target
|
||||
@@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "dynalab-core-rs"
|
||||
version = "0.0.1"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
@@ -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.
|
||||
+14
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user