Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Upgrading

Moving an application to a newer framework version.

Read the changelog

The crates release together under one version. Read the version’s section of CHANGELOG.md before bumping.

BumpBefore 1.0
Patch, 0.9.19 to 0.9.20Additive or a fix. No code changes.
Minor, 0.11 to 0.12May break. The section lists what moved.

Bump the requirements

Every laterite-* and lateritecmf requirement moves together.

# Cargo.toml
[workspace.dependencies]
lateritecmf = { version = "0.12", features = ["postgres"] }
laterite-core = "0.12"
laterite-admin = "0.12"
# plugins/<folder>/Cargo.toml, for each plugin the application owns
[dependencies]
laterite-core = "0.12"
laterite-admin = "0.12"
CrateDescription
lateritecmfThe umbrella an application depends on.
laterite-coreConfiguration, migrations, modules, queries.
laterite-adminThe admin panel.
laterite-authSign-in, sessions, permissions.
laterite-mediaThe media library.
laterite-webThemes and public pages.
laterite-macrosThe translation-string macros.
laterite-cliThe lat command.
cargo install laterite-cli
cargo update
cargo build --release

A patch needs cargo update alone; the requirement already admits it.

Run the migrations

lat serve

Starting the application applies the framework’s new migrations, then the application’s and the plugins’.

Check the result

lat doctor