1
Fork 0

core: Create crate

This commit is contained in:
Steffo 2024-11-09 00:37:12 +01:00
parent f11f01a93b
commit 64641fae55
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
3 changed files with 21 additions and 3 deletions

View file

@ -1,4 +1,2 @@
[workspace]
members = [
]
members = ["acrate-core"]

6
acrate-core/Cargo.toml Normal file
View file

@ -0,0 +1,6 @@
[package]
name = "acrate-core"
version = "0.1.0"
edition = "2021"
[dependencies]

14
acrate-core/src/lib.rs Normal file
View file

@ -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);
}
}