feat: added loader crate

This commit is contained in:
antifallobst 2023-11-30 15:40:58 +01:00
parent b80b69bff5
commit 2c11839d21
Signed by: antifallobst
GPG Key ID: 2B4F402172791BAF
4 changed files with 30 additions and 0 deletions

1
lithium-loader/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

7
lithium-loader/Cargo.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "lithium-loader"
version = "0.1.0"

View File

@ -0,0 +1,8 @@
[package]
name = "lithium-loader"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

14
lithium-loader/src/lib.rs Normal file
View File

@ -0,0 +1,14 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}