Expand description
Core framework crate for at-rust-go: AppState, Config, AtrgApp builder, and error types.
Re-exports§
pub use app::AtrgApp;pub use config::Config;pub use error::AtrgError;pub use error::AtrgResult;pub use state::AppState;pub use rate_limit::RateLimitConfig;pub use rate_limit::RateLimiter;pub use shutdown::shutdown_signal;
Modules§
- app
- The
AtrgAppbuilder — the main entry point for assembling and running an atrg server. - config
- Configuration types and loader for
atrg.toml. - cors
- CORS layer builder.
- env_
override - Environment variable overrides for
atrg.tomlconfiguration. - error
- Framework error types that serialize to JSON responses.
- health
- Built-in health and readiness endpoints.
- pagination
- Cursor-based pagination helpers.
- rate_
limit - Token-bucket rate limiting middleware.
- request_
id - Request ID middleware — assigns a unique ID to each request.
- security
- Security headers middleware for production deployments.
- shutdown
- Graceful shutdown utilities for the atrg server.
- state
- Application state shared across all Axum handlers.
Functions§
- version
- Returns the crate version.