laravel-rust 0.1.0

Laravel for Rust: a full-stack Rust web framework, inspired by PHP Laravel
Documentation
//! The context of the work at hand: a request, a console command, a job, or
//! work run with [`Application::scope`](crate::Application::scope).
//!
//! Helpers such as [`config`](crate::config()), [`resolve`](crate::resolve), and
//! [`url::route`](crate::url::route) need the application, and passing it through every function
//! would be tedious. Instead, they read the current [`Context`], which the framework sets up for
//! each request and command it runs.
//!
//! - Most helpers need only the application, so they work in any context.
//! - [`cookie`](crate::cookie)'s functions and the referer that
//!   [`Redirect::back`](crate::http::Redirect::back) uses need a request.
//! - [`once`](crate::once()) and [`once_for`] memoize a value for as long as the context lasts.
//! - [`add`] and its siblings attach values to the context. Every log line written in the
//!   context carries the values you [`add`].
//!
//! A task spawned with `tokio::spawn` has no context, so helpers in it panic.
//! Spawn it with [`task::spawn`](crate::task::spawn), or wrap its future in
//! [`Context::scope`].
//!
//! See the [context guide](https://github.com/laravel/rust-framework/blob/0.x/docs/context.md).

pub(crate) use laravel_core::context::*;
#[doc(inline)]
pub use laravel_core::context::{
    Context, add, add_hidden, all, forget, forget_hidden, get, get_hidden, has, once, once_for,
};