From b5e87c7226f268440d88f0faa381a24b6f6e1db1 Mon Sep 17 00:00:00 2001 From: Simon Broeng Jensen Date: Mon, 3 Feb 2025 23:09:54 +0100 Subject: [PATCH] auth: move auth crate to crates folder --- Cargo.toml | 2 +- app/Cargo.toml | 2 +- {auth => crates/auth}/Cargo.toml | 0 {auth => crates/auth}/src/lib.rs | 0 {auth => crates/auth}/src/opaque.rs | 0 crates/domain/Cargo.toml | 2 +- migration-tool/Cargo.toml | 2 +- server/Cargo.toml | 2 +- set-password/Cargo.toml | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename {auth => crates/auth}/Cargo.toml (100%) rename {auth => crates/auth}/src/lib.rs (100%) rename {auth => crates/auth}/src/opaque.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index e3228ca..a599749 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [workspace] members = [ + "crates/auth", "crates/domain", "server", - "auth", "app", "migration-tool", "set-password", diff --git a/app/Cargo.toml b/app/Cargo.toml index a8d2797..3a8282e 100644 --- a/app/Cargo.toml +++ b/app/Cargo.toml @@ -57,7 +57,7 @@ features = [ ] [dependencies.lldap_auth] -path = "../auth" +path = "../crates/auth" features = [ "opaque_client" ] [dependencies.lldap_validation] diff --git a/auth/Cargo.toml b/crates/auth/Cargo.toml similarity index 100% rename from auth/Cargo.toml rename to crates/auth/Cargo.toml diff --git a/auth/src/lib.rs b/crates/auth/src/lib.rs similarity index 100% rename from auth/src/lib.rs rename to crates/auth/src/lib.rs diff --git a/auth/src/opaque.rs b/crates/auth/src/opaque.rs similarity index 100% rename from auth/src/opaque.rs rename to crates/auth/src/opaque.rs diff --git a/crates/domain/Cargo.toml b/crates/domain/Cargo.toml index 357eecf..8670b57 100644 --- a/crates/domain/Cargo.toml +++ b/crates/domain/Cargo.toml @@ -36,7 +36,7 @@ default-features = false version = "0.24" [dependencies.lldap_auth] -path = "../../auth" +path = "../auth" features = ["opaque_server", "opaque_client", "sea_orm"] [dependencies.sea-orm] diff --git a/migration-tool/Cargo.toml b/migration-tool/Cargo.toml index 43b4eff..15e0dcf 100644 --- a/migration-tool/Cargo.toml +++ b/migration-tool/Cargo.toml @@ -18,7 +18,7 @@ serde_json = "1" smallvec = "*" [dependencies.lldap_auth] -path = "../auth" +path = "../crates/auth" features = ["opaque_client"] [dependencies.graphql_client] diff --git a/server/Cargo.toml b/server/Cargo.toml index 5195085..55346f9 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -81,7 +81,7 @@ default-features = false version = "0.10.1" [dependencies.lldap_auth] -path = "../auth" +path = "../crates/auth" features = ["opaque_server", "opaque_client", "sea_orm"] [dependencies.lldap_domain] diff --git a/set-password/Cargo.toml b/set-password/Cargo.toml index 57632d1..6bbe464 100644 --- a/set-password/Cargo.toml +++ b/set-password/Cargo.toml @@ -21,7 +21,7 @@ features = ["std", "color", "suggestions", "derive", "env"] version = "4" [dependencies.lldap_auth] -path = "../auth" +path = "../crates/auth" features = ["opaque_client"] [dependencies.reqwest]