1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! **Rainier** — a Laravel-shaped MVC framework for Rust.
//!
//! ```no_run
//! use rainier::prelude::*;
//!
//! async fn index() -> &'static str {
//! "Hello from Rainier"
//! }
//!
//! # async fn run() -> Result<()> {
//! let app = Rainier::new(".")
//! .with_routes(|router| {
//! router.get("/", index).name("home");
//! })
//! .boot()
//! .await?;
//! # let _ = app; Ok(()) }
//! ```
//!
//! # This crate is a name
//!
//! Everything here is [`rainier-framework`](rainier_framework), re-exported.
//! The two are the same crate for every purpose except the line in your
//! `Cargo.toml`, and they are versioned together — `rainier` 1.2.3 is
//! `rainier-framework` 1.2.3 and nothing else.
//!
//! Depend on whichever reads better. `rainier` is shorter and makes
//! `use rainier::prelude::*` the obvious first line; `rainier-framework` says
//! what it is next to the twenty-odd `rainier-*` crates it is assembled from.
//!
//! # Where to start
//!
//! [`prelude`] has what an application uses constantly. The
//! [documentation](https://github.com/safewords/rainier-framework/tree/main/docs)
//! is organised the way Laravel's is, and names the Laravel counterpart of
//! every idea — including the places the two deliberately disagree.
pub use *;