1
Fork 0

added common and converter crates

This commit is contained in:
Andy Killorin 2025-07-12 15:34:28 -05:00
parent 77513260a6
commit 18d0a57583
Signed by: ank
GPG key ID: 80BA307A6BD7A7E4
12 changed files with 30 additions and 1 deletions

2
.gitignore vendored
View file

@ -1 +1 @@
/target
*/target

6
common/Cargo.toml Normal file
View file

@ -0,0 +1,6 @@
[package]
name = "common"
version = "0.1.0"
edition = "2024"
[dependencies]

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

6
converter/Cargo.toml Normal file
View file

@ -0,0 +1,6 @@
[package]
name = "converter"
version = "0.1.0"
edition = "2024"
[dependencies]

3
converter/src/main.rs Normal file
View file

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}