Skip to main content

Crate lateritecmf

Crate lateritecmf 

Source
Expand description

Laterite CMF: the one crate an application depends on.

The framework is a family of crates with one version. This crate carries no code of its own: it re-exports each crate under a short name and forwards the database driver features, so an application names one dependency, pins one version, and reaches everything through one path.

[dependencies]
lateritecmf = { version = "0.9", features = ["postgres"] }
ⓘ
use lateritecmf::prelude::*;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    Bootstrap::new("config").module(AppModule).serve().await
}

A plugin depends on the crates it uses directly (laterite-core, laterite-admin), which keeps its dependency light; the umbrella is for the application that assembles them.

Re-exports§

pub use laterite_core as core;
pub use laterite_auth as auth;
pub use laterite_admin as admin;
pub use laterite_media as media;
pub use laterite_web as web;

Modules§

prelude
The names an application uses on nearly every page.