using workspaces
This commit is contained in:
parent
81b7c68bb3
commit
d488edb048
5 changed files with 38 additions and 11 deletions
16
Cargo.toml
16
Cargo.toml
|
|
@ -1,11 +1,5 @@
|
||||||
[package]
|
[workspace]
|
||||||
name = "argus"
|
members = [
|
||||||
version = "0.1.0"
|
"argus",
|
||||||
|
"argus-core",
|
||||||
authors = ["Anand Balakrishnan"]
|
]
|
||||||
license = "BSD-3-Clause"
|
|
||||||
|
|
||||||
edition = "2021"
|
|
||||||
rust-version = "1.66"
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
|
|
|
||||||
8
argus-core/Cargo.toml
Normal file
8
argus-core/Cargo.toml
Normal 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]
|
||||||
11
argus/Cargo.toml
Normal file
11
argus/Cargo.toml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
[package]
|
||||||
|
name = "argus"
|
||||||
|
version = "0.1.0"
|
||||||
|
|
||||||
|
authors = ["Anand Balakrishnan"]
|
||||||
|
license = "BSD-3-Clause"
|
||||||
|
|
||||||
|
edition = "2021"
|
||||||
|
rust-version = "1.66"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
14
argus/src/lib.rs
Normal file
14
argus/src/lib.rs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue