rainier 1.0.1

A Laravel-shaped MVC framework for Rust: container, providers, router, request contracts, guards, jobs, mailables, facades, events.
Documentation
rainier-1.0.1 has been yanked.

Rainier

A Laravel-shaped MVC framework for Rust.

[dependencies]

rainier = { version = "1", features = ["sea-orm-executor"] }

use rainier::prelude::*;

async fn index() -> &'static str {
    "Hello from Rainier"
}

#[tokio::main]
async fn main() -> Result<()> {
    let app = Rainier::new(".")
        .with_routes(|router| {
            router.get("/", index).name("home");
        })
        .boot()
        .await?;

    rainier::console("rainier").run_from_env(&app).await;
    Ok(())
}

This crate is rainier-framework re-exported — the same crate under a shorter name, versioned together. Depend on whichever reads better.

Documentation · Laravel phrasebook · Starter app

Licence

MIT OR Apache-2.0.