diff --git a/Cargo.toml b/Cargo.toml index 945a84f672..96d397e4d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,10 +5,10 @@ members = [ "crates/cli/database_backup", "crates/cli/database_cleanup", - # Complete subsystems that can be plugged into services - "crates/component_subsystem/billing", - "crates/component_subsystem/inference_workloads", - "crates/component_subsystem/users", + # Plugins are complete subsystems that can be plugged into services (users, billing, etc.) + "crates/plugins/billing", + "crates/plugins/inference_workloads", + "crates/plugins/users", # Shared libraries "crates/lib/config", diff --git a/crates/component_subsystem/README.md b/crates/component_subsystem/README.md deleted file mode 100644 index 75efd4eae1..0000000000 --- a/crates/component_subsystem/README.md +++ /dev/null @@ -1,5 +0,0 @@ -http_endpoints_common -===================== -This directory contains Rust library packages that contain common and reusable HTTP endpoints. -These might be things that are incorporated into different services, but otherwise broadly reusable. -User account creation, login, billing, etc. diff --git a/crates/plugins/README.md b/crates/plugins/README.md new file mode 100644 index 0000000000..e224c9f72b --- /dev/null +++ b/crates/plugins/README.md @@ -0,0 +1,3 @@ +plugins +======= +These libraries are of "bigger scope" and can be theoretically reused in different websites. diff --git a/crates/component_subsystem/billing/Cargo.toml b/crates/plugins/billing/Cargo.toml similarity index 100% rename from crates/component_subsystem/billing/Cargo.toml rename to crates/plugins/billing/Cargo.toml diff --git a/crates/component_subsystem/billing/src/default_routes.rs b/crates/plugins/billing/src/default_routes.rs similarity index 100% rename from crates/component_subsystem/billing/src/default_routes.rs rename to crates/plugins/billing/src/default_routes.rs diff --git a/crates/component_subsystem/billing/src/lib.rs b/crates/plugins/billing/src/lib.rs similarity index 100% rename from crates/component_subsystem/billing/src/lib.rs rename to crates/plugins/billing/src/lib.rs diff --git a/crates/component_subsystem/billing/src/paypal/mod.rs b/crates/plugins/billing/src/paypal/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/paypal/mod.rs rename to crates/plugins/billing/src/paypal/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/helpers/common_metadata_keys.rs b/crates/plugins/billing/src/stripe/helpers/common_metadata_keys.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/helpers/common_metadata_keys.rs rename to crates/plugins/billing/src/stripe/helpers/common_metadata_keys.rs diff --git a/crates/component_subsystem/billing/src/stripe/helpers/enums/mod.rs b/crates/plugins/billing/src/stripe/helpers/enums/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/helpers/enums/mod.rs rename to crates/plugins/billing/src/stripe/helpers/enums/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/helpers/enums/recurring_interval_to_reusable_type.rs b/crates/plugins/billing/src/stripe/helpers/enums/recurring_interval_to_reusable_type.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/helpers/enums/recurring_interval_to_reusable_type.rs rename to crates/plugins/billing/src/stripe/helpers/enums/recurring_interval_to_reusable_type.rs diff --git a/crates/component_subsystem/billing/src/stripe/helpers/enums/subscription_status_to_reusable_type.rs b/crates/plugins/billing/src/stripe/helpers/enums/subscription_status_to_reusable_type.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/helpers/enums/subscription_status_to_reusable_type.rs rename to crates/plugins/billing/src/stripe/helpers/enums/subscription_status_to_reusable_type.rs diff --git a/crates/component_subsystem/billing/src/stripe/helpers/expand_customer_id.rs b/crates/plugins/billing/src/stripe/helpers/expand_customer_id.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/helpers/expand_customer_id.rs rename to crates/plugins/billing/src/stripe/helpers/expand_customer_id.rs diff --git a/crates/component_subsystem/billing/src/stripe/helpers/expand_product_id.rs b/crates/plugins/billing/src/stripe/helpers/expand_product_id.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/helpers/expand_product_id.rs rename to crates/plugins/billing/src/stripe/helpers/expand_product_id.rs diff --git a/crates/component_subsystem/billing/src/stripe/helpers/expand_subscription_id.rs b/crates/plugins/billing/src/stripe/helpers/expand_subscription_id.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/helpers/expand_subscription_id.rs rename to crates/plugins/billing/src/stripe/helpers/expand_subscription_id.rs diff --git a/crates/component_subsystem/billing/src/stripe/helpers/mod.rs b/crates/plugins/billing/src/stripe/helpers/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/helpers/mod.rs rename to crates/plugins/billing/src/stripe/helpers/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/helpers/verify_stripe_webhook_ip_address.rs b/crates/plugins/billing/src/stripe/helpers/verify_stripe_webhook_ip_address.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/helpers/verify_stripe_webhook_ip_address.rs rename to crates/plugins/billing/src/stripe/helpers/verify_stripe_webhook_ip_address.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/checkout/create/mod.rs b/crates/plugins/billing/src/stripe/http_endpoints/checkout/create/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/checkout/create/mod.rs rename to crates/plugins/billing/src/stripe/http_endpoints/checkout/create/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_error.rs b/crates/plugins/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_error.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_error.rs rename to crates/plugins/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_error.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_json_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_json_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_json_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_json_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_redirect_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_redirect_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_redirect_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_redirect_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_shared.rs b/crates/plugins/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_shared.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_shared.rs rename to crates/plugins/billing/src/stripe/http_endpoints/checkout/create/stripe_create_checkout_session_shared.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/checkout/mod.rs b/crates/plugins/billing/src/stripe/http_endpoints/checkout/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/checkout/mod.rs rename to crates/plugins/billing/src/stripe/http_endpoints/checkout/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/checkout/stripe_checkout_success_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/checkout/stripe_checkout_success_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/checkout/stripe_checkout_success_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/checkout/stripe_checkout_success_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/customer_portal/mod.rs b/crates/plugins/billing/src/stripe/http_endpoints/customer_portal/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/customer_portal/mod.rs rename to crates/plugins/billing/src/stripe/http_endpoints/customer_portal/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/customer_portal/stripe_create_customer_portal_session_redirect_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/customer_portal/stripe_create_customer_portal_session_redirect_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/customer_portal/stripe_create_customer_portal_session_redirect_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/customer_portal/stripe_create_customer_portal_session_redirect_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/mod.rs b/crates/plugins/billing/src/stripe/http_endpoints/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/mod.rs rename to crates/plugins/billing/src/stripe/http_endpoints/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/mod.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/mod.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/stripe_webhook_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/stripe_webhook_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/stripe_webhook_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/stripe_webhook_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/charge/charge_succeeded_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/charge/charge_succeeded_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/charge/charge_succeeded_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/charge/charge_succeeded_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/charge/mod.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/charge/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/charge/mod.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/charge/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/checkout_session/checkout_session_completed_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/checkout_session/checkout_session_completed_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/checkout_session/checkout_session_completed_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/checkout_session/checkout_session_completed_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/checkout_session/mod.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/checkout_session/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/checkout_session/mod.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/checkout_session/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/customer_created_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/customer_created_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/customer_created_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/customer_created_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/customer_deleted_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/customer_deleted_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/customer_deleted_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/customer_deleted_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/customer_updated_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/customer_updated_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/customer_updated_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/customer_updated_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/mod.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/mod.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/calculate_subscription_end_date.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/calculate_subscription_end_date.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/calculate_subscription_end_date.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/calculate_subscription_end_date.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/common.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/common.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/common.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/common.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/customer_subscription_created_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/customer_subscription_created_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/customer_subscription_created_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/customer_subscription_created_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/customer_subscription_deleted_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/customer_subscription_deleted_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/customer_subscription_deleted_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/customer_subscription_deleted_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/customer_subscription_updated_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/customer_subscription_updated_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/customer_subscription_updated_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/customer_subscription_updated_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/mod.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/mod.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/subscription_event_extractor.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/subscription_event_extractor.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/subscription_event_extractor.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/customer_subscription/subscription_event_extractor.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_paid_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_paid_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_paid_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_paid_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_payment_failed.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_payment_failed.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_payment_failed.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_payment_failed.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_payment_succeeded_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_payment_succeeded_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_payment_succeeded_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_payment_succeeded_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_updated_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_updated_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_updated_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/invoice_updated_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/mod.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/mod.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/invoice/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/mod.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/mod.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/payment_intent/mod.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/payment_intent/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/payment_intent/mod.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/payment_intent/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/payment_intent/payment_intent_succeeded_handler.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/payment_intent/payment_intent_succeeded_handler.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/payment_intent/payment_intent_succeeded_handler.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/payment_intent/payment_intent_succeeded_handler.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/stripe_webhook_error.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/stripe_webhook_error.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/stripe_webhook_error.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/stripe_webhook_error.rs diff --git a/crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/stripe_webhook_summary.rs b/crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/stripe_webhook_summary.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/stripe_webhook_summary.rs rename to crates/plugins/billing/src/stripe/http_endpoints/webhook/webhook_event_handlers/stripe_webhook_summary.rs diff --git a/crates/component_subsystem/billing/src/stripe/mod.rs b/crates/plugins/billing/src/stripe/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/mod.rs rename to crates/plugins/billing/src/stripe/mod.rs diff --git a/crates/component_subsystem/billing/src/stripe/stripe_config.rs b/crates/plugins/billing/src/stripe/stripe_config.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/stripe_config.rs rename to crates/plugins/billing/src/stripe/stripe_config.rs diff --git a/crates/component_subsystem/billing/src/stripe/traits/internal_product_to_stripe_lookup.rs b/crates/plugins/billing/src/stripe/traits/internal_product_to_stripe_lookup.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/traits/internal_product_to_stripe_lookup.rs rename to crates/plugins/billing/src/stripe/traits/internal_product_to_stripe_lookup.rs diff --git a/crates/component_subsystem/billing/src/stripe/traits/internal_subscription_product_lookup.rs b/crates/plugins/billing/src/stripe/traits/internal_subscription_product_lookup.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/traits/internal_subscription_product_lookup.rs rename to crates/plugins/billing/src/stripe/traits/internal_subscription_product_lookup.rs diff --git a/crates/component_subsystem/billing/src/stripe/traits/internal_user_lookup.rs b/crates/plugins/billing/src/stripe/traits/internal_user_lookup.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/traits/internal_user_lookup.rs rename to crates/plugins/billing/src/stripe/traits/internal_user_lookup.rs diff --git a/crates/component_subsystem/billing/src/stripe/traits/mod.rs b/crates/plugins/billing/src/stripe/traits/mod.rs similarity index 100% rename from crates/component_subsystem/billing/src/stripe/traits/mod.rs rename to crates/plugins/billing/src/stripe/traits/mod.rs diff --git a/crates/component_subsystem/inference_workloads/Cargo.toml b/crates/plugins/inference_workloads/Cargo.toml similarity index 100% rename from crates/component_subsystem/inference_workloads/Cargo.toml rename to crates/plugins/inference_workloads/Cargo.toml diff --git a/crates/component_subsystem/inference_workloads/src/lib.rs b/crates/plugins/inference_workloads/src/lib.rs similarity index 100% rename from crates/component_subsystem/inference_workloads/src/lib.rs rename to crates/plugins/inference_workloads/src/lib.rs diff --git a/crates/component_subsystem/users/Cargo.toml b/crates/plugins/users/Cargo.toml similarity index 100% rename from crates/component_subsystem/users/Cargo.toml rename to crates/plugins/users/Cargo.toml diff --git a/crates/component_subsystem/users/src/default_routes.rs b/crates/plugins/users/src/default_routes.rs similarity index 100% rename from crates/component_subsystem/users/src/default_routes.rs rename to crates/plugins/users/src/default_routes.rs diff --git a/crates/component_subsystem/users/src/endpoints/create_account_handler.rs b/crates/plugins/users/src/endpoints/create_account_handler.rs similarity index 100% rename from crates/component_subsystem/users/src/endpoints/create_account_handler.rs rename to crates/plugins/users/src/endpoints/create_account_handler.rs diff --git a/crates/component_subsystem/users/src/endpoints/edit_profile_handler.rs b/crates/plugins/users/src/endpoints/edit_profile_handler.rs similarity index 100% rename from crates/component_subsystem/users/src/endpoints/edit_profile_handler.rs rename to crates/plugins/users/src/endpoints/edit_profile_handler.rs diff --git a/crates/component_subsystem/users/src/endpoints/get_profile_handler.rs b/crates/plugins/users/src/endpoints/get_profile_handler.rs similarity index 100% rename from crates/component_subsystem/users/src/endpoints/get_profile_handler.rs rename to crates/plugins/users/src/endpoints/get_profile_handler.rs diff --git a/crates/component_subsystem/users/src/endpoints/login_handler.rs b/crates/plugins/users/src/endpoints/login_handler.rs similarity index 100% rename from crates/component_subsystem/users/src/endpoints/login_handler.rs rename to crates/plugins/users/src/endpoints/login_handler.rs diff --git a/crates/component_subsystem/users/src/endpoints/logout_handler.rs b/crates/plugins/users/src/endpoints/logout_handler.rs similarity index 100% rename from crates/component_subsystem/users/src/endpoints/logout_handler.rs rename to crates/plugins/users/src/endpoints/logout_handler.rs diff --git a/crates/component_subsystem/users/src/endpoints/mod.rs b/crates/plugins/users/src/endpoints/mod.rs similarity index 100% rename from crates/component_subsystem/users/src/endpoints/mod.rs rename to crates/plugins/users/src/endpoints/mod.rs diff --git a/crates/component_subsystem/users/src/endpoints/session_info_handler.rs b/crates/plugins/users/src/endpoints/session_info_handler.rs similarity index 100% rename from crates/component_subsystem/users/src/endpoints/session_info_handler.rs rename to crates/plugins/users/src/endpoints/session_info_handler.rs diff --git a/crates/component_subsystem/users/src/lib.rs b/crates/plugins/users/src/lib.rs similarity index 100% rename from crates/component_subsystem/users/src/lib.rs rename to crates/plugins/users/src/lib.rs diff --git a/crates/component_subsystem/users/src/utils/email_to_gravatar.rs b/crates/plugins/users/src/utils/email_to_gravatar.rs similarity index 100% rename from crates/component_subsystem/users/src/utils/email_to_gravatar.rs rename to crates/plugins/users/src/utils/email_to_gravatar.rs diff --git a/crates/component_subsystem/users/src/utils/mod.rs b/crates/plugins/users/src/utils/mod.rs similarity index 100% rename from crates/component_subsystem/users/src/utils/mod.rs rename to crates/plugins/users/src/utils/mod.rs diff --git a/crates/component_subsystem/users/src/utils/session_checker.rs b/crates/plugins/users/src/utils/session_checker.rs similarity index 100% rename from crates/component_subsystem/users/src/utils/session_checker.rs rename to crates/plugins/users/src/utils/session_checker.rs diff --git a/crates/component_subsystem/users/src/utils/session_cookie_manager.rs b/crates/plugins/users/src/utils/session_cookie_manager.rs similarity index 100% rename from crates/component_subsystem/users/src/utils/session_cookie_manager.rs rename to crates/plugins/users/src/utils/session_cookie_manager.rs diff --git a/crates/component_subsystem/users/src/utils/user_session_extended.rs b/crates/plugins/users/src/utils/user_session_extended.rs similarity index 100% rename from crates/component_subsystem/users/src/utils/user_session_extended.rs rename to crates/plugins/users/src/utils/user_session_extended.rs diff --git a/crates/component_subsystem/users/src/validations/is_reserved_username.rs b/crates/plugins/users/src/validations/is_reserved_username.rs similarity index 100% rename from crates/component_subsystem/users/src/validations/is_reserved_username.rs rename to crates/plugins/users/src/validations/is_reserved_username.rs diff --git a/crates/component_subsystem/users/src/validations/mod.rs b/crates/plugins/users/src/validations/mod.rs similarity index 100% rename from crates/component_subsystem/users/src/validations/mod.rs rename to crates/plugins/users/src/validations/mod.rs diff --git a/crates/component_subsystem/users/src/validations/validate_passwords.rs b/crates/plugins/users/src/validations/validate_passwords.rs similarity index 100% rename from crates/component_subsystem/users/src/validations/validate_passwords.rs rename to crates/plugins/users/src/validations/validate_passwords.rs diff --git a/crates/component_subsystem/users/src/validations/validate_profile_cashapp_username.rs b/crates/plugins/users/src/validations/validate_profile_cashapp_username.rs similarity index 100% rename from crates/component_subsystem/users/src/validations/validate_profile_cashapp_username.rs rename to crates/plugins/users/src/validations/validate_profile_cashapp_username.rs diff --git a/crates/component_subsystem/users/src/validations/validate_profile_discord_username.rs b/crates/plugins/users/src/validations/validate_profile_discord_username.rs similarity index 100% rename from crates/component_subsystem/users/src/validations/validate_profile_discord_username.rs rename to crates/plugins/users/src/validations/validate_profile_discord_username.rs diff --git a/crates/component_subsystem/users/src/validations/validate_profile_github_username.rs b/crates/plugins/users/src/validations/validate_profile_github_username.rs similarity index 100% rename from crates/component_subsystem/users/src/validations/validate_profile_github_username.rs rename to crates/plugins/users/src/validations/validate_profile_github_username.rs diff --git a/crates/component_subsystem/users/src/validations/validate_profile_twitch_username.rs b/crates/plugins/users/src/validations/validate_profile_twitch_username.rs similarity index 100% rename from crates/component_subsystem/users/src/validations/validate_profile_twitch_username.rs rename to crates/plugins/users/src/validations/validate_profile_twitch_username.rs diff --git a/crates/component_subsystem/users/src/validations/validate_profile_twitter_username.rs b/crates/plugins/users/src/validations/validate_profile_twitter_username.rs similarity index 100% rename from crates/component_subsystem/users/src/validations/validate_profile_twitter_username.rs rename to crates/plugins/users/src/validations/validate_profile_twitter_username.rs diff --git a/crates/component_subsystem/users/src/validations/validate_profile_website_url.rs b/crates/plugins/users/src/validations/validate_profile_website_url.rs similarity index 100% rename from crates/component_subsystem/users/src/validations/validate_profile_website_url.rs rename to crates/plugins/users/src/validations/validate_profile_website_url.rs diff --git a/crates/component_subsystem/users/src/validations/validate_username.rs b/crates/plugins/users/src/validations/validate_username.rs similarity index 100% rename from crates/component_subsystem/users/src/validations/validate_username.rs rename to crates/plugins/users/src/validations/validate_username.rs diff --git a/crates/service/storyteller_web/Cargo.toml b/crates/service/storyteller_web/Cargo.toml index 3d9c703f40..4f2abfe0db 100644 --- a/crates/service/storyteller_web/Cargo.toml +++ b/crates/service/storyteller_web/Cargo.toml @@ -32,8 +32,8 @@ url_config = { path = "../../lib/url_config" } user_input_common = { path = "../../lib/user_input_common" } # Internal Components -billing_component = { path = "../../component_subsystem/billing" } -users_component = { path = "../../component_subsystem/users" } +billing_component = { path = "../../plugins/billing" } +users_component = { path = "../../plugins/users" } # Vendored code newrelic-telemetry = { path = "../../vendor/newrelic-telemetry-sdk-rust" }