framework agnostic core cargo

This commit is contained in:
polv committed 2026-02-21 22:00:26 +07:00
1 parent afc8bc60e0
commit 876b879a65
16 files changed
+5569 -31

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
pub mod models;
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);
}
}
+8
View File
@@ -0,0 +1,8 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Entry {
pub id: i64,
pub word: String,
pub definition: String,
}