update
This commit is contained in:
parent
873f6b4ea7
commit
d51369d8f2
@ -16,6 +16,7 @@ reactive_stores = "0.1.1"
|
||||
strum = "0.26.3"
|
||||
strum_macros = "0.26.4"
|
||||
serde_json = "1.0.133"
|
||||
src-common = { path = "./src-common" }
|
||||
|
||||
[workspace]
|
||||
members = ["src-tauri"]
|
||||
members = ["src-common", "src-tauri"]
|
||||
|
||||
6
src-common/Cargo.toml
Normal file
6
src-common/Cargo.toml
Normal file
@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "src-common"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
14
src-common/src/lib.rs
Normal file
14
src-common/src/lib.rs
Normal 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);
|
||||
}
|
||||
}
|
||||
@ -29,3 +29,4 @@ thiserror = "2.0.8"
|
||||
directories = "5.0.1"
|
||||
indoc = "2.0.5"
|
||||
open = "5.3.1"
|
||||
src-common = { path = "../src-common" }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user