fabro/test/twin/openai/src/lib.rs
Bryan Helmkamp ad0d532691
chore(clippy): require reasons on allow attributes
Enable clippy::allow_attributes_without_reason at the workspace level.
Add concise, callsite-specific reasons to existing allow attributes, including generated code paths.
2026-04-19 20:24:24 -04:00

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))
}