1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//! ryuk: a Laravel-style full-stack framework on axum.
//!
//! Every module is a Cargo feature (all on by default via `full`):
//!
//! | feature | adds |
//! |--------------|--------------------------------------------------|
//! | `sessions` | session layer |
//! | `inertia` | Inertia protocol, Vite assets, flash/errors |
//! | `auth` | argon2 passwords, `Auth` extractors |
//! | `validation` | `Form<T>` extractor |
//! | `openapi` | utoipa docs at `/docs` and `/openapi.json` |
//! | `db` | SeaORM connect + migrations |
//! | `queue` | database-backed jobs (needs `db`) |
//! | `api` | web/api route groups, `ApiAuth`, JSON errors, CORS |
//! | `apikeys` | API keys for machine clients |
//! | `oauth-server` | OAuth2 authorization server |
//! | `social` | social login (GitHub, Google) |
//! | `passkey` | WebAuthn/FIDO2 passkeys (needs `auth`, `db`, `sessions`) |
//! | `push` | device registry, FCM + APNs push notifications |
//! | `mail` | log / SMTP mailer |
//! | `s3` `mcp` | S3-compatible disk, Model Context Protocol server |
//! | `storage` `http` `cache` `events` `schedule` | disks, HTTP client, cache, events, scheduler |
//! | `gate` `crypt` `notifications` `lang` | policies, encryption + signed URLs, notifications, localization |
//! | `csrf` | CSRF middleware (Inertia/axios compatible) |
//! | `safety` | login throttle, one-time tokens (needs `db`) |
//! | `sqlite` `postgres` `mysql` | database drivers (URL scheme picks one) |
//! | `session-db` `session-file` `session-moka` `session-redis` | session stores |
// Principal, ApiAuth, ApiError, TokenVerifier, rate limit
// API keys
// App builder, env Config, serve(), tracing init
// password hashing, Auth extractors
// Cache (memory + db stores)
// Crypt (AES-256-GCM) + signed URLs
// CSRF middleware (XSRF-TOKEN cookie)
// SeaORM connect + migration runner
// event dispatcher + listeners
// authorization gates + policies
// /healthz + /readyz
// Http client facade
// Inertia protocol, shared props, flash, 303 redirects
// Mailer (lettre), log/smtp transports
// notifications (mail, database channels)
// OAuth2 authorization server
// utoipa-axum router + /docs (Scalar) + /openapi.json
// WebAuthn/FIDO2 passkeys (registration + discoverable sign-in)
// trusted proxies, ClientIp extractor
// device registry + FCM/APNs push notifications
// background jobs
// S3-compatible storage disk
// task scheduler
// security headers, request limits
// cookie session layer
// social login (OAuth2 client)
// Storage disks (local filesystem)
// DB-backed login throttling / lockout
// DB-backed one-time tokens (email verify, password reset)
// Form<T> extractor, errors -> Inertia props // localization // Model Context Protocol server