using workspaces

This commit is contained in:
Anand Balakrishnan 2023-03-16 17:31:01 -07:00
parent 81b7c68bb3
commit d488edb048
No known key found for this signature in database
5 changed files with 38 additions and 11 deletions

8
argus-core/Cargo.toml Normal file
View file

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

14
argus-core/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);
}
}