refactor: move library into it's own crate
This commit is contained in:
parent
91d702088d
commit
b31502fb37
13 changed files with 138 additions and 34 deletions
19
lib_sync_core/src/lib.rs
Normal file
19
lib_sync_core/src/lib.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
pub mod error;
|
||||
|
||||
pub(crate) use error::*;
|
||||
pub mod task_manager;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue