max / makenotwork
| 1 | //! Multithreaded — MNW-integrated forum software. |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | use Config; |
| 14 | use PgPool; |
| 15 | use Arc; |
| 16 | |
| 17 | /// Shared application state available to all handlers. |
| 18 | |
| 19 | |
| 20 | pub db: PgPool, |
| 21 | pub config: Config, |
| 22 | pub http: Client, |
| 23 | /// Link preview fetcher. `LinkPreviewFetcher::Http` in production with an |
| 24 | /// SSRF-safe redirect policy; `LinkPreviewFetcher::Noop` in tests. |
| 25 | pub link_preview: LinkPreviewFetcher, |
| 26 | pub s3: , |
| 27 | |
| 28 |