feat: create lib and cli with a simple reference to start working
This commit is contained in:
5
src/cli.rs
Normal file
5
src/cli.rs
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
use clockcalclib::test;
|
||||||
|
|
||||||
|
pub fn main() {
|
||||||
|
test();
|
||||||
|
}
|
||||||
11
src/lib.rs
Normal file
11
src/lib.rs
Normal 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!");
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user