Twelve factor webapp crate
twelve is a support crate for creating twelve-factor webapps with axum.
Warning: Parts of this crate are still exploratory. Expect substantial API breakage between major versions.
Features
shutdown_signal()- Graceful shutdown handler for SIGTERM/SIGINT/SIGQUITRequestContext- Axum extractor for reverse proxyX-Script-Nameheaderpage::ErrorPage- HTML error page rendering with error chain displaypage::AppError- Trait for mapping errors to HTTP status codespage::RedirectOnSuccess- POST-Redirect-GET pattern helper
Removed features
- (0.2)
util::graceful_shutdown: Moved totwelve::shutdown_signal(). - (0.2)
util::as_opt_str: Replace withOption::as_deref()(stable since Rust 1.40). - (0.2)
from_env(): Callenvy::from_env()directly. - (0.2)
page::Page: Usemaud::Markupdirectly (enable maud'saxumfeature). - (0.2)
AppBuilder: Too opinionated. Copy the pattern if needed. - (0.2)
widgets: Empty module removed.