Upgrading
- Introduction
- How upgrades work
- Running an upgrade
- Adding the upgrade skill to an existing application
Introduction
Laravel for Rust is currently in beta. Releases before 1.0 may include breaking changes to APIs and configuration.
Upgrading a Laravel for Rust application is designed to be handled by your AI coding agent. Every published release of laravel-rust ships its own version-matched documentation inside the crate, including a release-by-release upgrade log (docs/upgrade.md), and every new application includes an upgrading-laravel-rust Agent Skill that knows how to bump the crate, migrate your codebase, and verify Clippy and your test suite.
How upgrades work
Upgrades rely on two pieces working together:
- A bundled upgrade guide (
docs/upgrade.md). Alongside the version-matched reference guides insidelaravel-rust, each release bundles adocs/upgrade.mdfile listing every breaking API change, what to search for, before-and-after migration examples, and notable default or behavioral changes organized by release. Because it travels inside the crate itself, your agent reads the exact instructions for the release you are upgrading to rather than relying on training data or guesswork. - The
upgrading-laravel-rustskill. Every new application includes.agents/skills/upgrading-laravel-rust/SKILL.md, which walks your coding agent through the full upgrade process from bumpingCargo.tomlandCargo.lockto verifying Clippy and your tests.
Because docs/upgrade.md is organized chronologically by release, you can also jump across multiple releases in a single pass. Your agent applies every version section strictly newer than your starting version in order from oldest to newest.
Running an upgrade
Applications created with a recent starter kit already include .agents/skills/upgrading-laravel-rust/SKILL.md and list it in AGENTS.md. To upgrade, ask your coding agent:
1Upgrade Laravel to the latest version.1Upgrade Laravel to the latest version.
You may also ask for a specific release, such as "Upgrade Laravel to 0.2.0". Following the skill, your agent will:
- Record the currently resolved version of
laravel-rust. - Check crates.io for the target version, update
Cargo.toml(preserving your enabled Cargo features when crossing0.xminor versions), and runcargo update -p laravel-rust. - Locate the newly installed crate's
docs/directory and readdocs/upgrade.mdin full. - Search your application for every breaking change between your previous and target versions, apply the migrations that affect your code, and update any local
.agents/skills/examples that changed. - Format, lint, and test your application (
cargo fmt,cargo clippy --all-targets,cargo test, andcargo run -- route:list), then report what changed along with any behavioral or.envdefaults worth reviewing before you deploy.
Adding the upgrade skill to an existing application
If your application was created before the upgrading-laravel-rust skill was added to the starter kit, paste the following prompt into your coding agent to install the skill, register it in AGENTS.md, and run the upgrade in one step:
1Download https://raw.githubusercontent.com/laravel/rust/0.x/.agents/skills/upgrading-laravel-rust/SKILL.md into .agents/skills/upgrading-laravel-rust/SKILL.md, list `upgrading-laravel-rust` under the Skills section of AGENTS.md if it isn't already there, and then follow that skill to upgrade this application to the latest release of laravel-rust.1Download https://raw.githubusercontent.com/laravel/rust/0.x/.agents/skills/upgrading-laravel-rust/SKILL.md into .agents/skills/upgrading-laravel-rust/SKILL.md, list `upgrading-laravel-rust` under the Skills section of AGENTS.md if it isn't already there, and then follow that skill to upgrade this application to the latest release of laravel-rust.
Once .agents/skills/upgrading-laravel-rust/SKILL.md is committed to your repository, future upgrades only need a quick prompt asking your agent to upgrade Laravel.