laravel-rust 0.1.0

Laravel for Rust: a full-stack Rust web framework, inspired by PHP Laravel
Documentation
//! Typed configuration sections, read from the environment.
//!
//! Your application needs different settings on your machine and in production. For example,
//! you might use the memory cache locally and Redis on the server. [`Config`] holds every
//! setting as a typed field, with one section per subsystem, so a misspelled setting doesn't
//! compile. Read the configuration from anywhere in the application with [`config()`].
//!
//! Each section's `from_env` constructor starts from the section's [`Default`] and overrides the
//! fields whose environment variables are set in the [`Env`]. To change a section in code, write
//! a config file. A config file is a function marked [`#[config::section]`](macro@section) that
//! returns the section:
//!
//! ```
//! use laravel::config::session::{Driver, Session};
//! use laravel::config::{self, Env};
//!
//! #[config::section]
//! fn session(env: &Env) -> Session {
//!     Session {
//!         driver: env.get("SESSION_DRIVER").unwrap_or(Driver::File),
//!         ..Session::from_env(env)
//!     }
//! }
//! ```
//!
//! Your application's own sections, such as the credentials of third-party services, are types
//! that derive [`Section`](derive@Section). Read them with [`Config::section`], or take a
//! [`struct@Section`] argument in a handler.
//!
//! When a variable is set to a value that doesn't parse, the field keeps its default and the
//! application refuses to start. The startup error lists every invalid variable at once. To learn
//! more, check out the [configuration guide](https://github.com/laravel/rust-framework/blob/0.x/docs/configuration.md).

#[cfg(feature = "database")]
#[doc(inline)]
pub use laravel_core::config::database;
#[cfg(feature = "inertia")]
#[doc(inline)]
pub use laravel_core::config::inertia;
#[cfg(feature = "opentelemetry")]
#[doc(inline)]
pub use laravel_core::config::opentelemetry;
pub(crate) use laravel_core::config::*;
#[doc(hidden)]
pub use laravel_core::config::{__Builtin, __Minutes, __Registration, __Seconds, __configure, __split};
#[doc(inline)]
pub use laravel_core::config::{
    Config, DriverSettings, Env, InvalidEnv, Section, UnknownValue, app, broadcasting, cache, cloud, config, cors,
    features, filesystems, hashing, logging, mail, queue, redis, reverb, section, server, session, slack, sms, social,
    workflow,
};
#[cfg(feature = "search")]
#[doc(inline)]
pub use laravel_search::search::config as search;