From 59b8389ff30d61fbd0c3219bcf2634fc1ce162c2 Mon Sep 17 00:00:00 2001 From: Szepesi Tibor Date: Sat, 17 Aug 2024 14:14:41 +0200 Subject: [PATCH] Flatten folder structure (#93) --- iam-common/Cargo.toml | 3 +++ iam-common/{src => }/app.rs | 0 iam-common/{src => }/database.rs | 0 iam-common/{src => }/error/constants.rs | 0 iam-common/{src => }/error/mod.rs | 0 iam-common/{src => }/id.rs | 0 iam-common/{src => }/keys/jwt.rs | 0 iam-common/{src => }/keys/key.rs | 0 iam-common/{src => }/keys/manager.rs | 0 iam-common/{src => }/keys/mod.rs | 0 iam-common/{src => }/lib.rs | 0 iam-common/{src => }/password.rs | 0 iam-common/{src => }/user.rs | 0 iam-entity/Cargo.toml | 3 +++ iam-entity/{src => }/actions.rs | 0 iam-entity/{src => }/apps.rs | 0 iam-entity/{src => }/groups.rs | 0 iam-entity/{src => }/lib.rs | 0 iam-entity/{src => }/pivot_actions_groups.rs | 0 iam-entity/{src => }/pivot_actions_users.rs | 0 iam-entity/{src => }/pivot_apps_actions.rs | 0 iam-entity/{src => }/pivot_apps_groups.rs | 0 iam-entity/{src => }/pivot_users_groups.rs | 0 iam-entity/{src => }/users.rs | 0 iam-macros/Cargo.toml | 1 + iam-macros/{src => }/lib.rs | 0 iam-migration/Cargo.toml | 2 +- iam-migration/{src => }/lib.rs | 0 iam-migration/{src => }/m20220311_151913_create_users.rs | 0 iam-migration/{src => }/m20220311_152016_create_actions.rs | 0 iam-migration/{src => }/m20220416_053618_create_groups.rs | 0 .../{src => }/m20220416_054159_create_pivot_actions_groups.rs | 0 .../{src => }/m20220416_054659_create_pivot_actions_users.rs | 0 .../m20220416_054675935_create_pivot_users_groups.rs | 0 iam-migration/{src => }/m20220416_060135_add_iam_actions.rs | 0 .../{src => }/m20220822_190837_remove_invite_action.rs | 0 iam-migration/{src => }/m20221007_103449_create_app.rs | 0 iam-migration/{src => }/m20221007_211858_apps_permissions.rs | 0 iam-migration/{src => }/m20230226_221912_apps_permission2.rs | 0 iam-migration/{src => }/main.rs | 0 iam-migration/{src => }/utils.rs | 0 iam/Cargo.toml | 4 +++- iam/{src => }/audit.rs | 0 iam/{src => }/auth/claims.rs | 0 iam/{src => }/auth/layer.rs | 0 iam/{src => }/auth/mod.rs | 0 iam/{src => }/auth/permission.rs | 0 iam/{src => }/handlers/internal/mod.rs | 0 iam/{src => }/handlers/internal/v1/decision.rs | 0 iam/{src => }/handlers/internal/v1/mod.rs | 0 iam/{src => }/handlers/mod.rs | 0 iam/{src => }/handlers/v1/actions/delete.rs | 0 iam/{src => }/handlers/v1/actions/get.rs | 0 iam/{src => }/handlers/v1/actions/gets.rs | 0 iam/{src => }/handlers/v1/actions/mod.rs | 0 iam/{src => }/handlers/v1/actions/post.rs | 0 iam/{src => }/handlers/v1/actions/put.rs | 0 iam/{src => }/handlers/v1/apps/create.rs | 0 iam/{src => }/handlers/v1/apps/list.rs | 0 iam/{src => }/handlers/v1/apps/login.rs | 0 iam/{src => }/handlers/v1/apps/mod.rs | 0 iam/{src => }/handlers/v1/assign.rs | 0 iam/{src => }/handlers/v1/decision.rs | 0 iam/{src => }/handlers/v1/groups/delete.rs | 0 iam/{src => }/handlers/v1/groups/get.rs | 0 iam/{src => }/handlers/v1/groups/list.rs | 0 iam/{src => }/handlers/v1/groups/mod.rs | 0 iam/{src => }/handlers/v1/groups/post.rs | 0 iam/{src => }/handlers/v1/groups/put.rs | 0 iam/{src => }/handlers/v1/mod.rs | 0 iam/{src => }/handlers/v1/users/delete.rs | 0 iam/{src => }/handlers/v1/users/gets.rs | 0 iam/{src => }/handlers/v1/users/id/actions.rs | 0 iam/{src => }/handlers/v1/users/id/get.rs | 0 iam/{src => }/handlers/v1/users/id/mod.rs | 0 iam/{src => }/handlers/v1/users/login.rs | 0 iam/{src => }/handlers/v1/users/mod.rs | 0 iam/{src => }/handlers/v1/users/post.rs | 0 iam/{src => }/handlers/v1/users/register.rs | 0 iam/{src => }/handlers/well_known/jwks.rs | 0 iam/{src => }/handlers/well_known/mod.rs | 0 iam/{src => }/json.rs | 0 iam/{src => }/lib.rs | 0 iam/{src => }/main.rs | 0 iam/{src => }/middlewares/mod.rs | 0 iam/{src => }/middlewares/request_id.rs | 0 iam/{src => }/shared.rs | 0 iam/{src => }/signal.rs | 0 iam/{src => }/utils/db.rs | 0 iam/{src => }/utils/mod.rs | 0 iam/{src => }/utils/request_id.rs | 0 iam/{src => }/utils/set.rs | 0 iam/{src => }/utils/testing.rs | 0 libiam/Cargo.toml | 3 +++ libiam/{src => }/api/app.rs | 0 libiam/{src => }/api/mod.rs | 0 libiam/{src => }/api/user.rs | 0 libiam/{src => }/api/well_known.rs | 0 libiam/{src => }/app.rs | 0 libiam/{src => }/jwt.rs | 0 libiam/{src => }/lib.rs | 0 libiam/{src => }/testing/actions.rs | 0 libiam/{src => }/testing/apps.rs | 0 libiam/{src => }/testing/db.rs | 0 libiam/{src => }/testing/mod.rs | 0 libiam/{src => }/testing/users.rs | 0 libiam/{src => }/user.rs | 0 107 files changed, 14 insertions(+), 2 deletions(-) rename iam-common/{src => }/app.rs (100%) rename iam-common/{src => }/database.rs (100%) rename iam-common/{src => }/error/constants.rs (100%) rename iam-common/{src => }/error/mod.rs (100%) rename iam-common/{src => }/id.rs (100%) rename iam-common/{src => }/keys/jwt.rs (100%) rename iam-common/{src => }/keys/key.rs (100%) rename iam-common/{src => }/keys/manager.rs (100%) rename iam-common/{src => }/keys/mod.rs (100%) rename iam-common/{src => }/lib.rs (100%) rename iam-common/{src => }/password.rs (100%) rename iam-common/{src => }/user.rs (100%) rename iam-entity/{src => }/actions.rs (100%) rename iam-entity/{src => }/apps.rs (100%) rename iam-entity/{src => }/groups.rs (100%) rename iam-entity/{src => }/lib.rs (100%) rename iam-entity/{src => }/pivot_actions_groups.rs (100%) rename iam-entity/{src => }/pivot_actions_users.rs (100%) rename iam-entity/{src => }/pivot_apps_actions.rs (100%) rename iam-entity/{src => }/pivot_apps_groups.rs (100%) rename iam-entity/{src => }/pivot_users_groups.rs (100%) rename iam-entity/{src => }/users.rs (100%) rename iam-macros/{src => }/lib.rs (100%) rename iam-migration/{src => }/lib.rs (100%) rename iam-migration/{src => }/m20220311_151913_create_users.rs (100%) rename iam-migration/{src => }/m20220311_152016_create_actions.rs (100%) rename iam-migration/{src => }/m20220416_053618_create_groups.rs (100%) rename iam-migration/{src => }/m20220416_054159_create_pivot_actions_groups.rs (100%) rename iam-migration/{src => }/m20220416_054659_create_pivot_actions_users.rs (100%) rename iam-migration/{src => }/m20220416_054675935_create_pivot_users_groups.rs (100%) rename iam-migration/{src => }/m20220416_060135_add_iam_actions.rs (100%) rename iam-migration/{src => }/m20220822_190837_remove_invite_action.rs (100%) rename iam-migration/{src => }/m20221007_103449_create_app.rs (100%) rename iam-migration/{src => }/m20221007_211858_apps_permissions.rs (100%) rename iam-migration/{src => }/m20230226_221912_apps_permission2.rs (100%) rename iam-migration/{src => }/main.rs (100%) rename iam-migration/{src => }/utils.rs (100%) rename iam/{src => }/audit.rs (100%) rename iam/{src => }/auth/claims.rs (100%) rename iam/{src => }/auth/layer.rs (100%) rename iam/{src => }/auth/mod.rs (100%) rename iam/{src => }/auth/permission.rs (100%) rename iam/{src => }/handlers/internal/mod.rs (100%) rename iam/{src => }/handlers/internal/v1/decision.rs (100%) rename iam/{src => }/handlers/internal/v1/mod.rs (100%) rename iam/{src => }/handlers/mod.rs (100%) rename iam/{src => }/handlers/v1/actions/delete.rs (100%) rename iam/{src => }/handlers/v1/actions/get.rs (100%) rename iam/{src => }/handlers/v1/actions/gets.rs (100%) rename iam/{src => }/handlers/v1/actions/mod.rs (100%) rename iam/{src => }/handlers/v1/actions/post.rs (100%) rename iam/{src => }/handlers/v1/actions/put.rs (100%) rename iam/{src => }/handlers/v1/apps/create.rs (100%) rename iam/{src => }/handlers/v1/apps/list.rs (100%) rename iam/{src => }/handlers/v1/apps/login.rs (100%) rename iam/{src => }/handlers/v1/apps/mod.rs (100%) rename iam/{src => }/handlers/v1/assign.rs (100%) rename iam/{src => }/handlers/v1/decision.rs (100%) rename iam/{src => }/handlers/v1/groups/delete.rs (100%) rename iam/{src => }/handlers/v1/groups/get.rs (100%) rename iam/{src => }/handlers/v1/groups/list.rs (100%) rename iam/{src => }/handlers/v1/groups/mod.rs (100%) rename iam/{src => }/handlers/v1/groups/post.rs (100%) rename iam/{src => }/handlers/v1/groups/put.rs (100%) rename iam/{src => }/handlers/v1/mod.rs (100%) rename iam/{src => }/handlers/v1/users/delete.rs (100%) rename iam/{src => }/handlers/v1/users/gets.rs (100%) rename iam/{src => }/handlers/v1/users/id/actions.rs (100%) rename iam/{src => }/handlers/v1/users/id/get.rs (100%) rename iam/{src => }/handlers/v1/users/id/mod.rs (100%) rename iam/{src => }/handlers/v1/users/login.rs (100%) rename iam/{src => }/handlers/v1/users/mod.rs (100%) rename iam/{src => }/handlers/v1/users/post.rs (100%) rename iam/{src => }/handlers/v1/users/register.rs (100%) rename iam/{src => }/handlers/well_known/jwks.rs (100%) rename iam/{src => }/handlers/well_known/mod.rs (100%) rename iam/{src => }/json.rs (100%) rename iam/{src => }/lib.rs (100%) rename iam/{src => }/main.rs (100%) rename iam/{src => }/middlewares/mod.rs (100%) rename iam/{src => }/middlewares/request_id.rs (100%) rename iam/{src => }/shared.rs (100%) rename iam/{src => }/signal.rs (100%) rename iam/{src => }/utils/db.rs (100%) rename iam/{src => }/utils/mod.rs (100%) rename iam/{src => }/utils/request_id.rs (100%) rename iam/{src => }/utils/set.rs (100%) rename iam/{src => }/utils/testing.rs (100%) rename libiam/{src => }/api/app.rs (100%) rename libiam/{src => }/api/mod.rs (100%) rename libiam/{src => }/api/user.rs (100%) rename libiam/{src => }/api/well_known.rs (100%) rename libiam/{src => }/app.rs (100%) rename libiam/{src => }/jwt.rs (100%) rename libiam/{src => }/lib.rs (100%) rename libiam/{src => }/testing/actions.rs (100%) rename libiam/{src => }/testing/apps.rs (100%) rename libiam/{src => }/testing/db.rs (100%) rename libiam/{src => }/testing/mod.rs (100%) rename libiam/{src => }/testing/users.rs (100%) rename libiam/{src => }/user.rs (100%) diff --git a/iam-common/Cargo.toml b/iam-common/Cargo.toml index 5df7923..16ccd07 100644 --- a/iam-common/Cargo.toml +++ b/iam-common/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" license-file.workspace = true +[lib] +path = "./lib.rs" + [dependencies] chrono = { workspace = true, features = ["clock"] } uuid.workspace = true diff --git a/iam-common/src/app.rs b/iam-common/app.rs similarity index 100% rename from iam-common/src/app.rs rename to iam-common/app.rs diff --git a/iam-common/src/database.rs b/iam-common/database.rs similarity index 100% rename from iam-common/src/database.rs rename to iam-common/database.rs diff --git a/iam-common/src/error/constants.rs b/iam-common/error/constants.rs similarity index 100% rename from iam-common/src/error/constants.rs rename to iam-common/error/constants.rs diff --git a/iam-common/src/error/mod.rs b/iam-common/error/mod.rs similarity index 100% rename from iam-common/src/error/mod.rs rename to iam-common/error/mod.rs diff --git a/iam-common/src/id.rs b/iam-common/id.rs similarity index 100% rename from iam-common/src/id.rs rename to iam-common/id.rs diff --git a/iam-common/src/keys/jwt.rs b/iam-common/keys/jwt.rs similarity index 100% rename from iam-common/src/keys/jwt.rs rename to iam-common/keys/jwt.rs diff --git a/iam-common/src/keys/key.rs b/iam-common/keys/key.rs similarity index 100% rename from iam-common/src/keys/key.rs rename to iam-common/keys/key.rs diff --git a/iam-common/src/keys/manager.rs b/iam-common/keys/manager.rs similarity index 100% rename from iam-common/src/keys/manager.rs rename to iam-common/keys/manager.rs diff --git a/iam-common/src/keys/mod.rs b/iam-common/keys/mod.rs similarity index 100% rename from iam-common/src/keys/mod.rs rename to iam-common/keys/mod.rs diff --git a/iam-common/src/lib.rs b/iam-common/lib.rs similarity index 100% rename from iam-common/src/lib.rs rename to iam-common/lib.rs diff --git a/iam-common/src/password.rs b/iam-common/password.rs similarity index 100% rename from iam-common/src/password.rs rename to iam-common/password.rs diff --git a/iam-common/src/user.rs b/iam-common/user.rs similarity index 100% rename from iam-common/src/user.rs rename to iam-common/user.rs diff --git a/iam-entity/Cargo.toml b/iam-entity/Cargo.toml index e081280..4b91aa2 100644 --- a/iam-entity/Cargo.toml +++ b/iam-entity/Cargo.toml @@ -4,5 +4,8 @@ version = "0.1.0" edition = "2021" license-file.workspace = true +[lib] +path = "./lib.rs" + [dependencies] sea-orm.workspace = true diff --git a/iam-entity/src/actions.rs b/iam-entity/actions.rs similarity index 100% rename from iam-entity/src/actions.rs rename to iam-entity/actions.rs diff --git a/iam-entity/src/apps.rs b/iam-entity/apps.rs similarity index 100% rename from iam-entity/src/apps.rs rename to iam-entity/apps.rs diff --git a/iam-entity/src/groups.rs b/iam-entity/groups.rs similarity index 100% rename from iam-entity/src/groups.rs rename to iam-entity/groups.rs diff --git a/iam-entity/src/lib.rs b/iam-entity/lib.rs similarity index 100% rename from iam-entity/src/lib.rs rename to iam-entity/lib.rs diff --git a/iam-entity/src/pivot_actions_groups.rs b/iam-entity/pivot_actions_groups.rs similarity index 100% rename from iam-entity/src/pivot_actions_groups.rs rename to iam-entity/pivot_actions_groups.rs diff --git a/iam-entity/src/pivot_actions_users.rs b/iam-entity/pivot_actions_users.rs similarity index 100% rename from iam-entity/src/pivot_actions_users.rs rename to iam-entity/pivot_actions_users.rs diff --git a/iam-entity/src/pivot_apps_actions.rs b/iam-entity/pivot_apps_actions.rs similarity index 100% rename from iam-entity/src/pivot_apps_actions.rs rename to iam-entity/pivot_apps_actions.rs diff --git a/iam-entity/src/pivot_apps_groups.rs b/iam-entity/pivot_apps_groups.rs similarity index 100% rename from iam-entity/src/pivot_apps_groups.rs rename to iam-entity/pivot_apps_groups.rs diff --git a/iam-entity/src/pivot_users_groups.rs b/iam-entity/pivot_users_groups.rs similarity index 100% rename from iam-entity/src/pivot_users_groups.rs rename to iam-entity/pivot_users_groups.rs diff --git a/iam-entity/src/users.rs b/iam-entity/users.rs similarity index 100% rename from iam-entity/src/users.rs rename to iam-entity/users.rs diff --git a/iam-macros/Cargo.toml b/iam-macros/Cargo.toml index dcac4e6..d524293 100644 --- a/iam-macros/Cargo.toml +++ b/iam-macros/Cargo.toml @@ -5,6 +5,7 @@ edition = "2021" license-file.workspace = true [lib] +path = "./lib.rs" proc-macro = true [dependencies] diff --git a/iam-macros/src/lib.rs b/iam-macros/lib.rs similarity index 100% rename from iam-macros/src/lib.rs rename to iam-macros/lib.rs diff --git a/iam-migration/Cargo.toml b/iam-migration/Cargo.toml index 717ed5c..6aacd22 100644 --- a/iam-migration/Cargo.toml +++ b/iam-migration/Cargo.toml @@ -7,7 +7,7 @@ license-file.workspace = true [lib] name = "migration" -path = "src/lib.rs" +path = "lib.rs" [dependencies] sea-orm-migration = { version = "1.0.0" } diff --git a/iam-migration/src/lib.rs b/iam-migration/lib.rs similarity index 100% rename from iam-migration/src/lib.rs rename to iam-migration/lib.rs diff --git a/iam-migration/src/m20220311_151913_create_users.rs b/iam-migration/m20220311_151913_create_users.rs similarity index 100% rename from iam-migration/src/m20220311_151913_create_users.rs rename to iam-migration/m20220311_151913_create_users.rs diff --git a/iam-migration/src/m20220311_152016_create_actions.rs b/iam-migration/m20220311_152016_create_actions.rs similarity index 100% rename from iam-migration/src/m20220311_152016_create_actions.rs rename to iam-migration/m20220311_152016_create_actions.rs diff --git a/iam-migration/src/m20220416_053618_create_groups.rs b/iam-migration/m20220416_053618_create_groups.rs similarity index 100% rename from iam-migration/src/m20220416_053618_create_groups.rs rename to iam-migration/m20220416_053618_create_groups.rs diff --git a/iam-migration/src/m20220416_054159_create_pivot_actions_groups.rs b/iam-migration/m20220416_054159_create_pivot_actions_groups.rs similarity index 100% rename from iam-migration/src/m20220416_054159_create_pivot_actions_groups.rs rename to iam-migration/m20220416_054159_create_pivot_actions_groups.rs diff --git a/iam-migration/src/m20220416_054659_create_pivot_actions_users.rs b/iam-migration/m20220416_054659_create_pivot_actions_users.rs similarity index 100% rename from iam-migration/src/m20220416_054659_create_pivot_actions_users.rs rename to iam-migration/m20220416_054659_create_pivot_actions_users.rs diff --git a/iam-migration/src/m20220416_054675935_create_pivot_users_groups.rs b/iam-migration/m20220416_054675935_create_pivot_users_groups.rs similarity index 100% rename from iam-migration/src/m20220416_054675935_create_pivot_users_groups.rs rename to iam-migration/m20220416_054675935_create_pivot_users_groups.rs diff --git a/iam-migration/src/m20220416_060135_add_iam_actions.rs b/iam-migration/m20220416_060135_add_iam_actions.rs similarity index 100% rename from iam-migration/src/m20220416_060135_add_iam_actions.rs rename to iam-migration/m20220416_060135_add_iam_actions.rs diff --git a/iam-migration/src/m20220822_190837_remove_invite_action.rs b/iam-migration/m20220822_190837_remove_invite_action.rs similarity index 100% rename from iam-migration/src/m20220822_190837_remove_invite_action.rs rename to iam-migration/m20220822_190837_remove_invite_action.rs diff --git a/iam-migration/src/m20221007_103449_create_app.rs b/iam-migration/m20221007_103449_create_app.rs similarity index 100% rename from iam-migration/src/m20221007_103449_create_app.rs rename to iam-migration/m20221007_103449_create_app.rs diff --git a/iam-migration/src/m20221007_211858_apps_permissions.rs b/iam-migration/m20221007_211858_apps_permissions.rs similarity index 100% rename from iam-migration/src/m20221007_211858_apps_permissions.rs rename to iam-migration/m20221007_211858_apps_permissions.rs diff --git a/iam-migration/src/m20230226_221912_apps_permission2.rs b/iam-migration/m20230226_221912_apps_permission2.rs similarity index 100% rename from iam-migration/src/m20230226_221912_apps_permission2.rs rename to iam-migration/m20230226_221912_apps_permission2.rs diff --git a/iam-migration/src/main.rs b/iam-migration/main.rs similarity index 100% rename from iam-migration/src/main.rs rename to iam-migration/main.rs diff --git a/iam-migration/src/utils.rs b/iam-migration/utils.rs similarity index 100% rename from iam-migration/src/utils.rs rename to iam-migration/utils.rs diff --git a/iam/Cargo.toml b/iam/Cargo.toml index 855c056..9e7c673 100644 --- a/iam/Cargo.toml +++ b/iam/Cargo.toml @@ -3,9 +3,11 @@ name = "iam" version = "0.1.0" edition = "2021" publish = false -default-run = "iam" license-file.workspace = true +[lib] +path = "./lib.rs" + [dependencies] iam-entity.workspace = true sea-orm = { workspace = true, features = ["mock"] } diff --git a/iam/src/audit.rs b/iam/audit.rs similarity index 100% rename from iam/src/audit.rs rename to iam/audit.rs diff --git a/iam/src/auth/claims.rs b/iam/auth/claims.rs similarity index 100% rename from iam/src/auth/claims.rs rename to iam/auth/claims.rs diff --git a/iam/src/auth/layer.rs b/iam/auth/layer.rs similarity index 100% rename from iam/src/auth/layer.rs rename to iam/auth/layer.rs diff --git a/iam/src/auth/mod.rs b/iam/auth/mod.rs similarity index 100% rename from iam/src/auth/mod.rs rename to iam/auth/mod.rs diff --git a/iam/src/auth/permission.rs b/iam/auth/permission.rs similarity index 100% rename from iam/src/auth/permission.rs rename to iam/auth/permission.rs diff --git a/iam/src/handlers/internal/mod.rs b/iam/handlers/internal/mod.rs similarity index 100% rename from iam/src/handlers/internal/mod.rs rename to iam/handlers/internal/mod.rs diff --git a/iam/src/handlers/internal/v1/decision.rs b/iam/handlers/internal/v1/decision.rs similarity index 100% rename from iam/src/handlers/internal/v1/decision.rs rename to iam/handlers/internal/v1/decision.rs diff --git a/iam/src/handlers/internal/v1/mod.rs b/iam/handlers/internal/v1/mod.rs similarity index 100% rename from iam/src/handlers/internal/v1/mod.rs rename to iam/handlers/internal/v1/mod.rs diff --git a/iam/src/handlers/mod.rs b/iam/handlers/mod.rs similarity index 100% rename from iam/src/handlers/mod.rs rename to iam/handlers/mod.rs diff --git a/iam/src/handlers/v1/actions/delete.rs b/iam/handlers/v1/actions/delete.rs similarity index 100% rename from iam/src/handlers/v1/actions/delete.rs rename to iam/handlers/v1/actions/delete.rs diff --git a/iam/src/handlers/v1/actions/get.rs b/iam/handlers/v1/actions/get.rs similarity index 100% rename from iam/src/handlers/v1/actions/get.rs rename to iam/handlers/v1/actions/get.rs diff --git a/iam/src/handlers/v1/actions/gets.rs b/iam/handlers/v1/actions/gets.rs similarity index 100% rename from iam/src/handlers/v1/actions/gets.rs rename to iam/handlers/v1/actions/gets.rs diff --git a/iam/src/handlers/v1/actions/mod.rs b/iam/handlers/v1/actions/mod.rs similarity index 100% rename from iam/src/handlers/v1/actions/mod.rs rename to iam/handlers/v1/actions/mod.rs diff --git a/iam/src/handlers/v1/actions/post.rs b/iam/handlers/v1/actions/post.rs similarity index 100% rename from iam/src/handlers/v1/actions/post.rs rename to iam/handlers/v1/actions/post.rs diff --git a/iam/src/handlers/v1/actions/put.rs b/iam/handlers/v1/actions/put.rs similarity index 100% rename from iam/src/handlers/v1/actions/put.rs rename to iam/handlers/v1/actions/put.rs diff --git a/iam/src/handlers/v1/apps/create.rs b/iam/handlers/v1/apps/create.rs similarity index 100% rename from iam/src/handlers/v1/apps/create.rs rename to iam/handlers/v1/apps/create.rs diff --git a/iam/src/handlers/v1/apps/list.rs b/iam/handlers/v1/apps/list.rs similarity index 100% rename from iam/src/handlers/v1/apps/list.rs rename to iam/handlers/v1/apps/list.rs diff --git a/iam/src/handlers/v1/apps/login.rs b/iam/handlers/v1/apps/login.rs similarity index 100% rename from iam/src/handlers/v1/apps/login.rs rename to iam/handlers/v1/apps/login.rs diff --git a/iam/src/handlers/v1/apps/mod.rs b/iam/handlers/v1/apps/mod.rs similarity index 100% rename from iam/src/handlers/v1/apps/mod.rs rename to iam/handlers/v1/apps/mod.rs diff --git a/iam/src/handlers/v1/assign.rs b/iam/handlers/v1/assign.rs similarity index 100% rename from iam/src/handlers/v1/assign.rs rename to iam/handlers/v1/assign.rs diff --git a/iam/src/handlers/v1/decision.rs b/iam/handlers/v1/decision.rs similarity index 100% rename from iam/src/handlers/v1/decision.rs rename to iam/handlers/v1/decision.rs diff --git a/iam/src/handlers/v1/groups/delete.rs b/iam/handlers/v1/groups/delete.rs similarity index 100% rename from iam/src/handlers/v1/groups/delete.rs rename to iam/handlers/v1/groups/delete.rs diff --git a/iam/src/handlers/v1/groups/get.rs b/iam/handlers/v1/groups/get.rs similarity index 100% rename from iam/src/handlers/v1/groups/get.rs rename to iam/handlers/v1/groups/get.rs diff --git a/iam/src/handlers/v1/groups/list.rs b/iam/handlers/v1/groups/list.rs similarity index 100% rename from iam/src/handlers/v1/groups/list.rs rename to iam/handlers/v1/groups/list.rs diff --git a/iam/src/handlers/v1/groups/mod.rs b/iam/handlers/v1/groups/mod.rs similarity index 100% rename from iam/src/handlers/v1/groups/mod.rs rename to iam/handlers/v1/groups/mod.rs diff --git a/iam/src/handlers/v1/groups/post.rs b/iam/handlers/v1/groups/post.rs similarity index 100% rename from iam/src/handlers/v1/groups/post.rs rename to iam/handlers/v1/groups/post.rs diff --git a/iam/src/handlers/v1/groups/put.rs b/iam/handlers/v1/groups/put.rs similarity index 100% rename from iam/src/handlers/v1/groups/put.rs rename to iam/handlers/v1/groups/put.rs diff --git a/iam/src/handlers/v1/mod.rs b/iam/handlers/v1/mod.rs similarity index 100% rename from iam/src/handlers/v1/mod.rs rename to iam/handlers/v1/mod.rs diff --git a/iam/src/handlers/v1/users/delete.rs b/iam/handlers/v1/users/delete.rs similarity index 100% rename from iam/src/handlers/v1/users/delete.rs rename to iam/handlers/v1/users/delete.rs diff --git a/iam/src/handlers/v1/users/gets.rs b/iam/handlers/v1/users/gets.rs similarity index 100% rename from iam/src/handlers/v1/users/gets.rs rename to iam/handlers/v1/users/gets.rs diff --git a/iam/src/handlers/v1/users/id/actions.rs b/iam/handlers/v1/users/id/actions.rs similarity index 100% rename from iam/src/handlers/v1/users/id/actions.rs rename to iam/handlers/v1/users/id/actions.rs diff --git a/iam/src/handlers/v1/users/id/get.rs b/iam/handlers/v1/users/id/get.rs similarity index 100% rename from iam/src/handlers/v1/users/id/get.rs rename to iam/handlers/v1/users/id/get.rs diff --git a/iam/src/handlers/v1/users/id/mod.rs b/iam/handlers/v1/users/id/mod.rs similarity index 100% rename from iam/src/handlers/v1/users/id/mod.rs rename to iam/handlers/v1/users/id/mod.rs diff --git a/iam/src/handlers/v1/users/login.rs b/iam/handlers/v1/users/login.rs similarity index 100% rename from iam/src/handlers/v1/users/login.rs rename to iam/handlers/v1/users/login.rs diff --git a/iam/src/handlers/v1/users/mod.rs b/iam/handlers/v1/users/mod.rs similarity index 100% rename from iam/src/handlers/v1/users/mod.rs rename to iam/handlers/v1/users/mod.rs diff --git a/iam/src/handlers/v1/users/post.rs b/iam/handlers/v1/users/post.rs similarity index 100% rename from iam/src/handlers/v1/users/post.rs rename to iam/handlers/v1/users/post.rs diff --git a/iam/src/handlers/v1/users/register.rs b/iam/handlers/v1/users/register.rs similarity index 100% rename from iam/src/handlers/v1/users/register.rs rename to iam/handlers/v1/users/register.rs diff --git a/iam/src/handlers/well_known/jwks.rs b/iam/handlers/well_known/jwks.rs similarity index 100% rename from iam/src/handlers/well_known/jwks.rs rename to iam/handlers/well_known/jwks.rs diff --git a/iam/src/handlers/well_known/mod.rs b/iam/handlers/well_known/mod.rs similarity index 100% rename from iam/src/handlers/well_known/mod.rs rename to iam/handlers/well_known/mod.rs diff --git a/iam/src/json.rs b/iam/json.rs similarity index 100% rename from iam/src/json.rs rename to iam/json.rs diff --git a/iam/src/lib.rs b/iam/lib.rs similarity index 100% rename from iam/src/lib.rs rename to iam/lib.rs diff --git a/iam/src/main.rs b/iam/main.rs similarity index 100% rename from iam/src/main.rs rename to iam/main.rs diff --git a/iam/src/middlewares/mod.rs b/iam/middlewares/mod.rs similarity index 100% rename from iam/src/middlewares/mod.rs rename to iam/middlewares/mod.rs diff --git a/iam/src/middlewares/request_id.rs b/iam/middlewares/request_id.rs similarity index 100% rename from iam/src/middlewares/request_id.rs rename to iam/middlewares/request_id.rs diff --git a/iam/src/shared.rs b/iam/shared.rs similarity index 100% rename from iam/src/shared.rs rename to iam/shared.rs diff --git a/iam/src/signal.rs b/iam/signal.rs similarity index 100% rename from iam/src/signal.rs rename to iam/signal.rs diff --git a/iam/src/utils/db.rs b/iam/utils/db.rs similarity index 100% rename from iam/src/utils/db.rs rename to iam/utils/db.rs diff --git a/iam/src/utils/mod.rs b/iam/utils/mod.rs similarity index 100% rename from iam/src/utils/mod.rs rename to iam/utils/mod.rs diff --git a/iam/src/utils/request_id.rs b/iam/utils/request_id.rs similarity index 100% rename from iam/src/utils/request_id.rs rename to iam/utils/request_id.rs diff --git a/iam/src/utils/set.rs b/iam/utils/set.rs similarity index 100% rename from iam/src/utils/set.rs rename to iam/utils/set.rs diff --git a/iam/src/utils/testing.rs b/iam/utils/testing.rs similarity index 100% rename from iam/src/utils/testing.rs rename to iam/utils/testing.rs diff --git a/libiam/Cargo.toml b/libiam/Cargo.toml index 1c5ed07..356b22f 100644 --- a/libiam/Cargo.toml +++ b/libiam/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" license-file.workspace = true +[lib] +path = "./lib.rs" + [dependencies] reqwest = { version = "0.12.5", default-features = false, features = ["json", "rustls-tls"] } serde.workspace = true diff --git a/libiam/src/api/app.rs b/libiam/api/app.rs similarity index 100% rename from libiam/src/api/app.rs rename to libiam/api/app.rs diff --git a/libiam/src/api/mod.rs b/libiam/api/mod.rs similarity index 100% rename from libiam/src/api/mod.rs rename to libiam/api/mod.rs diff --git a/libiam/src/api/user.rs b/libiam/api/user.rs similarity index 100% rename from libiam/src/api/user.rs rename to libiam/api/user.rs diff --git a/libiam/src/api/well_known.rs b/libiam/api/well_known.rs similarity index 100% rename from libiam/src/api/well_known.rs rename to libiam/api/well_known.rs diff --git a/libiam/src/app.rs b/libiam/app.rs similarity index 100% rename from libiam/src/app.rs rename to libiam/app.rs diff --git a/libiam/src/jwt.rs b/libiam/jwt.rs similarity index 100% rename from libiam/src/jwt.rs rename to libiam/jwt.rs diff --git a/libiam/src/lib.rs b/libiam/lib.rs similarity index 100% rename from libiam/src/lib.rs rename to libiam/lib.rs diff --git a/libiam/src/testing/actions.rs b/libiam/testing/actions.rs similarity index 100% rename from libiam/src/testing/actions.rs rename to libiam/testing/actions.rs diff --git a/libiam/src/testing/apps.rs b/libiam/testing/apps.rs similarity index 100% rename from libiam/src/testing/apps.rs rename to libiam/testing/apps.rs diff --git a/libiam/src/testing/db.rs b/libiam/testing/db.rs similarity index 100% rename from libiam/src/testing/db.rs rename to libiam/testing/db.rs diff --git a/libiam/src/testing/mod.rs b/libiam/testing/mod.rs similarity index 100% rename from libiam/src/testing/mod.rs rename to libiam/testing/mod.rs diff --git a/libiam/src/testing/users.rs b/libiam/testing/users.rs similarity index 100% rename from libiam/src/testing/users.rs rename to libiam/testing/users.rs diff --git a/libiam/src/user.rs b/libiam/user.rs similarity index 100% rename from libiam/src/user.rs rename to libiam/user.rs