feat: full clean architecture refactor — domain → application → infrastructure → presentation
- Restructure from Modular MVC to Clean Architecture with 4 strict layers - Domain: entities (anime/komik/proxy), Repository traits, typed errors - Application: use case classes with proper error propagation - Infrastructure: repository impls, parsers, Redis cache, HTTP/scraping, browser - Presentation: Axum handlers, DTOs, AppState, router, AppError+IntoResponse - Migrate all parsers (otakudesu, alqanime, komik) to native infra implementations - Replace once_cell::sync::Lazy/OnceCell with std::sync::LazyLock/OnceLock - Remove 150+ old files in modules/ and shared/ directories - Remove once_cell from Cargo.toml dependencies - Fix test/debug binaries to use new import paths - Zero new clippy warnings Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
80c96eaa42
commit
776fa828d8
+26
-6
@@ -1,10 +1,30 @@
|
||||
// Library root - clean organized module structure
|
||||
// All modules organized into logical folders
|
||||
// Library root — clean architecture module structure
|
||||
|
||||
// ============================================================================
|
||||
// Core Framework
|
||||
// Domain Layer — pure business logic, no framework dependencies
|
||||
// ============================================================================
|
||||
pub mod domain;
|
||||
|
||||
// ============================================================================
|
||||
// Application Layer — use cases / business orchestration
|
||||
// ============================================================================
|
||||
pub mod application;
|
||||
|
||||
// ============================================================================
|
||||
// Infrastructure Layer — implements domain ports
|
||||
// ============================================================================
|
||||
pub mod infrastructure;
|
||||
|
||||
// ============================================================================
|
||||
// Presentation Layer — Axum handlers, DTOs, state, middleware
|
||||
// ============================================================================
|
||||
pub mod presentation;
|
||||
|
||||
// ============================================================================
|
||||
// Core Framework & Infrastructure
|
||||
// ============================================================================
|
||||
pub mod app;
|
||||
pub mod bootstrap;
|
||||
pub mod modules;
|
||||
pub mod shared;
|
||||
pub mod config;
|
||||
pub mod events;
|
||||
pub mod observability;
|
||||
pub mod scheduler;
|
||||
|
||||
Reference in New Issue
Block a user