mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-11 03:40:05 +00:00
Enable clippy::allow_attributes_without_reason at the workspace level. Add concise, callsite-specific reasons to existing allow attributes, including generated code paths.
26 lines
517 B
Rust
26 lines
517 B
Rust
#![allow(
|
|
clippy::result_large_err,
|
|
reason = "Twin HTTP handlers return full axum::Response errors directly."
|
|
)]
|
|
|
|
pub mod admin;
|
|
pub mod app;
|
|
pub mod config;
|
|
pub mod debug_ui;
|
|
pub mod engine;
|
|
pub mod logs;
|
|
pub mod openai;
|
|
pub mod sse;
|
|
pub mod state;
|
|
|
|
use axum::Router;
|
|
use config::Config;
|
|
use state::AppState;
|
|
|
|
pub fn build_app() -> Router {
|
|
build_app_with_config(Config::from_env().unwrap_or_default())
|
|
}
|
|
|
|
pub fn build_app_with_config(config: Config) -> Router {
|
|
app::router(AppState::new(config))
|
|
}
|