From 05abfbccadfd95934e53d4fb579f6e87cdeca015 Mon Sep 17 00:00:00 2001 From: Josh McKinney Date: Sun, 20 Oct 2024 06:29:56 -0700 Subject: [PATCH 1/2] refactor: move loco-rs crate under loco-rs folder this cleans up the root and makes it easier to focus on just one crate at a time --- Cargo.toml | 156 +----------------- loco-extras/Cargo.toml | 7 +- loco-rs/README.md | 1 + loco-rs/cargo.toml | 153 +++++++++++++++++ {src => loco-rs/src}/app.rs | 0 {src => loco-rs/src}/auth/jwt.rs | 0 {src => loco-rs/src}/auth/mod.rs | 0 ...o_rs__auth__jwt__tests__token expired.snap | 0 ..._tests__valid token and custom claims.snap | 0 ...oco_rs__auth__jwt__tests__valid token.snap | 0 {src => loco-rs/src}/banner.rs | 0 {src => loco-rs/src}/bgworker/mod.rs | 0 {src => loco-rs/src}/bgworker/pg.rs | 0 {src => loco-rs/src}/bgworker/skq.rs | 0 ...__skq__tests__default_custom_queues-2.snap | 0 ...__skq__tests__default_custom_queues-3.snap | 0 ...er__skq__tests__default_custom_queues.snap | 0 {src => loco-rs/src}/boot.rs | 0 {src => loco-rs/src}/cache/drivers/inmem.rs | 0 {src => loco-rs/src}/cache/drivers/mod.rs | 0 {src => loco-rs/src}/cache/drivers/null.rs | 0 {src => loco-rs/src}/cache/mod.rs | 0 {src => loco-rs/src}/cli.rs | 0 {src => loco-rs/src}/config.rs | 0 {src => loco-rs/src}/controller/app_routes.rs | 0 {src => loco-rs/src}/controller/backtrace.rs | 0 {src => loco-rs/src}/controller/channels.rs | 0 {src => loco-rs/src}/controller/describe.rs | 0 {src => loco-rs/src}/controller/format.rs | 0 {src => loco-rs/src}/controller/health.rs | 0 .../middleware/_archive/content_etag.rs | 0 .../src}/controller/middleware/auth.rs | 0 .../src}/controller/middleware/catch_panic.rs | 0 .../src}/controller/middleware/compression.rs | 0 .../src}/controller/middleware/cors.rs | 0 .../src}/controller/middleware/etag.rs | 0 .../src}/controller/middleware/fallback.html | 0 .../src}/controller/middleware/fallback.rs | 0 .../src}/controller/middleware/format.rs | 0 .../controller/middleware/limit_payload.rs | 0 .../src}/controller/middleware/logger.rs | 0 .../src}/controller/middleware/mod.rs | 0 .../src}/controller/middleware/powered_by.rs | 0 .../src}/controller/middleware/remote_ip.rs | 0 .../src}/controller/middleware/request_id.rs | 0 .../controller/middleware/secure_headers.json | 0 .../controller/middleware/secure_headers.rs | 0 ...are__auth__tests__extract_from_bearer.snap | 0 ...are__auth__tests__extract_from_cookie.snap | 0 ...re__auth__tests__extract_from_default.snap | 0 ...ware__auth__tests__extract_from_query.snap | 0 ...ddleware__cors__tests__cors_[default].snap | 0 ...ors__tests__cors_[with_allow_headers].snap | 0 ...ors__tests__cors_[with_allow_methods].snap | 0 ...are__cors__tests__cors_[with_max_age].snap | 0 ...ddleware__remote_ip__tests__parsing-2.snap | 0 ...ddleware__remote_ip__tests__parsing-3.snap | 0 ...ddleware__remote_ip__tests__parsing-4.snap | 0 ...ddleware__remote_ip__tests__parsing-5.snap | 0 ...ddleware__remote_ip__tests__parsing-6.snap | 0 ...ddleware__remote_ip__tests__parsing-7.snap | 0 ...ddleware__remote_ip__tests__parsing-8.snap | 0 ...middleware__remote_ip__tests__parsing.snap | 0 ...__tests__create_or_fetch_request_id-2.snap | 0 ...__tests__create_or_fetch_request_id-3.snap | 0 ...__tests__create_or_fetch_request_id-4.snap | 0 ...__tests__create_or_fetch_request_id-5.snap | 0 ...id__tests__create_or_fetch_request_id.snap | 0 ..._headers__tests__can_override_headers.snap | 0 ...ecure_headers__tests__can_set_headers.snap | 0 ...ders__tests__default_is_github_preset.snap | 0 .../controller/middleware/static_assets.rs | 0 .../src}/controller/middleware/timeout.rs | 0 {src => loco-rs/src}/controller/mod.rs | 0 {src => loco-rs/src}/controller/ping.rs | 0 {src => loco-rs/src}/controller/routes.rs | 0 ...troller__app_routes__tests__[[slash]].snap | 0 ...__app_routes__tests__[[slash]_health].snap | 0 ...er__app_routes__tests__[[slash]_ping].snap | 0 ...routes__tests__[[slash]api[slash]bar].snap | 0 ...routes__tests__[[slash]api[slash]foo].snap | 0 ...es__tests__[[slash]api[slash]loco-rs].snap | 0 ...outes__tests__[[slash]api[slash]loco].snap | 0 ...app_routes__tests__[[slash]multiple1].snap | 0 ...app_routes__tests__[[slash]multiple2].snap | 0 ...app_routes__tests__[[slash]multiple3].snap | 0 ...slash]normalizer[slash]foo[slash]bar].snap | 0 ...slash]normalizer[slash]loco[slash]rs].snap | 0 ...[slash]normalizer[slash]multiple-end].snap | 0 ...lash]normalizer[slash]multiple-start].snap | 0 ...s__[[slash]normalizer[slash]no-slash].snap | 0 ...pp_routes__tests__[[slash]normalizer].snap | 0 ...rmat__tests__builder_cookies_response.snap | 0 ...format__tests__builder_empty_response.snap | 0 ..._format__tests__builder_html_response.snap | 0 ..._format__tests__builder_json_response.snap | 0 ...mat__tests__builder_redirect_response.snap | 0 ...mat__tests__builder_template_response.snap | 0 ..._format__tests__builder_text_response.snap | 0 ...ormat__tests__builder_view_response-2.snap | 0 ..._format__tests__builder_view_response.snap | 0 ...at__tests__empty_json_response_format.snap | 0 ..._format__tests__empty_response_format.snap | 0 ...__format__tests__html_response_format.snap | 0 ...__format__tests__json_response_format.snap | 0 ...ler__format__tests__redirect_response.snap | 0 ...ler__format__tests__template_response.snap | 0 ...__format__tests__text_response_format.snap | 0 ...oller__format__tests__view_response-2.snap | 0 ...troller__format__tests__view_response.snap | 0 .../src}/controller/views/engines.rs | 0 {src => loco-rs/src}/controller/views/mod.rs | 0 .../src}/controller/views/pagination.rs | 0 {src => loco-rs/src}/db.rs | 0 {src => loco-rs/src}/doctor.rs | 0 {src => loco-rs/src}/environment.rs | 0 {src => loco-rs/src}/errors.rs | 0 {src => loco-rs/src}/gen/controller.rs | 0 {src => loco-rs/src}/gen/mappings.json | 0 {src => loco-rs/src}/gen/mod.rs | 0 {src => loco-rs/src}/gen/model.rs | 0 {src => loco-rs/src}/gen/scaffold.rs | 0 .../src}/gen/templates/controller.t | 0 .../gen/templates/controller/api/controller.t | 0 .../src}/gen/templates/controller/api/test.t | 0 .../templates/controller/html/controller.t | 0 .../src}/gen/templates/controller/html/view.t | 0 .../templates/controller/htmx/controller.t | 0 .../src}/gen/templates/controller/htmx/view.t | 0 .../src}/gen/templates/deployment_docker.t | 0 .../gen/templates/deployment_docker_ignore.t | 0 .../src}/gen/templates/deployment_nginx.t | 0 .../src}/gen/templates/deployment_shuttle.t | 0 .../gen/templates/deployment_shuttle_config.t | 0 {src => loco-rs/src}/gen/templates/mailer.t | 0 .../src}/gen/templates/mailer_html.t | 0 .../src}/gen/templates/mailer_sub.t | 0 .../src}/gen/templates/mailer_text.t | 0 .../src}/gen/templates/migration.t | 0 {src => loco-rs/src}/gen/templates/model.t | 0 .../src}/gen/templates/model_test.t | 0 .../src}/gen/templates/request_test.t | 0 .../gen/templates/scaffold/api/controller.t | 0 .../src}/gen/templates/scaffold/api/test.t | 0 .../src}/gen/templates/scaffold/html/base.t | 0 .../gen/templates/scaffold/html/controller.t | 0 .../src}/gen/templates/scaffold/html/view.t | 0 .../gen/templates/scaffold/html/view_create.t | 0 .../gen/templates/scaffold/html/view_edit.t | 0 .../gen/templates/scaffold/html/view_list.t | 0 .../gen/templates/scaffold/html/view_show.t | 0 .../src}/gen/templates/scaffold/htmx/base.t | 0 .../gen/templates/scaffold/htmx/controller.t | 0 .../src}/gen/templates/scaffold/htmx/view.t | 0 .../gen/templates/scaffold/htmx/view_create.t | 0 .../gen/templates/scaffold/htmx/view_edit.t | 0 .../gen/templates/scaffold/htmx/view_list.t | 0 .../gen/templates/scaffold/htmx/view_show.t | 0 .../src}/gen/templates/scheduler.t | 0 {src => loco-rs/src}/gen/templates/task.t | 0 .../src}/gen/templates/task_test.t | 0 {src => loco-rs/src}/gen/templates/worker.t | 0 .../src}/gen/templates/worker_test.t | 0 {src => loco-rs/src}/hash.rs | 0 {src => loco-rs/src}/lib.rs | 0 {src => loco-rs/src}/logger.rs | 0 {src => loco-rs/src}/mailer/email_sender.rs | 0 {src => loco-rs/src}/mailer/mod.rs | 0 ...__email_sender__tests__can_send_email.snap | 0 ..._template__tests__can_render_template.snap | 0 {src => loco-rs/src}/mailer/template.rs | 0 {src => loco-rs/src}/model/mod.rs | 0 .../src}/model/query/dsl/date_range.rs | 0 {src => loco-rs/src}/model/query/dsl/mod.rs | 0 {src => loco-rs/src}/model/query/mod.rs | 0 .../src}/model/query/paginate/mod.rs | 0 {src => loco-rs/src}/prelude.rs | 0 {src => loco-rs/src}/scheduler.rs | 0 {src => loco-rs/src}/schema.rs | 0 .../loco_rs__auth__tests__token expired.snap | 0 .../loco_rs__auth__tests__valid token.snap | 0 ...heduler__tests__can_display_scheduler.snap | 0 ...r__tests__can_prepare_command_[shell].snap | 0 ...er__tests__can_prepare_command_[task].snap | 0 ...__validation__tests__struct-[foo-bar].snap | 0 ...o_rs__validation__tests__struct-[foo].snap | 0 ...orker__tests__default_custom_queues-2.snap | 0 ...orker__tests__default_custom_queues-3.snap | 0 ..._worker__tests__default_custom_queues.snap | 0 {src => loco-rs/src}/storage/contents.rs | 0 {src => loco-rs/src}/storage/drivers/aws.rs | 0 {src => loco-rs/src}/storage/drivers/azure.rs | 0 {src => loco-rs/src}/storage/drivers/gcp.rs | 0 {src => loco-rs/src}/storage/drivers/local.rs | 0 {src => loco-rs/src}/storage/drivers/mem.rs | 0 {src => loco-rs/src}/storage/drivers/mod.rs | 0 {src => loco-rs/src}/storage/drivers/null.rs | 0 .../storage/drivers/object_store_adapter.rs | 0 {src => loco-rs/src}/storage/mod.rs | 0 .../src}/storage/strategies/backup.rs | 0 .../src}/storage/strategies/mirror.rs | 0 .../src}/storage/strategies/mod.rs | 0 .../src}/storage/strategies/single.rs | 0 {src => loco-rs/src}/task.rs | 0 {src => loco-rs/src}/tera.rs | 0 {src => loco-rs/src}/testing.rs | 0 {src => loco-rs/src}/tests_cfg/app.rs | 0 {src => loco-rs/src}/tests_cfg/config.rs | 0 {src => loco-rs/src}/tests_cfg/db.rs | 0 {src => loco-rs/src}/tests_cfg/mod.rs | 0 {src => loco-rs/src}/tests_cfg/task.rs | 0 {src => loco-rs/src}/validation.rs | 0 .../tests}/controller/middlewares.rs | 0 {tests => loco-rs/tests}/controller/mod.rs | 0 .../snapshots/cors_[default]@middlewares.snap | 0 .../cors_[disabled]@middlewares.snap | 0 ...cors_[with_allow_headers]@middlewares.snap | 0 ...cors_[with_allow_methods]@middlewares.snap | 0 .../cors_[with_max_age]@middlewares.snap | 0 .../snapshots/panic@middlewares.snap | 0 ...s_[empty]_overrides[none]@middlewares.snap | 0 ...[Content-Security-Policy]@middlewares.snap | 0 ...rs_[none]_overrides[none]@middlewares.snap | 0 .../fixtures/email_template/test/html.t | 0 .../fixtures/email_template/test/subject.t | 0 .../fixtures/email_template/test/text.t | 0 .../tests}/fixtures/scheduler/scheduler.yaml | 0 {tests => loco-rs/tests}/infra_cfg/mod.rs | 0 {tests => loco-rs/tests}/infra_cfg/server.rs | 0 {tests => loco-rs/tests}/mod.rs | 0 230 files changed, 158 insertions(+), 159 deletions(-) create mode 120000 loco-rs/README.md create mode 100644 loco-rs/cargo.toml rename {src => loco-rs/src}/app.rs (100%) rename {src => loco-rs/src}/auth/jwt.rs (100%) rename {src => loco-rs/src}/auth/mod.rs (100%) rename {src => loco-rs/src}/auth/snapshots/loco_rs__auth__jwt__tests__token expired.snap (100%) rename {src => loco-rs/src}/auth/snapshots/loco_rs__auth__jwt__tests__valid token and custom claims.snap (100%) rename {src => loco-rs/src}/auth/snapshots/loco_rs__auth__jwt__tests__valid token.snap (100%) rename {src => loco-rs/src}/banner.rs (100%) rename {src => loco-rs/src}/bgworker/mod.rs (100%) rename {src => loco-rs/src}/bgworker/pg.rs (100%) rename {src => loco-rs/src}/bgworker/skq.rs (100%) rename {src => loco-rs/src}/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues-2.snap (100%) rename {src => loco-rs/src}/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues-3.snap (100%) rename {src => loco-rs/src}/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues.snap (100%) rename {src => loco-rs/src}/boot.rs (100%) rename {src => loco-rs/src}/cache/drivers/inmem.rs (100%) rename {src => loco-rs/src}/cache/drivers/mod.rs (100%) rename {src => loco-rs/src}/cache/drivers/null.rs (100%) rename {src => loco-rs/src}/cache/mod.rs (100%) rename {src => loco-rs/src}/cli.rs (100%) rename {src => loco-rs/src}/config.rs (100%) rename {src => loco-rs/src}/controller/app_routes.rs (100%) rename {src => loco-rs/src}/controller/backtrace.rs (100%) rename {src => loco-rs/src}/controller/channels.rs (100%) rename {src => loco-rs/src}/controller/describe.rs (100%) rename {src => loco-rs/src}/controller/format.rs (100%) rename {src => loco-rs/src}/controller/health.rs (100%) rename {src => loco-rs/src}/controller/middleware/_archive/content_etag.rs (100%) rename {src => loco-rs/src}/controller/middleware/auth.rs (100%) rename {src => loco-rs/src}/controller/middleware/catch_panic.rs (100%) rename {src => loco-rs/src}/controller/middleware/compression.rs (100%) rename {src => loco-rs/src}/controller/middleware/cors.rs (100%) rename {src => loco-rs/src}/controller/middleware/etag.rs (100%) rename {src => loco-rs/src}/controller/middleware/fallback.html (100%) rename {src => loco-rs/src}/controller/middleware/fallback.rs (100%) rename {src => loco-rs/src}/controller/middleware/format.rs (100%) rename {src => loco-rs/src}/controller/middleware/limit_payload.rs (100%) rename {src => loco-rs/src}/controller/middleware/logger.rs (100%) rename {src => loco-rs/src}/controller/middleware/mod.rs (100%) rename {src => loco-rs/src}/controller/middleware/powered_by.rs (100%) rename {src => loco-rs/src}/controller/middleware/remote_ip.rs (100%) rename {src => loco-rs/src}/controller/middleware/request_id.rs (100%) rename {src => loco-rs/src}/controller/middleware/secure_headers.json (100%) rename {src => loco-rs/src}/controller/middleware/secure_headers.rs (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_bearer.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_cookie.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_default.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_query.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[default].snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_allow_headers].snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_allow_methods].snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_max_age].snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-2.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-3.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-4.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-5.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-6.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-7.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-8.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-2.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-3.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-4.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-5.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__can_override_headers.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__can_set_headers.snap (100%) rename {src => loco-rs/src}/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__default_is_github_preset.snap (100%) rename {src => loco-rs/src}/controller/middleware/static_assets.rs (100%) rename {src => loco-rs/src}/controller/middleware/timeout.rs (100%) rename {src => loco-rs/src}/controller/mod.rs (100%) rename {src => loco-rs/src}/controller/ping.rs (100%) rename {src => loco-rs/src}/controller/routes.rs (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]_health].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]_ping].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]bar].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]foo].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]loco-rs].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]loco].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple1].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple2].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple3].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]foo[slash]bar].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]loco[slash]rs].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]multiple-end].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]multiple-start].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]no-slash].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer].snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__builder_cookies_response.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__builder_empty_response.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__builder_html_response.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__builder_json_response.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__builder_redirect_response.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__builder_template_response.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__builder_text_response.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__builder_view_response-2.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__builder_view_response.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__empty_json_response_format.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__empty_response_format.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__html_response_format.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__json_response_format.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__redirect_response.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__template_response.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__text_response_format.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__view_response-2.snap (100%) rename {src => loco-rs/src}/controller/snapshots/loco_rs__controller__format__tests__view_response.snap (100%) rename {src => loco-rs/src}/controller/views/engines.rs (100%) rename {src => loco-rs/src}/controller/views/mod.rs (100%) rename {src => loco-rs/src}/controller/views/pagination.rs (100%) rename {src => loco-rs/src}/db.rs (100%) rename {src => loco-rs/src}/doctor.rs (100%) rename {src => loco-rs/src}/environment.rs (100%) rename {src => loco-rs/src}/errors.rs (100%) rename {src => loco-rs/src}/gen/controller.rs (100%) rename {src => loco-rs/src}/gen/mappings.json (100%) rename {src => loco-rs/src}/gen/mod.rs (100%) rename {src => loco-rs/src}/gen/model.rs (100%) rename {src => loco-rs/src}/gen/scaffold.rs (100%) rename {src => loco-rs/src}/gen/templates/controller.t (100%) rename {src => loco-rs/src}/gen/templates/controller/api/controller.t (100%) rename {src => loco-rs/src}/gen/templates/controller/api/test.t (100%) rename {src => loco-rs/src}/gen/templates/controller/html/controller.t (100%) rename {src => loco-rs/src}/gen/templates/controller/html/view.t (100%) rename {src => loco-rs/src}/gen/templates/controller/htmx/controller.t (100%) rename {src => loco-rs/src}/gen/templates/controller/htmx/view.t (100%) rename {src => loco-rs/src}/gen/templates/deployment_docker.t (100%) rename {src => loco-rs/src}/gen/templates/deployment_docker_ignore.t (100%) rename {src => loco-rs/src}/gen/templates/deployment_nginx.t (100%) rename {src => loco-rs/src}/gen/templates/deployment_shuttle.t (100%) rename {src => loco-rs/src}/gen/templates/deployment_shuttle_config.t (100%) rename {src => loco-rs/src}/gen/templates/mailer.t (100%) rename {src => loco-rs/src}/gen/templates/mailer_html.t (100%) rename {src => loco-rs/src}/gen/templates/mailer_sub.t (100%) rename {src => loco-rs/src}/gen/templates/mailer_text.t (100%) rename {src => loco-rs/src}/gen/templates/migration.t (100%) rename {src => loco-rs/src}/gen/templates/model.t (100%) rename {src => loco-rs/src}/gen/templates/model_test.t (100%) rename {src => loco-rs/src}/gen/templates/request_test.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/api/controller.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/api/test.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/html/base.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/html/controller.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/html/view.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/html/view_create.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/html/view_edit.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/html/view_list.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/html/view_show.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/htmx/base.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/htmx/controller.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/htmx/view.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/htmx/view_create.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/htmx/view_edit.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/htmx/view_list.t (100%) rename {src => loco-rs/src}/gen/templates/scaffold/htmx/view_show.t (100%) rename {src => loco-rs/src}/gen/templates/scheduler.t (100%) rename {src => loco-rs/src}/gen/templates/task.t (100%) rename {src => loco-rs/src}/gen/templates/task_test.t (100%) rename {src => loco-rs/src}/gen/templates/worker.t (100%) rename {src => loco-rs/src}/gen/templates/worker_test.t (100%) rename {src => loco-rs/src}/hash.rs (100%) rename {src => loco-rs/src}/lib.rs (100%) rename {src => loco-rs/src}/logger.rs (100%) rename {src => loco-rs/src}/mailer/email_sender.rs (100%) rename {src => loco-rs/src}/mailer/mod.rs (100%) rename {src => loco-rs/src}/mailer/snapshots/loco_rs__mailer__email_sender__tests__can_send_email.snap (100%) rename {src => loco-rs/src}/mailer/snapshots/loco_rs__mailer__template__tests__can_render_template.snap (100%) rename {src => loco-rs/src}/mailer/template.rs (100%) rename {src => loco-rs/src}/model/mod.rs (100%) rename {src => loco-rs/src}/model/query/dsl/date_range.rs (100%) rename {src => loco-rs/src}/model/query/dsl/mod.rs (100%) rename {src => loco-rs/src}/model/query/mod.rs (100%) rename {src => loco-rs/src}/model/query/paginate/mod.rs (100%) rename {src => loco-rs/src}/prelude.rs (100%) rename {src => loco-rs/src}/scheduler.rs (100%) rename {src => loco-rs/src}/schema.rs (100%) rename {src => loco-rs/src}/snapshots/loco_rs__auth__tests__token expired.snap (100%) rename {src => loco-rs/src}/snapshots/loco_rs__auth__tests__valid token.snap (100%) rename {src => loco-rs/src}/snapshots/loco_rs__scheduler__tests__can_display_scheduler.snap (100%) rename {src => loco-rs/src}/snapshots/loco_rs__scheduler__tests__can_prepare_command_[shell].snap (100%) rename {src => loco-rs/src}/snapshots/loco_rs__scheduler__tests__can_prepare_command_[task].snap (100%) rename {src => loco-rs/src}/snapshots/loco_rs__validation__tests__struct-[foo-bar].snap (100%) rename {src => loco-rs/src}/snapshots/loco_rs__validation__tests__struct-[foo].snap (100%) rename {src => loco-rs/src}/snapshots/loco_rs__worker__tests__default_custom_queues-2.snap (100%) rename {src => loco-rs/src}/snapshots/loco_rs__worker__tests__default_custom_queues-3.snap (100%) rename {src => loco-rs/src}/snapshots/loco_rs__worker__tests__default_custom_queues.snap (100%) rename {src => loco-rs/src}/storage/contents.rs (100%) rename {src => loco-rs/src}/storage/drivers/aws.rs (100%) rename {src => loco-rs/src}/storage/drivers/azure.rs (100%) rename {src => loco-rs/src}/storage/drivers/gcp.rs (100%) rename {src => loco-rs/src}/storage/drivers/local.rs (100%) rename {src => loco-rs/src}/storage/drivers/mem.rs (100%) rename {src => loco-rs/src}/storage/drivers/mod.rs (100%) rename {src => loco-rs/src}/storage/drivers/null.rs (100%) rename {src => loco-rs/src}/storage/drivers/object_store_adapter.rs (100%) rename {src => loco-rs/src}/storage/mod.rs (100%) rename {src => loco-rs/src}/storage/strategies/backup.rs (100%) rename {src => loco-rs/src}/storage/strategies/mirror.rs (100%) rename {src => loco-rs/src}/storage/strategies/mod.rs (100%) rename {src => loco-rs/src}/storage/strategies/single.rs (100%) rename {src => loco-rs/src}/task.rs (100%) rename {src => loco-rs/src}/tera.rs (100%) rename {src => loco-rs/src}/testing.rs (100%) rename {src => loco-rs/src}/tests_cfg/app.rs (100%) rename {src => loco-rs/src}/tests_cfg/config.rs (100%) rename {src => loco-rs/src}/tests_cfg/db.rs (100%) rename {src => loco-rs/src}/tests_cfg/mod.rs (100%) rename {src => loco-rs/src}/tests_cfg/task.rs (100%) rename {src => loco-rs/src}/validation.rs (100%) rename {tests => loco-rs/tests}/controller/middlewares.rs (100%) rename {tests => loco-rs/tests}/controller/mod.rs (100%) rename {tests => loco-rs/tests}/controller/snapshots/cors_[default]@middlewares.snap (100%) rename {tests => loco-rs/tests}/controller/snapshots/cors_[disabled]@middlewares.snap (100%) rename {tests => loco-rs/tests}/controller/snapshots/cors_[with_allow_headers]@middlewares.snap (100%) rename {tests => loco-rs/tests}/controller/snapshots/cors_[with_allow_methods]@middlewares.snap (100%) rename {tests => loco-rs/tests}/controller/snapshots/cors_[with_max_age]@middlewares.snap (100%) rename {tests => loco-rs/tests}/controller/snapshots/panic@middlewares.snap (100%) rename {tests => loco-rs/tests}/controller/snapshots/secure_headers_[empty]_overrides[none]@middlewares.snap (100%) rename {tests => loco-rs/tests}/controller/snapshots/secure_headers_[github]_overrides[Content-Security-Policy]@middlewares.snap (100%) rename {tests => loco-rs/tests}/controller/snapshots/secure_headers_[none]_overrides[none]@middlewares.snap (100%) rename {tests => loco-rs/tests}/fixtures/email_template/test/html.t (100%) rename {tests => loco-rs/tests}/fixtures/email_template/test/subject.t (100%) rename {tests => loco-rs/tests}/fixtures/email_template/test/text.t (100%) rename {tests => loco-rs/tests}/fixtures/scheduler/scheduler.yaml (100%) rename {tests => loco-rs/tests}/infra_cfg/mod.rs (100%) rename {tests => loco-rs/tests}/infra_cfg/server.rs (100%) rename {tests => loco-rs/tests}/mod.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 86200dedc..43d1e6c41 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,5 @@ [workspace] +resolver = "2" members = ["xtask", "loco-extras"] exclude = ["starters"] @@ -7,137 +8,8 @@ edition = "2021" rust-version = "1.70" license = "Apache-2.0" -[package] -name = "loco-rs" -version = "0.11.0" -description = "The one-person framework for Rust" -homepage = "https://loco.rs/" -documentation = "https://docs.rs/loco-rs" -authors = ["Dotan Nahum ", "Elad Kaplan "] -repository = "https://github.com/loco-rs/loco" -license.workspace = true -edition.workspace = true -rust-version.workspace = true - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[features] -default = ["auth_jwt", "cli", "with-db", "cache_inmem", "bg_redis", "bg_pg"] -auth_jwt = ["dep:jsonwebtoken"] -cli = ["dep:clap"] -testing = ["dep:axum-test"] -with-db = ["dep:sea-orm", "dep:sea-orm-migration"] -channels = ["dep:socketioxide"] -# Storage features -all_storage = ["storage_aws_s3", "storage_azure", "storage_gcp"] -storage_aws_s3 = ["object_store/aws"] -storage_azure = ["object_store/azure"] -storage_gcp = ["object_store/gcp"] -# Cache feature -cache_inmem = ["dep:moka"] -bg_redis = ["dep:rusty-sidekiq", "dep:bb8"] -bg_pg = ["dep:sqlx", "dep:ulid"] - -[dependencies] -backtrace_printer = { version = "1.3.0" } - -# cli -clap = { version = "4.4.7", features = ["derive"], optional = true } -colored = "2" - - -sea-orm = { version = "1.0.0", features = [ - "sqlx-postgres", # `DATABASE_DRIVER` feature - "sqlx-sqlite", - "runtime-tokio-rustls", - "macros", -], optional = true } - -tokio = { version = "1.33.0", default-features = false } -# the rest - -serde = "1" -serde_json = "1" -serde_yaml = "0.9" -serde_variant = "0.1.2" - - -async-trait = { workspace = true } - -axum = { workspace = true } -axum-extra = { version = "0.9", features = ["cookie"] } -regex = "1" -lazy_static = "1.4.0" -fs-err = "2.11.0" -# mailer -tera = "1.19.1" -heck = "0.4.0" -lettre = { version = "0.11.4", default-features = false, features = [ - "builder", - "hostname", - "smtp-transport", - "tokio1-rustls-tls", -] } -include_dir = "0.7.3" -thiserror = "1" -tracing = "0.1.40" -tracing-subscriber = { version = "0.3.16", features = ["env-filter"] } -tracing-appender = "0.2.3" - -duct = { version = "0.13.6" } -duct_sh = { version = "0.13.7" } - -tower-http = { workspace = true } -byte-unit = "4.0.19" - -argon2 = { version = "0.5.2", features = ["std"] } -rand = { version = "0.8.5", features = ["std"] } -jsonwebtoken = { version = "9.3.0", optional = true } -validator = { version = "0.18.1", features = ["derive"] } -futures-util = "0.3" -tower = { workspace = true } -hyper = "1.1" -mime = "0.3" -bytes = "1.1" -ipnetwork = "0.20.0" - -axum-test = { version = "16.1.0", optional = true } - -# gen -rrgen = "0.5.3" -chrono = "0.4.31" -cargo_metadata = "0.18.1" -dialoguer = "0.11.0" - -cfg-if = "1" - -uuid = { version = "1.10.0", features = ["v4", "fast-rng"] } - -# A socket.io server implementation -socketioxide = { version = "0.14.0", features = ["state"], optional = true } - - -# File Upload -object_store = { version = "0.11.0", default-features = false } - -# cache -moka = { version = "0.12.7", features = ["sync"], optional = true } - -# Scheduler -tokio-cron-scheduler = { version = "0.11.0", features = ["signal"] } -english-to-cron = { version = "0.1.2" } - -# bg_pg: postgres workers -sqlx = { version = "0.8.2", default-features = false, features = [ - "postgres", -], optional = true } -ulid = { version = "1", optional = true } - -# bg_redis: redis workers -rusty-sidekiq = { version = "0.11.0", default-features = false, optional = true } -bb8 = { version = "0.8.1", optional = true } - [workspace.dependencies] +loco-rs = { version = "0.11.0", path = "./loco-rs" } async-trait = { version = "0.1.74" } axum = { version = "0.7.5", features = ["macros"] } tower = "0.4" @@ -151,27 +23,3 @@ tower-http = { version = "0.6.1", features = [ "set-header", "compression-full", ] } - -[dependencies.sea-orm-migration] -optional = true -version = "1.0.0" -features = [ - # Enable at least one `ASYNC_RUNTIME` and `DATABASE_DRIVER` feature if you want to run migration via CLI. - # View the list of supported features at https://www.sea-ql.org/SeaORM/docs/install-and-config/database-and-async-runtime. - # e.g. - "runtime-tokio-rustls", # `ASYNC_RUNTIME` feature - "sqlx-postgres", # `DATABASE_DRIVER` feature - "sqlx-sqlite", -] - -[package.metadata.docs.rs] -features = ["testing"] - -[dev-dependencies] -loco-rs = { path = ".", features = ["testing"] } -rstest = "0.21.0" -insta = { version = "1.34.0", features = ["redactions", "yaml", "filters"] } -tree-fs = { version = "0.1.0" } -reqwest = { version = "0.12.7" } -serial_test = "3.1.1" -tower = { workspace = true, features = ["util"] } diff --git a/loco-extras/Cargo.toml b/loco-extras/Cargo.toml index 350c13cb8..fb22f983f 100644 --- a/loco-extras/Cargo.toml +++ b/loco-extras/Cargo.toml @@ -10,6 +10,8 @@ rust-version.workspace = true path = "src/lib.rs" [dependencies] +loco-rs = { workspace = true, features = ["with-db", "auth_jwt"] } + async-trait = { workspace = true } axum = { workspace = true } # initializer @@ -37,11 +39,6 @@ tracing-subscriber = { version = "0.3.18", optional = true, features = [ tracing = { version = "0.1.40", optional = true } mongodb = { version = "2.8.0", optional = true } -[dependencies.loco-rs] -path = "../" -version = "*" -default-features = true -features = ["with-db", "auth_jwt"] [features] default = ["full"] diff --git a/loco-rs/README.md b/loco-rs/README.md new file mode 120000 index 000000000..32d46ee88 --- /dev/null +++ b/loco-rs/README.md @@ -0,0 +1 @@ +../README.md \ No newline at end of file diff --git a/loco-rs/cargo.toml b/loco-rs/cargo.toml new file mode 100644 index 000000000..1f991975a --- /dev/null +++ b/loco-rs/cargo.toml @@ -0,0 +1,153 @@ +[package] +name = "loco-rs" +version = "0.11.0" +description = "The one-person framework for Rust" +homepage = "https://loco.rs/" +documentation = "https://docs.rs/loco-rs" +authors = ["Dotan Nahum ", "Elad Kaplan "] +repository = "https://github.com/loco-rs/loco" +license.workspace = true +edition.workspace = true +rust-version.workspace = true + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[features] +default = ["auth_jwt", "cli", "with-db", "cache_inmem", "bg_redis", "bg_pg"] +auth_jwt = ["dep:jsonwebtoken"] +cli = ["dep:clap"] +testing = ["dep:axum-test"] +with-db = ["dep:sea-orm", "dep:sea-orm-migration"] +channels = ["dep:socketioxide"] +# Storage features +all_storage = ["storage_aws_s3", "storage_azure", "storage_gcp"] +storage_aws_s3 = ["object_store/aws"] +storage_azure = ["object_store/azure"] +storage_gcp = ["object_store/gcp"] +# Cache feature +cache_inmem = ["dep:moka"] +bg_redis = ["dep:rusty-sidekiq", "dep:bb8"] +bg_pg = ["dep:sqlx", "dep:ulid"] + +[dependencies] +backtrace_printer = { version = "1.3.0" } + +# cli +clap = { version = "4.4.7", features = ["derive"], optional = true } +colored = "2" + + +sea-orm = { version = "1.0.0", features = [ + "sqlx-postgres", # `DATABASE_DRIVER` feature + "sqlx-sqlite", + "runtime-tokio-rustls", + "macros", +], optional = true } + +tokio = { version = "1.33.0", default-features = false } +# the rest + +serde = "1" +serde_json = "1" +serde_yaml = "0.9" +serde_variant = "0.1.2" + + +async-trait = { workspace = true } + +axum = { workspace = true } +axum-extra = { version = "0.9", features = ["cookie"] } +regex = "1" +lazy_static = "1.4.0" +fs-err = "2.11.0" +# mailer +tera = "1.19.1" +heck = "0.4.0" +lettre = { version = "0.11.4", default-features = false, features = [ + "builder", + "hostname", + "smtp-transport", + "tokio1-rustls-tls", +] } +include_dir = "0.7.3" +thiserror = "1" +tracing = "0.1.40" +tracing-subscriber = { version = "0.3.16", features = ["env-filter"] } +tracing-appender = "0.2.3" + +duct = { version = "0.13.6" } +duct_sh = { version = "0.13.7" } + +tower-http = { workspace = true } +byte-unit = "4.0.19" + +argon2 = { version = "0.5.2", features = ["std"] } +rand = { version = "0.8.5", features = ["std"] } +jsonwebtoken = { version = "9.3.0", optional = true } +validator = { version = "0.18.1", features = ["derive"] } +futures-util = "0.3" +tower = { workspace = true } +hyper = "1.1" +mime = "0.3" +bytes = "1.1" +ipnetwork = "0.20.0" + +axum-test = { version = "16.1.0", optional = true } + +# gen +rrgen = "0.5.3" +chrono = "0.4.31" +cargo_metadata = "0.18.1" +dialoguer = "0.11.0" + +cfg-if = "1" + +uuid = { version = "1.10.0", features = ["v4", "fast-rng"] } + +# A socket.io server implementation +socketioxide = { version = "0.14.0", features = ["state"], optional = true } + + +# File Upload +object_store = { version = "0.11.0", default-features = false } + +# cache +moka = { version = "0.12.7", features = ["sync"], optional = true } + +# Scheduler +tokio-cron-scheduler = { version = "0.11.0", features = ["signal"] } +english-to-cron = { version = "0.1.2" } + +# bg_pg: postgres workers +sqlx = { version = "0.8.2", default-features = false, features = [ + "postgres", +], optional = true } +ulid = { version = "1", optional = true } + +# bg_redis: redis workers +rusty-sidekiq = { version = "0.11.0", default-features = false, optional = true } +bb8 = { version = "0.8.1", optional = true } + +[dependencies.sea-orm-migration] +optional = true +version = "1.0.0" +features = [ + # Enable at least one `ASYNC_RUNTIME` and `DATABASE_DRIVER` feature if you want to run migration via CLI. + # View the list of supported features at https://www.sea-ql.org/SeaORM/docs/install-and-config/database-and-async-runtime. + # e.g. + "runtime-tokio-rustls", # `ASYNC_RUNTIME` feature + "sqlx-postgres", # `DATABASE_DRIVER` feature + "sqlx-sqlite", +] + +[package.metadata.docs.rs] +features = ["testing"] + +[dev-dependencies] +loco-rs = { path = ".", features = ["testing"] } +rstest = "0.21.0" +insta = { version = "1.34.0", features = ["redactions", "yaml", "filters"] } +tree-fs = { version = "0.1.0" } +reqwest = { version = "0.12.7" } +serial_test = "3.1.1" +tower = { workspace = true, features = ["util"] } diff --git a/src/app.rs b/loco-rs/src/app.rs similarity index 100% rename from src/app.rs rename to loco-rs/src/app.rs diff --git a/src/auth/jwt.rs b/loco-rs/src/auth/jwt.rs similarity index 100% rename from src/auth/jwt.rs rename to loco-rs/src/auth/jwt.rs diff --git a/src/auth/mod.rs b/loco-rs/src/auth/mod.rs similarity index 100% rename from src/auth/mod.rs rename to loco-rs/src/auth/mod.rs diff --git a/src/auth/snapshots/loco_rs__auth__jwt__tests__token expired.snap b/loco-rs/src/auth/snapshots/loco_rs__auth__jwt__tests__token expired.snap similarity index 100% rename from src/auth/snapshots/loco_rs__auth__jwt__tests__token expired.snap rename to loco-rs/src/auth/snapshots/loco_rs__auth__jwt__tests__token expired.snap diff --git a/src/auth/snapshots/loco_rs__auth__jwt__tests__valid token and custom claims.snap b/loco-rs/src/auth/snapshots/loco_rs__auth__jwt__tests__valid token and custom claims.snap similarity index 100% rename from src/auth/snapshots/loco_rs__auth__jwt__tests__valid token and custom claims.snap rename to loco-rs/src/auth/snapshots/loco_rs__auth__jwt__tests__valid token and custom claims.snap diff --git a/src/auth/snapshots/loco_rs__auth__jwt__tests__valid token.snap b/loco-rs/src/auth/snapshots/loco_rs__auth__jwt__tests__valid token.snap similarity index 100% rename from src/auth/snapshots/loco_rs__auth__jwt__tests__valid token.snap rename to loco-rs/src/auth/snapshots/loco_rs__auth__jwt__tests__valid token.snap diff --git a/src/banner.rs b/loco-rs/src/banner.rs similarity index 100% rename from src/banner.rs rename to loco-rs/src/banner.rs diff --git a/src/bgworker/mod.rs b/loco-rs/src/bgworker/mod.rs similarity index 100% rename from src/bgworker/mod.rs rename to loco-rs/src/bgworker/mod.rs diff --git a/src/bgworker/pg.rs b/loco-rs/src/bgworker/pg.rs similarity index 100% rename from src/bgworker/pg.rs rename to loco-rs/src/bgworker/pg.rs diff --git a/src/bgworker/skq.rs b/loco-rs/src/bgworker/skq.rs similarity index 100% rename from src/bgworker/skq.rs rename to loco-rs/src/bgworker/skq.rs diff --git a/src/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues-2.snap b/loco-rs/src/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues-2.snap similarity index 100% rename from src/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues-2.snap rename to loco-rs/src/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues-2.snap diff --git a/src/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues-3.snap b/loco-rs/src/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues-3.snap similarity index 100% rename from src/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues-3.snap rename to loco-rs/src/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues-3.snap diff --git a/src/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues.snap b/loco-rs/src/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues.snap similarity index 100% rename from src/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues.snap rename to loco-rs/src/bgworker/snapshots/loco_rs__bgworker__skq__tests__default_custom_queues.snap diff --git a/src/boot.rs b/loco-rs/src/boot.rs similarity index 100% rename from src/boot.rs rename to loco-rs/src/boot.rs diff --git a/src/cache/drivers/inmem.rs b/loco-rs/src/cache/drivers/inmem.rs similarity index 100% rename from src/cache/drivers/inmem.rs rename to loco-rs/src/cache/drivers/inmem.rs diff --git a/src/cache/drivers/mod.rs b/loco-rs/src/cache/drivers/mod.rs similarity index 100% rename from src/cache/drivers/mod.rs rename to loco-rs/src/cache/drivers/mod.rs diff --git a/src/cache/drivers/null.rs b/loco-rs/src/cache/drivers/null.rs similarity index 100% rename from src/cache/drivers/null.rs rename to loco-rs/src/cache/drivers/null.rs diff --git a/src/cache/mod.rs b/loco-rs/src/cache/mod.rs similarity index 100% rename from src/cache/mod.rs rename to loco-rs/src/cache/mod.rs diff --git a/src/cli.rs b/loco-rs/src/cli.rs similarity index 100% rename from src/cli.rs rename to loco-rs/src/cli.rs diff --git a/src/config.rs b/loco-rs/src/config.rs similarity index 100% rename from src/config.rs rename to loco-rs/src/config.rs diff --git a/src/controller/app_routes.rs b/loco-rs/src/controller/app_routes.rs similarity index 100% rename from src/controller/app_routes.rs rename to loco-rs/src/controller/app_routes.rs diff --git a/src/controller/backtrace.rs b/loco-rs/src/controller/backtrace.rs similarity index 100% rename from src/controller/backtrace.rs rename to loco-rs/src/controller/backtrace.rs diff --git a/src/controller/channels.rs b/loco-rs/src/controller/channels.rs similarity index 100% rename from src/controller/channels.rs rename to loco-rs/src/controller/channels.rs diff --git a/src/controller/describe.rs b/loco-rs/src/controller/describe.rs similarity index 100% rename from src/controller/describe.rs rename to loco-rs/src/controller/describe.rs diff --git a/src/controller/format.rs b/loco-rs/src/controller/format.rs similarity index 100% rename from src/controller/format.rs rename to loco-rs/src/controller/format.rs diff --git a/src/controller/health.rs b/loco-rs/src/controller/health.rs similarity index 100% rename from src/controller/health.rs rename to loco-rs/src/controller/health.rs diff --git a/src/controller/middleware/_archive/content_etag.rs b/loco-rs/src/controller/middleware/_archive/content_etag.rs similarity index 100% rename from src/controller/middleware/_archive/content_etag.rs rename to loco-rs/src/controller/middleware/_archive/content_etag.rs diff --git a/src/controller/middleware/auth.rs b/loco-rs/src/controller/middleware/auth.rs similarity index 100% rename from src/controller/middleware/auth.rs rename to loco-rs/src/controller/middleware/auth.rs diff --git a/src/controller/middleware/catch_panic.rs b/loco-rs/src/controller/middleware/catch_panic.rs similarity index 100% rename from src/controller/middleware/catch_panic.rs rename to loco-rs/src/controller/middleware/catch_panic.rs diff --git a/src/controller/middleware/compression.rs b/loco-rs/src/controller/middleware/compression.rs similarity index 100% rename from src/controller/middleware/compression.rs rename to loco-rs/src/controller/middleware/compression.rs diff --git a/src/controller/middleware/cors.rs b/loco-rs/src/controller/middleware/cors.rs similarity index 100% rename from src/controller/middleware/cors.rs rename to loco-rs/src/controller/middleware/cors.rs diff --git a/src/controller/middleware/etag.rs b/loco-rs/src/controller/middleware/etag.rs similarity index 100% rename from src/controller/middleware/etag.rs rename to loco-rs/src/controller/middleware/etag.rs diff --git a/src/controller/middleware/fallback.html b/loco-rs/src/controller/middleware/fallback.html similarity index 100% rename from src/controller/middleware/fallback.html rename to loco-rs/src/controller/middleware/fallback.html diff --git a/src/controller/middleware/fallback.rs b/loco-rs/src/controller/middleware/fallback.rs similarity index 100% rename from src/controller/middleware/fallback.rs rename to loco-rs/src/controller/middleware/fallback.rs diff --git a/src/controller/middleware/format.rs b/loco-rs/src/controller/middleware/format.rs similarity index 100% rename from src/controller/middleware/format.rs rename to loco-rs/src/controller/middleware/format.rs diff --git a/src/controller/middleware/limit_payload.rs b/loco-rs/src/controller/middleware/limit_payload.rs similarity index 100% rename from src/controller/middleware/limit_payload.rs rename to loco-rs/src/controller/middleware/limit_payload.rs diff --git a/src/controller/middleware/logger.rs b/loco-rs/src/controller/middleware/logger.rs similarity index 100% rename from src/controller/middleware/logger.rs rename to loco-rs/src/controller/middleware/logger.rs diff --git a/src/controller/middleware/mod.rs b/loco-rs/src/controller/middleware/mod.rs similarity index 100% rename from src/controller/middleware/mod.rs rename to loco-rs/src/controller/middleware/mod.rs diff --git a/src/controller/middleware/powered_by.rs b/loco-rs/src/controller/middleware/powered_by.rs similarity index 100% rename from src/controller/middleware/powered_by.rs rename to loco-rs/src/controller/middleware/powered_by.rs diff --git a/src/controller/middleware/remote_ip.rs b/loco-rs/src/controller/middleware/remote_ip.rs similarity index 100% rename from src/controller/middleware/remote_ip.rs rename to loco-rs/src/controller/middleware/remote_ip.rs diff --git a/src/controller/middleware/request_id.rs b/loco-rs/src/controller/middleware/request_id.rs similarity index 100% rename from src/controller/middleware/request_id.rs rename to loco-rs/src/controller/middleware/request_id.rs diff --git a/src/controller/middleware/secure_headers.json b/loco-rs/src/controller/middleware/secure_headers.json similarity index 100% rename from src/controller/middleware/secure_headers.json rename to loco-rs/src/controller/middleware/secure_headers.json diff --git a/src/controller/middleware/secure_headers.rs b/loco-rs/src/controller/middleware/secure_headers.rs similarity index 100% rename from src/controller/middleware/secure_headers.rs rename to loco-rs/src/controller/middleware/secure_headers.rs diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_bearer.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_bearer.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_bearer.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_bearer.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_cookie.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_cookie.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_cookie.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_cookie.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_default.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_default.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_default.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_default.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_query.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_query.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_query.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__auth__tests__extract_from_query.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[default].snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[default].snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[default].snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[default].snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_allow_headers].snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_allow_headers].snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_allow_headers].snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_allow_headers].snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_allow_methods].snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_allow_methods].snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_allow_methods].snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_allow_methods].snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_max_age].snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_max_age].snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_max_age].snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__cors__tests__cors_[with_max_age].snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-2.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-2.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-2.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-2.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-3.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-3.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-3.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-3.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-4.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-4.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-4.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-4.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-5.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-5.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-5.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-5.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-6.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-6.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-6.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-6.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-7.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-7.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-7.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-7.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-8.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-8.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-8.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing-8.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__remote_ip__tests__parsing.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-2.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-2.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-2.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-2.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-3.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-3.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-3.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-3.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-4.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-4.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-4.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-4.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-5.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-5.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-5.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id-5.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__request_id__tests__create_or_fetch_request_id.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__can_override_headers.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__can_override_headers.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__can_override_headers.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__can_override_headers.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__can_set_headers.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__can_set_headers.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__can_set_headers.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__can_set_headers.snap diff --git a/src/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__default_is_github_preset.snap b/loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__default_is_github_preset.snap similarity index 100% rename from src/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__default_is_github_preset.snap rename to loco-rs/src/controller/middleware/snapshots/loco_rs__controller__middleware__secure_headers__tests__default_is_github_preset.snap diff --git a/src/controller/middleware/static_assets.rs b/loco-rs/src/controller/middleware/static_assets.rs similarity index 100% rename from src/controller/middleware/static_assets.rs rename to loco-rs/src/controller/middleware/static_assets.rs diff --git a/src/controller/middleware/timeout.rs b/loco-rs/src/controller/middleware/timeout.rs similarity index 100% rename from src/controller/middleware/timeout.rs rename to loco-rs/src/controller/middleware/timeout.rs diff --git a/src/controller/mod.rs b/loco-rs/src/controller/mod.rs similarity index 100% rename from src/controller/mod.rs rename to loco-rs/src/controller/mod.rs diff --git a/src/controller/ping.rs b/loco-rs/src/controller/ping.rs similarity index 100% rename from src/controller/ping.rs rename to loco-rs/src/controller/ping.rs diff --git a/src/controller/routes.rs b/loco-rs/src/controller/routes.rs similarity index 100% rename from src/controller/routes.rs rename to loco-rs/src/controller/routes.rs diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]_health].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]_health].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]_health].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]_health].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]_ping].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]_ping].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]_ping].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]_ping].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]bar].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]bar].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]bar].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]bar].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]foo].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]foo].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]foo].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]foo].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]loco-rs].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]loco-rs].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]loco-rs].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]loco-rs].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]loco].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]loco].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]loco].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]api[slash]loco].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple1].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple1].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple1].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple1].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple2].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple2].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple2].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple2].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple3].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple3].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple3].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]multiple3].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]foo[slash]bar].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]foo[slash]bar].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]foo[slash]bar].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]foo[slash]bar].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]loco[slash]rs].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]loco[slash]rs].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]loco[slash]rs].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]loco[slash]rs].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]multiple-end].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]multiple-end].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]multiple-end].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]multiple-end].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]multiple-start].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]multiple-start].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]multiple-start].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]multiple-start].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]no-slash].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]no-slash].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]no-slash].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer[slash]no-slash].snap diff --git a/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer].snap b/loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer].snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer].snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__app_routes__tests__[[slash]normalizer].snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__builder_cookies_response.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_cookies_response.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__builder_cookies_response.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_cookies_response.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__builder_empty_response.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_empty_response.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__builder_empty_response.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_empty_response.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__builder_html_response.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_html_response.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__builder_html_response.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_html_response.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__builder_json_response.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_json_response.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__builder_json_response.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_json_response.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__builder_redirect_response.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_redirect_response.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__builder_redirect_response.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_redirect_response.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__builder_template_response.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_template_response.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__builder_template_response.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_template_response.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__builder_text_response.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_text_response.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__builder_text_response.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_text_response.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__builder_view_response-2.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_view_response-2.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__builder_view_response-2.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_view_response-2.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__builder_view_response.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_view_response.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__builder_view_response.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__builder_view_response.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__empty_json_response_format.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__empty_json_response_format.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__empty_json_response_format.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__empty_json_response_format.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__empty_response_format.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__empty_response_format.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__empty_response_format.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__empty_response_format.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__html_response_format.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__html_response_format.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__html_response_format.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__html_response_format.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__json_response_format.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__json_response_format.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__json_response_format.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__json_response_format.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__redirect_response.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__redirect_response.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__redirect_response.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__redirect_response.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__template_response.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__template_response.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__template_response.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__template_response.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__text_response_format.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__text_response_format.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__text_response_format.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__text_response_format.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__view_response-2.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__view_response-2.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__view_response-2.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__view_response-2.snap diff --git a/src/controller/snapshots/loco_rs__controller__format__tests__view_response.snap b/loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__view_response.snap similarity index 100% rename from src/controller/snapshots/loco_rs__controller__format__tests__view_response.snap rename to loco-rs/src/controller/snapshots/loco_rs__controller__format__tests__view_response.snap diff --git a/src/controller/views/engines.rs b/loco-rs/src/controller/views/engines.rs similarity index 100% rename from src/controller/views/engines.rs rename to loco-rs/src/controller/views/engines.rs diff --git a/src/controller/views/mod.rs b/loco-rs/src/controller/views/mod.rs similarity index 100% rename from src/controller/views/mod.rs rename to loco-rs/src/controller/views/mod.rs diff --git a/src/controller/views/pagination.rs b/loco-rs/src/controller/views/pagination.rs similarity index 100% rename from src/controller/views/pagination.rs rename to loco-rs/src/controller/views/pagination.rs diff --git a/src/db.rs b/loco-rs/src/db.rs similarity index 100% rename from src/db.rs rename to loco-rs/src/db.rs diff --git a/src/doctor.rs b/loco-rs/src/doctor.rs similarity index 100% rename from src/doctor.rs rename to loco-rs/src/doctor.rs diff --git a/src/environment.rs b/loco-rs/src/environment.rs similarity index 100% rename from src/environment.rs rename to loco-rs/src/environment.rs diff --git a/src/errors.rs b/loco-rs/src/errors.rs similarity index 100% rename from src/errors.rs rename to loco-rs/src/errors.rs diff --git a/src/gen/controller.rs b/loco-rs/src/gen/controller.rs similarity index 100% rename from src/gen/controller.rs rename to loco-rs/src/gen/controller.rs diff --git a/src/gen/mappings.json b/loco-rs/src/gen/mappings.json similarity index 100% rename from src/gen/mappings.json rename to loco-rs/src/gen/mappings.json diff --git a/src/gen/mod.rs b/loco-rs/src/gen/mod.rs similarity index 100% rename from src/gen/mod.rs rename to loco-rs/src/gen/mod.rs diff --git a/src/gen/model.rs b/loco-rs/src/gen/model.rs similarity index 100% rename from src/gen/model.rs rename to loco-rs/src/gen/model.rs diff --git a/src/gen/scaffold.rs b/loco-rs/src/gen/scaffold.rs similarity index 100% rename from src/gen/scaffold.rs rename to loco-rs/src/gen/scaffold.rs diff --git a/src/gen/templates/controller.t b/loco-rs/src/gen/templates/controller.t similarity index 100% rename from src/gen/templates/controller.t rename to loco-rs/src/gen/templates/controller.t diff --git a/src/gen/templates/controller/api/controller.t b/loco-rs/src/gen/templates/controller/api/controller.t similarity index 100% rename from src/gen/templates/controller/api/controller.t rename to loco-rs/src/gen/templates/controller/api/controller.t diff --git a/src/gen/templates/controller/api/test.t b/loco-rs/src/gen/templates/controller/api/test.t similarity index 100% rename from src/gen/templates/controller/api/test.t rename to loco-rs/src/gen/templates/controller/api/test.t diff --git a/src/gen/templates/controller/html/controller.t b/loco-rs/src/gen/templates/controller/html/controller.t similarity index 100% rename from src/gen/templates/controller/html/controller.t rename to loco-rs/src/gen/templates/controller/html/controller.t diff --git a/src/gen/templates/controller/html/view.t b/loco-rs/src/gen/templates/controller/html/view.t similarity index 100% rename from src/gen/templates/controller/html/view.t rename to loco-rs/src/gen/templates/controller/html/view.t diff --git a/src/gen/templates/controller/htmx/controller.t b/loco-rs/src/gen/templates/controller/htmx/controller.t similarity index 100% rename from src/gen/templates/controller/htmx/controller.t rename to loco-rs/src/gen/templates/controller/htmx/controller.t diff --git a/src/gen/templates/controller/htmx/view.t b/loco-rs/src/gen/templates/controller/htmx/view.t similarity index 100% rename from src/gen/templates/controller/htmx/view.t rename to loco-rs/src/gen/templates/controller/htmx/view.t diff --git a/src/gen/templates/deployment_docker.t b/loco-rs/src/gen/templates/deployment_docker.t similarity index 100% rename from src/gen/templates/deployment_docker.t rename to loco-rs/src/gen/templates/deployment_docker.t diff --git a/src/gen/templates/deployment_docker_ignore.t b/loco-rs/src/gen/templates/deployment_docker_ignore.t similarity index 100% rename from src/gen/templates/deployment_docker_ignore.t rename to loco-rs/src/gen/templates/deployment_docker_ignore.t diff --git a/src/gen/templates/deployment_nginx.t b/loco-rs/src/gen/templates/deployment_nginx.t similarity index 100% rename from src/gen/templates/deployment_nginx.t rename to loco-rs/src/gen/templates/deployment_nginx.t diff --git a/src/gen/templates/deployment_shuttle.t b/loco-rs/src/gen/templates/deployment_shuttle.t similarity index 100% rename from src/gen/templates/deployment_shuttle.t rename to loco-rs/src/gen/templates/deployment_shuttle.t diff --git a/src/gen/templates/deployment_shuttle_config.t b/loco-rs/src/gen/templates/deployment_shuttle_config.t similarity index 100% rename from src/gen/templates/deployment_shuttle_config.t rename to loco-rs/src/gen/templates/deployment_shuttle_config.t diff --git a/src/gen/templates/mailer.t b/loco-rs/src/gen/templates/mailer.t similarity index 100% rename from src/gen/templates/mailer.t rename to loco-rs/src/gen/templates/mailer.t diff --git a/src/gen/templates/mailer_html.t b/loco-rs/src/gen/templates/mailer_html.t similarity index 100% rename from src/gen/templates/mailer_html.t rename to loco-rs/src/gen/templates/mailer_html.t diff --git a/src/gen/templates/mailer_sub.t b/loco-rs/src/gen/templates/mailer_sub.t similarity index 100% rename from src/gen/templates/mailer_sub.t rename to loco-rs/src/gen/templates/mailer_sub.t diff --git a/src/gen/templates/mailer_text.t b/loco-rs/src/gen/templates/mailer_text.t similarity index 100% rename from src/gen/templates/mailer_text.t rename to loco-rs/src/gen/templates/mailer_text.t diff --git a/src/gen/templates/migration.t b/loco-rs/src/gen/templates/migration.t similarity index 100% rename from src/gen/templates/migration.t rename to loco-rs/src/gen/templates/migration.t diff --git a/src/gen/templates/model.t b/loco-rs/src/gen/templates/model.t similarity index 100% rename from src/gen/templates/model.t rename to loco-rs/src/gen/templates/model.t diff --git a/src/gen/templates/model_test.t b/loco-rs/src/gen/templates/model_test.t similarity index 100% rename from src/gen/templates/model_test.t rename to loco-rs/src/gen/templates/model_test.t diff --git a/src/gen/templates/request_test.t b/loco-rs/src/gen/templates/request_test.t similarity index 100% rename from src/gen/templates/request_test.t rename to loco-rs/src/gen/templates/request_test.t diff --git a/src/gen/templates/scaffold/api/controller.t b/loco-rs/src/gen/templates/scaffold/api/controller.t similarity index 100% rename from src/gen/templates/scaffold/api/controller.t rename to loco-rs/src/gen/templates/scaffold/api/controller.t diff --git a/src/gen/templates/scaffold/api/test.t b/loco-rs/src/gen/templates/scaffold/api/test.t similarity index 100% rename from src/gen/templates/scaffold/api/test.t rename to loco-rs/src/gen/templates/scaffold/api/test.t diff --git a/src/gen/templates/scaffold/html/base.t b/loco-rs/src/gen/templates/scaffold/html/base.t similarity index 100% rename from src/gen/templates/scaffold/html/base.t rename to loco-rs/src/gen/templates/scaffold/html/base.t diff --git a/src/gen/templates/scaffold/html/controller.t b/loco-rs/src/gen/templates/scaffold/html/controller.t similarity index 100% rename from src/gen/templates/scaffold/html/controller.t rename to loco-rs/src/gen/templates/scaffold/html/controller.t diff --git a/src/gen/templates/scaffold/html/view.t b/loco-rs/src/gen/templates/scaffold/html/view.t similarity index 100% rename from src/gen/templates/scaffold/html/view.t rename to loco-rs/src/gen/templates/scaffold/html/view.t diff --git a/src/gen/templates/scaffold/html/view_create.t b/loco-rs/src/gen/templates/scaffold/html/view_create.t similarity index 100% rename from src/gen/templates/scaffold/html/view_create.t rename to loco-rs/src/gen/templates/scaffold/html/view_create.t diff --git a/src/gen/templates/scaffold/html/view_edit.t b/loco-rs/src/gen/templates/scaffold/html/view_edit.t similarity index 100% rename from src/gen/templates/scaffold/html/view_edit.t rename to loco-rs/src/gen/templates/scaffold/html/view_edit.t diff --git a/src/gen/templates/scaffold/html/view_list.t b/loco-rs/src/gen/templates/scaffold/html/view_list.t similarity index 100% rename from src/gen/templates/scaffold/html/view_list.t rename to loco-rs/src/gen/templates/scaffold/html/view_list.t diff --git a/src/gen/templates/scaffold/html/view_show.t b/loco-rs/src/gen/templates/scaffold/html/view_show.t similarity index 100% rename from src/gen/templates/scaffold/html/view_show.t rename to loco-rs/src/gen/templates/scaffold/html/view_show.t diff --git a/src/gen/templates/scaffold/htmx/base.t b/loco-rs/src/gen/templates/scaffold/htmx/base.t similarity index 100% rename from src/gen/templates/scaffold/htmx/base.t rename to loco-rs/src/gen/templates/scaffold/htmx/base.t diff --git a/src/gen/templates/scaffold/htmx/controller.t b/loco-rs/src/gen/templates/scaffold/htmx/controller.t similarity index 100% rename from src/gen/templates/scaffold/htmx/controller.t rename to loco-rs/src/gen/templates/scaffold/htmx/controller.t diff --git a/src/gen/templates/scaffold/htmx/view.t b/loco-rs/src/gen/templates/scaffold/htmx/view.t similarity index 100% rename from src/gen/templates/scaffold/htmx/view.t rename to loco-rs/src/gen/templates/scaffold/htmx/view.t diff --git a/src/gen/templates/scaffold/htmx/view_create.t b/loco-rs/src/gen/templates/scaffold/htmx/view_create.t similarity index 100% rename from src/gen/templates/scaffold/htmx/view_create.t rename to loco-rs/src/gen/templates/scaffold/htmx/view_create.t diff --git a/src/gen/templates/scaffold/htmx/view_edit.t b/loco-rs/src/gen/templates/scaffold/htmx/view_edit.t similarity index 100% rename from src/gen/templates/scaffold/htmx/view_edit.t rename to loco-rs/src/gen/templates/scaffold/htmx/view_edit.t diff --git a/src/gen/templates/scaffold/htmx/view_list.t b/loco-rs/src/gen/templates/scaffold/htmx/view_list.t similarity index 100% rename from src/gen/templates/scaffold/htmx/view_list.t rename to loco-rs/src/gen/templates/scaffold/htmx/view_list.t diff --git a/src/gen/templates/scaffold/htmx/view_show.t b/loco-rs/src/gen/templates/scaffold/htmx/view_show.t similarity index 100% rename from src/gen/templates/scaffold/htmx/view_show.t rename to loco-rs/src/gen/templates/scaffold/htmx/view_show.t diff --git a/src/gen/templates/scheduler.t b/loco-rs/src/gen/templates/scheduler.t similarity index 100% rename from src/gen/templates/scheduler.t rename to loco-rs/src/gen/templates/scheduler.t diff --git a/src/gen/templates/task.t b/loco-rs/src/gen/templates/task.t similarity index 100% rename from src/gen/templates/task.t rename to loco-rs/src/gen/templates/task.t diff --git a/src/gen/templates/task_test.t b/loco-rs/src/gen/templates/task_test.t similarity index 100% rename from src/gen/templates/task_test.t rename to loco-rs/src/gen/templates/task_test.t diff --git a/src/gen/templates/worker.t b/loco-rs/src/gen/templates/worker.t similarity index 100% rename from src/gen/templates/worker.t rename to loco-rs/src/gen/templates/worker.t diff --git a/src/gen/templates/worker_test.t b/loco-rs/src/gen/templates/worker_test.t similarity index 100% rename from src/gen/templates/worker_test.t rename to loco-rs/src/gen/templates/worker_test.t diff --git a/src/hash.rs b/loco-rs/src/hash.rs similarity index 100% rename from src/hash.rs rename to loco-rs/src/hash.rs diff --git a/src/lib.rs b/loco-rs/src/lib.rs similarity index 100% rename from src/lib.rs rename to loco-rs/src/lib.rs diff --git a/src/logger.rs b/loco-rs/src/logger.rs similarity index 100% rename from src/logger.rs rename to loco-rs/src/logger.rs diff --git a/src/mailer/email_sender.rs b/loco-rs/src/mailer/email_sender.rs similarity index 100% rename from src/mailer/email_sender.rs rename to loco-rs/src/mailer/email_sender.rs diff --git a/src/mailer/mod.rs b/loco-rs/src/mailer/mod.rs similarity index 100% rename from src/mailer/mod.rs rename to loco-rs/src/mailer/mod.rs diff --git a/src/mailer/snapshots/loco_rs__mailer__email_sender__tests__can_send_email.snap b/loco-rs/src/mailer/snapshots/loco_rs__mailer__email_sender__tests__can_send_email.snap similarity index 100% rename from src/mailer/snapshots/loco_rs__mailer__email_sender__tests__can_send_email.snap rename to loco-rs/src/mailer/snapshots/loco_rs__mailer__email_sender__tests__can_send_email.snap diff --git a/src/mailer/snapshots/loco_rs__mailer__template__tests__can_render_template.snap b/loco-rs/src/mailer/snapshots/loco_rs__mailer__template__tests__can_render_template.snap similarity index 100% rename from src/mailer/snapshots/loco_rs__mailer__template__tests__can_render_template.snap rename to loco-rs/src/mailer/snapshots/loco_rs__mailer__template__tests__can_render_template.snap diff --git a/src/mailer/template.rs b/loco-rs/src/mailer/template.rs similarity index 100% rename from src/mailer/template.rs rename to loco-rs/src/mailer/template.rs diff --git a/src/model/mod.rs b/loco-rs/src/model/mod.rs similarity index 100% rename from src/model/mod.rs rename to loco-rs/src/model/mod.rs diff --git a/src/model/query/dsl/date_range.rs b/loco-rs/src/model/query/dsl/date_range.rs similarity index 100% rename from src/model/query/dsl/date_range.rs rename to loco-rs/src/model/query/dsl/date_range.rs diff --git a/src/model/query/dsl/mod.rs b/loco-rs/src/model/query/dsl/mod.rs similarity index 100% rename from src/model/query/dsl/mod.rs rename to loco-rs/src/model/query/dsl/mod.rs diff --git a/src/model/query/mod.rs b/loco-rs/src/model/query/mod.rs similarity index 100% rename from src/model/query/mod.rs rename to loco-rs/src/model/query/mod.rs diff --git a/src/model/query/paginate/mod.rs b/loco-rs/src/model/query/paginate/mod.rs similarity index 100% rename from src/model/query/paginate/mod.rs rename to loco-rs/src/model/query/paginate/mod.rs diff --git a/src/prelude.rs b/loco-rs/src/prelude.rs similarity index 100% rename from src/prelude.rs rename to loco-rs/src/prelude.rs diff --git a/src/scheduler.rs b/loco-rs/src/scheduler.rs similarity index 100% rename from src/scheduler.rs rename to loco-rs/src/scheduler.rs diff --git a/src/schema.rs b/loco-rs/src/schema.rs similarity index 100% rename from src/schema.rs rename to loco-rs/src/schema.rs diff --git a/src/snapshots/loco_rs__auth__tests__token expired.snap b/loco-rs/src/snapshots/loco_rs__auth__tests__token expired.snap similarity index 100% rename from src/snapshots/loco_rs__auth__tests__token expired.snap rename to loco-rs/src/snapshots/loco_rs__auth__tests__token expired.snap diff --git a/src/snapshots/loco_rs__auth__tests__valid token.snap b/loco-rs/src/snapshots/loco_rs__auth__tests__valid token.snap similarity index 100% rename from src/snapshots/loco_rs__auth__tests__valid token.snap rename to loco-rs/src/snapshots/loco_rs__auth__tests__valid token.snap diff --git a/src/snapshots/loco_rs__scheduler__tests__can_display_scheduler.snap b/loco-rs/src/snapshots/loco_rs__scheduler__tests__can_display_scheduler.snap similarity index 100% rename from src/snapshots/loco_rs__scheduler__tests__can_display_scheduler.snap rename to loco-rs/src/snapshots/loco_rs__scheduler__tests__can_display_scheduler.snap diff --git a/src/snapshots/loco_rs__scheduler__tests__can_prepare_command_[shell].snap b/loco-rs/src/snapshots/loco_rs__scheduler__tests__can_prepare_command_[shell].snap similarity index 100% rename from src/snapshots/loco_rs__scheduler__tests__can_prepare_command_[shell].snap rename to loco-rs/src/snapshots/loco_rs__scheduler__tests__can_prepare_command_[shell].snap diff --git a/src/snapshots/loco_rs__scheduler__tests__can_prepare_command_[task].snap b/loco-rs/src/snapshots/loco_rs__scheduler__tests__can_prepare_command_[task].snap similarity index 100% rename from src/snapshots/loco_rs__scheduler__tests__can_prepare_command_[task].snap rename to loco-rs/src/snapshots/loco_rs__scheduler__tests__can_prepare_command_[task].snap diff --git a/src/snapshots/loco_rs__validation__tests__struct-[foo-bar].snap b/loco-rs/src/snapshots/loco_rs__validation__tests__struct-[foo-bar].snap similarity index 100% rename from src/snapshots/loco_rs__validation__tests__struct-[foo-bar].snap rename to loco-rs/src/snapshots/loco_rs__validation__tests__struct-[foo-bar].snap diff --git a/src/snapshots/loco_rs__validation__tests__struct-[foo].snap b/loco-rs/src/snapshots/loco_rs__validation__tests__struct-[foo].snap similarity index 100% rename from src/snapshots/loco_rs__validation__tests__struct-[foo].snap rename to loco-rs/src/snapshots/loco_rs__validation__tests__struct-[foo].snap diff --git a/src/snapshots/loco_rs__worker__tests__default_custom_queues-2.snap b/loco-rs/src/snapshots/loco_rs__worker__tests__default_custom_queues-2.snap similarity index 100% rename from src/snapshots/loco_rs__worker__tests__default_custom_queues-2.snap rename to loco-rs/src/snapshots/loco_rs__worker__tests__default_custom_queues-2.snap diff --git a/src/snapshots/loco_rs__worker__tests__default_custom_queues-3.snap b/loco-rs/src/snapshots/loco_rs__worker__tests__default_custom_queues-3.snap similarity index 100% rename from src/snapshots/loco_rs__worker__tests__default_custom_queues-3.snap rename to loco-rs/src/snapshots/loco_rs__worker__tests__default_custom_queues-3.snap diff --git a/src/snapshots/loco_rs__worker__tests__default_custom_queues.snap b/loco-rs/src/snapshots/loco_rs__worker__tests__default_custom_queues.snap similarity index 100% rename from src/snapshots/loco_rs__worker__tests__default_custom_queues.snap rename to loco-rs/src/snapshots/loco_rs__worker__tests__default_custom_queues.snap diff --git a/src/storage/contents.rs b/loco-rs/src/storage/contents.rs similarity index 100% rename from src/storage/contents.rs rename to loco-rs/src/storage/contents.rs diff --git a/src/storage/drivers/aws.rs b/loco-rs/src/storage/drivers/aws.rs similarity index 100% rename from src/storage/drivers/aws.rs rename to loco-rs/src/storage/drivers/aws.rs diff --git a/src/storage/drivers/azure.rs b/loco-rs/src/storage/drivers/azure.rs similarity index 100% rename from src/storage/drivers/azure.rs rename to loco-rs/src/storage/drivers/azure.rs diff --git a/src/storage/drivers/gcp.rs b/loco-rs/src/storage/drivers/gcp.rs similarity index 100% rename from src/storage/drivers/gcp.rs rename to loco-rs/src/storage/drivers/gcp.rs diff --git a/src/storage/drivers/local.rs b/loco-rs/src/storage/drivers/local.rs similarity index 100% rename from src/storage/drivers/local.rs rename to loco-rs/src/storage/drivers/local.rs diff --git a/src/storage/drivers/mem.rs b/loco-rs/src/storage/drivers/mem.rs similarity index 100% rename from src/storage/drivers/mem.rs rename to loco-rs/src/storage/drivers/mem.rs diff --git a/src/storage/drivers/mod.rs b/loco-rs/src/storage/drivers/mod.rs similarity index 100% rename from src/storage/drivers/mod.rs rename to loco-rs/src/storage/drivers/mod.rs diff --git a/src/storage/drivers/null.rs b/loco-rs/src/storage/drivers/null.rs similarity index 100% rename from src/storage/drivers/null.rs rename to loco-rs/src/storage/drivers/null.rs diff --git a/src/storage/drivers/object_store_adapter.rs b/loco-rs/src/storage/drivers/object_store_adapter.rs similarity index 100% rename from src/storage/drivers/object_store_adapter.rs rename to loco-rs/src/storage/drivers/object_store_adapter.rs diff --git a/src/storage/mod.rs b/loco-rs/src/storage/mod.rs similarity index 100% rename from src/storage/mod.rs rename to loco-rs/src/storage/mod.rs diff --git a/src/storage/strategies/backup.rs b/loco-rs/src/storage/strategies/backup.rs similarity index 100% rename from src/storage/strategies/backup.rs rename to loco-rs/src/storage/strategies/backup.rs diff --git a/src/storage/strategies/mirror.rs b/loco-rs/src/storage/strategies/mirror.rs similarity index 100% rename from src/storage/strategies/mirror.rs rename to loco-rs/src/storage/strategies/mirror.rs diff --git a/src/storage/strategies/mod.rs b/loco-rs/src/storage/strategies/mod.rs similarity index 100% rename from src/storage/strategies/mod.rs rename to loco-rs/src/storage/strategies/mod.rs diff --git a/src/storage/strategies/single.rs b/loco-rs/src/storage/strategies/single.rs similarity index 100% rename from src/storage/strategies/single.rs rename to loco-rs/src/storage/strategies/single.rs diff --git a/src/task.rs b/loco-rs/src/task.rs similarity index 100% rename from src/task.rs rename to loco-rs/src/task.rs diff --git a/src/tera.rs b/loco-rs/src/tera.rs similarity index 100% rename from src/tera.rs rename to loco-rs/src/tera.rs diff --git a/src/testing.rs b/loco-rs/src/testing.rs similarity index 100% rename from src/testing.rs rename to loco-rs/src/testing.rs diff --git a/src/tests_cfg/app.rs b/loco-rs/src/tests_cfg/app.rs similarity index 100% rename from src/tests_cfg/app.rs rename to loco-rs/src/tests_cfg/app.rs diff --git a/src/tests_cfg/config.rs b/loco-rs/src/tests_cfg/config.rs similarity index 100% rename from src/tests_cfg/config.rs rename to loco-rs/src/tests_cfg/config.rs diff --git a/src/tests_cfg/db.rs b/loco-rs/src/tests_cfg/db.rs similarity index 100% rename from src/tests_cfg/db.rs rename to loco-rs/src/tests_cfg/db.rs diff --git a/src/tests_cfg/mod.rs b/loco-rs/src/tests_cfg/mod.rs similarity index 100% rename from src/tests_cfg/mod.rs rename to loco-rs/src/tests_cfg/mod.rs diff --git a/src/tests_cfg/task.rs b/loco-rs/src/tests_cfg/task.rs similarity index 100% rename from src/tests_cfg/task.rs rename to loco-rs/src/tests_cfg/task.rs diff --git a/src/validation.rs b/loco-rs/src/validation.rs similarity index 100% rename from src/validation.rs rename to loco-rs/src/validation.rs diff --git a/tests/controller/middlewares.rs b/loco-rs/tests/controller/middlewares.rs similarity index 100% rename from tests/controller/middlewares.rs rename to loco-rs/tests/controller/middlewares.rs diff --git a/tests/controller/mod.rs b/loco-rs/tests/controller/mod.rs similarity index 100% rename from tests/controller/mod.rs rename to loco-rs/tests/controller/mod.rs diff --git a/tests/controller/snapshots/cors_[default]@middlewares.snap b/loco-rs/tests/controller/snapshots/cors_[default]@middlewares.snap similarity index 100% rename from tests/controller/snapshots/cors_[default]@middlewares.snap rename to loco-rs/tests/controller/snapshots/cors_[default]@middlewares.snap diff --git a/tests/controller/snapshots/cors_[disabled]@middlewares.snap b/loco-rs/tests/controller/snapshots/cors_[disabled]@middlewares.snap similarity index 100% rename from tests/controller/snapshots/cors_[disabled]@middlewares.snap rename to loco-rs/tests/controller/snapshots/cors_[disabled]@middlewares.snap diff --git a/tests/controller/snapshots/cors_[with_allow_headers]@middlewares.snap b/loco-rs/tests/controller/snapshots/cors_[with_allow_headers]@middlewares.snap similarity index 100% rename from tests/controller/snapshots/cors_[with_allow_headers]@middlewares.snap rename to loco-rs/tests/controller/snapshots/cors_[with_allow_headers]@middlewares.snap diff --git a/tests/controller/snapshots/cors_[with_allow_methods]@middlewares.snap b/loco-rs/tests/controller/snapshots/cors_[with_allow_methods]@middlewares.snap similarity index 100% rename from tests/controller/snapshots/cors_[with_allow_methods]@middlewares.snap rename to loco-rs/tests/controller/snapshots/cors_[with_allow_methods]@middlewares.snap diff --git a/tests/controller/snapshots/cors_[with_max_age]@middlewares.snap b/loco-rs/tests/controller/snapshots/cors_[with_max_age]@middlewares.snap similarity index 100% rename from tests/controller/snapshots/cors_[with_max_age]@middlewares.snap rename to loco-rs/tests/controller/snapshots/cors_[with_max_age]@middlewares.snap diff --git a/tests/controller/snapshots/panic@middlewares.snap b/loco-rs/tests/controller/snapshots/panic@middlewares.snap similarity index 100% rename from tests/controller/snapshots/panic@middlewares.snap rename to loco-rs/tests/controller/snapshots/panic@middlewares.snap diff --git a/tests/controller/snapshots/secure_headers_[empty]_overrides[none]@middlewares.snap b/loco-rs/tests/controller/snapshots/secure_headers_[empty]_overrides[none]@middlewares.snap similarity index 100% rename from tests/controller/snapshots/secure_headers_[empty]_overrides[none]@middlewares.snap rename to loco-rs/tests/controller/snapshots/secure_headers_[empty]_overrides[none]@middlewares.snap diff --git a/tests/controller/snapshots/secure_headers_[github]_overrides[Content-Security-Policy]@middlewares.snap b/loco-rs/tests/controller/snapshots/secure_headers_[github]_overrides[Content-Security-Policy]@middlewares.snap similarity index 100% rename from tests/controller/snapshots/secure_headers_[github]_overrides[Content-Security-Policy]@middlewares.snap rename to loco-rs/tests/controller/snapshots/secure_headers_[github]_overrides[Content-Security-Policy]@middlewares.snap diff --git a/tests/controller/snapshots/secure_headers_[none]_overrides[none]@middlewares.snap b/loco-rs/tests/controller/snapshots/secure_headers_[none]_overrides[none]@middlewares.snap similarity index 100% rename from tests/controller/snapshots/secure_headers_[none]_overrides[none]@middlewares.snap rename to loco-rs/tests/controller/snapshots/secure_headers_[none]_overrides[none]@middlewares.snap diff --git a/tests/fixtures/email_template/test/html.t b/loco-rs/tests/fixtures/email_template/test/html.t similarity index 100% rename from tests/fixtures/email_template/test/html.t rename to loco-rs/tests/fixtures/email_template/test/html.t diff --git a/tests/fixtures/email_template/test/subject.t b/loco-rs/tests/fixtures/email_template/test/subject.t similarity index 100% rename from tests/fixtures/email_template/test/subject.t rename to loco-rs/tests/fixtures/email_template/test/subject.t diff --git a/tests/fixtures/email_template/test/text.t b/loco-rs/tests/fixtures/email_template/test/text.t similarity index 100% rename from tests/fixtures/email_template/test/text.t rename to loco-rs/tests/fixtures/email_template/test/text.t diff --git a/tests/fixtures/scheduler/scheduler.yaml b/loco-rs/tests/fixtures/scheduler/scheduler.yaml similarity index 100% rename from tests/fixtures/scheduler/scheduler.yaml rename to loco-rs/tests/fixtures/scheduler/scheduler.yaml diff --git a/tests/infra_cfg/mod.rs b/loco-rs/tests/infra_cfg/mod.rs similarity index 100% rename from tests/infra_cfg/mod.rs rename to loco-rs/tests/infra_cfg/mod.rs diff --git a/tests/infra_cfg/server.rs b/loco-rs/tests/infra_cfg/server.rs similarity index 100% rename from tests/infra_cfg/server.rs rename to loco-rs/tests/infra_cfg/server.rs diff --git a/tests/mod.rs b/loco-rs/tests/mod.rs similarity index 100% rename from tests/mod.rs rename to loco-rs/tests/mod.rs From c47af039a7e0310578a88a1181f354eb2d5b1ebe Mon Sep 17 00:00:00 2001 From: Josh McKinney Date: Sun, 20 Oct 2024 06:42:49 -0700 Subject: [PATCH 2/2] add loco-rs to workflow cargo.toml --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 43d1e6c41..60c6f6e06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [workspace] resolver = "2" -members = ["xtask", "loco-extras"] +members = ["loco-rs", "loco-extras", "xtask"] exclude = ["starters"] [workspace.package]