From 3ccd803d2fb41d40c54d6f0ca29c899a2e14101b Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Fri, 15 Jul 2022 14:55:35 -0400 Subject: [PATCH] added rust lib --- libautobar/Cargo.toml | 8 ++++++++ libautobar/src/lib.rs | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 libautobar/Cargo.toml create mode 100644 libautobar/src/lib.rs diff --git a/libautobar/Cargo.toml b/libautobar/Cargo.toml new file mode 100644 index 0000000..bb4a64b --- /dev/null +++ b/libautobar/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "libautobar" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/libautobar/src/lib.rs b/libautobar/src/lib.rs new file mode 100644 index 0000000..1b4a90c --- /dev/null +++ b/libautobar/src/lib.rs @@ -0,0 +1,8 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + let result = 2 + 2; + assert_eq!(result, 4); + } +}