Crate elif_web

Crate elif_web 

Source
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
ApiErrorResponse
API error response structure
AppConfig
Default application configuration
BaseModule
Base module implementation for common functionality
Container
ContainerBuilder
Builder for constructing containers with services
ErrorDefinition
Error definition for the error catalog
ModuleLoader
Module loader for orchestrating module loading process
ModuleRegistry
Module registry for managing module lifecycle and dependencies
ProviderRegistry
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
ServiceRegistry
Registry for managing service instances and factories

Enums§

ConfigSource
Configuration source information for debugging and hot-reload
CoreError
Core error type for the elif framework
Environment
Environment enumeration
HttpError
HTTP server errors
ServiceScope
Service scope enumeration

Constants§

FRAMEWORK_NAME
Framework information
VERSION
Current version of elif.rs

Traits§

AppConfigTrait
Configuration trait for application configuration
Module
Application module trait that integrates with the framework
ServiceProvider
Service provider trait for registering services and managing lifecycle

Functions§

name
Get framework name
version
Get framework version

Type Aliases§

HttpResult
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