Expand description
§elif.rs - The Rust web framework
elif.rs is a modern web framework designed for both exceptional developer experience and AI-native development.
This is the main umbrella package that provides a unified API and convenient imports for the entire elif.rs ecosystem.
Re-exports§
pub use elif_auth as auth;
pub use elif_cache as cache;
pub use elif_core as core;
pub use elif_http as http;
pub use elif_orm as orm;
pub use elif_macros as macros;
Modules§
- prelude
- Prelude
Structs§
- ApiError
- API error structure
- ApiError
Response - API error response structure
- AppConfig
- Default application configuration
- Base
Module - Base module implementation for common functionality
- Container
- Container
Builder - Builder for constructing containers with services
- Error
Definition - Error definition for the error catalog
- Module
Loader - Module loader for orchestrating module loading process
- Module
Registry - Module registry for managing module lifecycle and dependencies
- Provider
Registry - Provider registry manages service providers and their lifecycle
- Request
- Request abstraction that wraps Axum’s request types with additional parsing and extraction capabilities
- Response
- Response builder for creating HTTP responses with fluent API
- Router
- Main router for the elif.rs framework
- Server
- The main HTTP server - NestJS-like experience
- Service
Registry - Registry for managing service instances and factories
Enums§
- Config
Source - Configuration source information for debugging and hot-reload
- Core
Error - Core error type for the elif framework
- Environment
- Environment enumeration
- Http
Error - HTTP server errors
- Service
Scope - Service scope enumeration
Constants§
- FRAMEWORK_
NAME - Framework information
- VERSION
- Current version of elif.rs
Traits§
- AppConfig
Trait - Configuration trait for application configuration
- Module
- Application module trait that integrates with the framework
- Service
Provider - Service provider trait for registering services and managing lifecycle
Functions§
Type Aliases§
- Http
Result - Result type for HTTP operations
Attribute Macros§
- bootstrap
- Enhanced bootstrap macro for zero-boilerplate application startup
- controller
- Controller macro for defining controller base path and metadata
- main
- Attribute macro for async main functions in elif.rs applications
- module
- Module definition macro for dependency injection modules