Crate kit_rs

Crate kit_rs 

Source

Re-exports§

pub use config::env;
pub use config::env;
pub use config::env_optional;
pub use config::env_required;
pub use config::AppConfig;
pub use config::Config;
pub use config::Environment;
pub use config::ServerConfig;
pub use container::App;
pub use container::Container;
pub use http::json;
pub use http::text;
pub use http::HttpResponse;
pub use http::Redirect;
pub use http::Request;
pub use http::Response;
pub use http::ResponseExt;
pub use inertia::InertiaConfig;
pub use inertia::InertiaContext;
pub use inertia::InertiaResponse;
pub use middleware::Middleware;
pub use middleware::MiddlewareFuture;
pub use middleware::MiddlewareRegistry;
pub use middleware::Next;
pub use routing::delete;
pub use routing::get;
pub use routing::post;
pub use routing::put;
pub use routing::route;
pub use routing::GroupBuilder;
pub use routing::GroupRouter;
pub use routing::RouteBuilder;
pub use routing::RouteDefBuilder;
pub use routing::Router;
pub use server::Server;
pub use serde;

Modules§

config
Configuration module for Kit framework
container
Application Container for Dependency Injection
http
inertia
middleware
Middleware system for Kit framework
routing
server
testing
Testing utilities for the application container

Macros§

bind
Bind a trait to a singleton implementation (auto-wraps in Arc)
bind_factory
Bind a trait to a factory (auto-wraps in Arc, new instance each resolution)
factory
Register a factory (concrete type, new instance each resolution)
inertia_response
Create an Inertia response with compile-time component validation
json_response
redirect
Create a redirect to a named route with compile-time validation
routes
Define routes with a clean, Laravel-like syntax
singleton
Register a singleton instance (concrete type)
text_response

Attribute Macros§

async_trait
injectable
Attribute macro to auto-register a concrete type as a singleton
service
Mark a trait as a service for the App container

Derive Macros§

InertiaProps
Derive macro for generating Serialize implementation for Inertia props