Skip to main content

Crate rullst_core

Crate rullst_core 

Source
Expand description

Rullst Core Library

Re-exports§

pub use routing::Router;
pub use server::Server;
pub use server::ServerError;
pub use config::AppConfig;
pub use config::DatabaseConfig;
pub use config::RullstConfig;
pub use config::SecurityConfig;
pub use htmx::HtmxRequest;
pub use htmx::HtmxResponse;
pub use htmx::render_page;
pub use lifecycle::ApplicationLifecycle;
pub use lifecycle::ApplicationLifecycleError;
pub use lifecycle::ApplicationPhase;
pub use lifecycle::ReadinessSnapshot;
pub use lifecycle::apply_lifecycle;
pub use cache::Cache;
pub use cache::TenantCache;
pub use di::Container;
pub use di::DiError;
pub use di::Inject;
pub use di::Injectable;
pub use queue::Queue;
pub use queue::QueuedJobDetail;
pub use queue::Worker;
pub use queue::WorkerHandle;
pub use realtime::BroadcastManager;
pub use realtime::Channel;
pub use realtime::RealtimeError;
pub use realtime::RealtimeMessage;
pub use realtime::TenantPresence;
pub use realtime::TenantRealtime;
pub use scheduler::Scheduler;
pub use scheduler::SchedulerError;
pub use scheduler::SchedulerFailurePolicy;
pub use scheduler::SchedulerHandle;
pub use storage::LocalDriver;
pub use storage::Storage;
pub use storage::StorageDriver;
pub use storage::StorageError;
pub use storage::TenantStorage;
pub use uploads::OfflineMockScanner;
pub use uploads::QuarantinedUpload;
pub use uploads::ReleasedUpload;
pub use uploads::ScanVerdict;
pub use uploads::UploadError;
pub use uploads::UploadKind;
pub use uploads::UploadPolicy;
pub use uploads::UploadScanner;
pub use validation::ValidatedForm;
pub use validation::ValidatedJson;
pub use validation::ValidationError;
pub use ws::WebSocket;
pub use ws::WsError;
pub use production::AcademyBoundaryAssessment;
pub use production::AcademyCheckStatus;
pub use production::AcademyPresetError;
pub use production::AcademyProductionPreset;
pub use production::AcademyProductionRequirement;
pub use production::ProductionMiddlewareStage;
pub use production::ProductionPreset;
pub use resilience::RateLimitConfig;
pub use resilience::RateLimiter;
pub use resilience::TrafficShield;
pub use resilience::TrafficShieldConfig;
pub use resilience::TrafficShieldError;
pub use resilience::backpressure_middleware;
pub use resilience::rate_limit_middleware;
pub use security::SecurityBaselineError;
pub use security::apply_security_baseline;
pub use feature::EnvFeatureDriver;
pub use feature::FeatureDriver;
pub use feature::FeatureManager;
pub use feature::MemoryFeatureDriver;
pub use feature::TomlFeatureDriver;
pub use multitenant::TenantConfig;
pub use multitenant::TenantLayer;
pub use multitenant::TenantService;
pub use multitenant::TenantStrategy;
pub use multitenant::tenant_layer;
pub use testing::TestApp;
pub use testing::TestRequestBuilder;
pub use testing::TestResponse;
pub use axum::http;

Modules§

async_runtime
Re-exported underlying asynchronous engine (Tokio).
cache
Rullst Cache System (rullst::cache)
client
Edge client components rendering module.
client_contract
Portable, versioned wire contract shared by web and platform clients. Bounded, versioned JSON envelopes for Rullst web and platform clients.
config
Rullst application and server configuration models.
db
Rullst Database Extensions (rullst::db)
devops
Agentic DevOps Engine & Infrastructure Tuning (Milestone 20).
di
Type-indexed dependency injection container. Type-indexed dependency injection container (rullst::di).
edge
Rullst Edge Runtime (rullst::edge)
error_console
HTML visual logging and runtime console for development mode. Interactive dev error console with source context inspection and AI assistance.
feature
Feature flagging management and drivers. Feature flags system for rullst-core.
frontend
Hybrid Frontend SSR Adapters (Leptos, Dioxus, HTMX). Modular Frontend Engines & SSR Adapters for Rullst.
health
Kubernetes and Cloud-Native Health Probes. Kubernetes and Cloud-Native Health Probes (Liveness & Readiness)
html
Fast compile-time HTML rendering utilities.
htmx
HTMX helpers for rapid reactive UI design.
lifecycle
Process readiness and graceful request-drain coordination. Bounded process lifecycle, readiness, and graceful request draining.
live
Live state synchronization and server-push connection handlers.
multitenant
Multitenancy request routing and tenant state isolation layers.
production
Canonical production middleware ordering contract. Canonical production middleware ordering contract.
queue
Rullst Queue System (rullst::queue)
radar
Rullst Radar Kernel-Level Telemetry & Tokio runtime visualizer. Rullst Radar — process telemetry and Tokio runtime observations (rullst::radar).
realtime
Native Real-Time Engine (Channels, Broadcast, Presence). Native Real-Time Engine (Channels, Broadcast, Presence).
resilience
Network and service resilience (rate limits, traffic shield, load shedding).
response
Standard HTTP response types and helpers.
routing
High-performance application routers built on Axum.
rpc
Typed, versioned browser-to-server function transport. Versioned transport primitives for #[server_function].
runtime
Internal asynchronous runtime wrappers.
scalar
Interactive Scalar API documentation UI. Interactive Scalar API Documentation Page (/docs)
scheduler
Rullst Task Scheduler (rullst::scheduler)
security
CSRF tokens, CORS, and response headers security policies. Security middlewares and utilities for rullst-core.
server
Rullst HTTP web server core engine. Application server bootstrap, hot-reloader, and Tower middleware integration.
storage
File and cloud storage abstraction layer. Unified Object Storage & Media Pipeline for Rullst applications.
telemetry
Rullst OpenTelemetry and Tracing.
telemetry_spans
Distributed Tracing Spans Collector. Distributed Tracing Telemetry & Flamegraph Collector.
testing
Scaffolding tools for robust integration testing.
uploads
Server-side upload admission and quarantine contracts.
validation
Strongly-typed request validation extractors.
web
Web server engine re-exports (Axum, Tower, Tower-HTTP).
ws
WebSocket live connection and messaging system.

Macros§

html
A macro for writing HTML inline in Rust. It compiles down to highly optimized string concatenations at compile time, and automatically escapes dynamic variables to prevent XSS.
routes
Declarative macro for building a Router from a list of HTTP route definitions.

Traits§

Validate
This is the original trait that was implemented by deriving Validate. It will still be implemented for struct validations that don’t take custom arguments. The call is being forwarded to the ValidateArgs<'v_a> trait.

Attribute Macros§

async_trait
island
Proc macro attribute to define a Wasm Island client component.
live_component
Proc macro attribute to define a Live Component. Automatically implements the LiveComponent trait and wires #[live_event] methods.
live_event
Marker attribute for events handled by a Live Component.
memoize
A macro for intelligent caching of component renders or database queries. It wraps a function, caching the returned output based on the function’s arguments. If the function is called again with the same arguments, it returns the cached HTML immediately.
route
Legacy compatibility marker that preserves the annotated function unchanged.
server_function
Defines a bounded, dual-target Rullst server function.

Derive Macros§

Validate