Skip to content

Commit

Permalink
add temporary crate inside workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
connortsui20 committed Jan 9, 2025
1 parent 713701c commit d17bcee
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[workspace]
members = ["optd-storage","optd-tmp"]
resolver = "2"
6 changes: 6 additions & 0 deletions optd-storage/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "optd-storage"
version = "0.1.0"
edition = "2021"

[dependencies]
14 changes: 14 additions & 0 deletions optd-storage/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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 changes: 6 additions & 0 deletions optd-tmp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "optd-tmp"
version = "0.1.0"
edition = "2021"

[dependencies]
14 changes: 14 additions & 0 deletions optd-tmp/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit d17bcee

Please sign in to comment.