Crate rustisan_core

Source
Expand description

§Rustisan Core

The core of the Rustisan web framework, inspired by Laravel. This crate provides the fundamental components for building modern web applications in Rust.

Re-exports§

pub use app::Application;
pub use config::Config;
pub use container::Container;
pub use errors::RustisanError;
pub use errors::Result;
pub use errors::ValidationErrors;
pub use errors::ValidationErrorDetails;
pub use http::Request;
pub use http::Response;
pub use routing::Router;
pub use routing::Route;
pub use routing::RouteGroup;
pub use routing::RouteHandler;
pub use axum;
pub use serde;
pub use serde_json;
pub use tokio;
pub use uuid;
pub use chrono;

Modules§

app
Application module for the Rustisan framework
config
Configuration module for the Rustisan framework
container
Simple container module placeholder
errors
Error handling module for the Rustisan framework
http
HTTP module for the Rustisan framework
middleware
Middleware module placeholder
routing
Routing module for the Rustisan framework
traits
Common traits for the Rustisan framework
utils
Utility functions and helpers for the Rustisan framework

Macros§

impl_model
Macro to implement the Model trait with basic functionality
impl_service
Macro to implement the Service trait for a type
route_group
Macro to simplify route group registration
routes
Macro to simplify route registration
rustisan_app
Macro to create a new Rustisan application
rustisan_error
Macro for creating RustisanError quickly
validation_error
Macro for creating validation errors quickly

Constants§

VERSION
Framework version

Traits§

RustisanApp
Main trait for Rustisan applications

Functions§

create_app
Utility function to create a new Rustisan application
create_app_with_config
Utility function to create a new Rustisan application with configuration
init_logging
Utility function to initialize logging

Attribute Macros§

async_trait