diff options
| author | rtkay123 <dev@kanjala.com> | 2026-02-08 11:58:30 +0200 |
|---|---|---|
| committer | rtkay123 <dev@kanjala.com> | 2026-02-08 11:58:30 +0200 |
| commit | e4aa3d837543cdc91b563da32c36cdc3b86529e9 (patch) | |
| tree | abd5536345351b15d5b90f2bdae490362a3814fe /lib | |
| parent | 0f5dd4a0024815407d094cdc916af814cf9aadd5 (diff) | |
| download | sellershut-e4aa3d837543cdc91b563da32c36cdc3b86529e9.tar.bz2 sellershut-e4aa3d837543cdc91b563da32c36cdc3b86529e9.zip | |
feat: auth lib
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/auth-service/Cargo.toml | 11 | ||||
| -rw-r--r-- | lib/auth-service/src/lib.rs | 14 |
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); + } +} |
