aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/auth-service/Cargo.toml11
-rw-r--r--lib/auth-service/src/lib.rs14
2 files changed, 25 insertions, 0 deletions
diff --git a/lib/auth-service/Cargo.toml b/lib/auth-service/Cargo.toml
new file mode 100644
index 0000000..147c2fa
--- /dev/null
+++ b/lib/auth-service/Cargo.toml
@@ -0,0 +1,11 @@
+[package]
+name = "auth-service"
+version = "0.1.0"
+edition = "2024"
+license.workspace = true
+readme.workspace = true
+documentation.workspace = true
+
+[dependencies]
+oauth2 = "5.0.0"
+thiserror.workspace = true
diff --git a/lib/auth-service/src/lib.rs b/lib/auth-service/src/lib.rs
new file mode 100644
index 0000000..b93cf3f
--- /dev/null
+++ b/lib/auth-service/src/lib.rs
@@ -0,0 +1,14 @@
+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);
+ }
+}