diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..5386bce --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,13 @@ +extern crate base64; +extern crate ring; + +mod string_encryption_key_based_symmetric; + +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + // This test simply simply runs all the examples to ensure that they compile and work. + ::string_encryption_key_based_symmetric::main(); + } +} \ No newline at end of file diff --git a/src/main.rs b/src/main.rs deleted file mode 100644 index 2dedfc0..0000000 --- a/src/main.rs +++ /dev/null @@ -1,9 +0,0 @@ -extern crate base64; -extern crate ring; - -mod string_encryption_key_based_symmetric; - -fn main() { - // This main method simply runs all the examples to ensure that they compile and work. - ::string_encryption_key_based_symmetric::main(); -}