Skip to main content

Crate rustlavel_core

Crate rustlavel_core 

Source
Expand description

rustlavel-core: the foundation every rustlavel package builds on.

Configuration and .env loading, the JSON value model, the typed application context that replaces Laravel’s service container, structured logging, and the instrumentation bus that Telescope and tracing listen on.

Re-exports§

pub use config::Config;
pub use context::Context;
pub use context::ContextBuilder;
pub use dispatcher::AppEvent;
pub use dispatcher::Dispatcher;
pub use error::Error;
pub use error::Result;
pub use events::Event;
pub use json::Json;

Modules§

config
Configuration: config.get("app.name").
context
The application context: configuration plus shared, typed state.
dispatcher
Application events and listeners.
env
Our own .env loader.
error
events
The internal instrumentation bus.
json
A self-contained JSON implementation: value model, parser, and serializer.
log
Leveled logging that doubles as instrumentation.

Macros§

debug
error
info
warn

Functions§

boot
Load .env and build the default configuration tree.