Business rules in YAML, live in your Rust app
Limits, permissions, prices and order states live in files. Rust reads them into your own types and reloads them while the server runs.
Code does the work. Rules make the decisions.
- Rust keeps the types, the I/O and the wiring.
- YAML keeps the numbers, conditions and texts.
- Anyone on the team can read a rule, and change it without a deploy.
For Laravel Rust
Laravel Rust compiles your app. Scrusted-yaml keeps the rules editable.
In PHP, the next request runs the file you just saved. In Rust, every change means a rebuild and a deploy. Scrusted-yaml brings the PHP way back for your rules.
scrusted-yaml-laravel// src/app.rs providers.add(RulesProvider::new(compiled!("config"))); # .env: live when APP_ENV=local, compiled otherwise RULES_MODE=auto
- Live in developmentSave
config/*.yml. The next request uses it. - Compiled for productionBuilt into the binary. A broken rule fails
cargo build. - Not buried in agent codeThe decisions stay in a file you own.
Skills for coding agents
Teach Claude Code, Codex or OpenCode to write rule files, move Rust logic into them, and build an editor for them.
scrusted-yamlWrites rule files the validator accepts, and reads them into Rust structs.
scrusted-yaml-convertMoves a match out of Rust into YAML, with a test that proves nothing changed.
scrusted-yaml-uiBuilds an admin page that edits rules on the live server, with rollback.
scrusted-yaml skill --installinto this projectscrusted-yaml skill --install globalinto your home directoryWhat live reload guarantees
| Guarantee | How |
|---|
Live, or a deploy?
| Change | Takes effect | Why |
|---|
Every YAML file on this page validates with scrusted-yaml 0.2 and scripted-yaml 0.3.0. Laravel for Rust calls come from its docs; signatures the docs do not show are marked as a sketch.