feat: create lib and cli with a simple reference to start working

This commit is contained in:
2020-12-01 16:26:22 +01:00
parent d2a8219d66
commit 16a5593287
2 changed files with 16 additions and 0 deletions

5
src/cli.rs Normal file
View File

@@ -0,0 +1,5 @@
use clockcalclib::test;
pub fn main() {
test();
}

11
src/lib.rs Normal file
View File

@@ -0,0 +1,11 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}
pub fn test() {
println!("This lib seems to work!");
}