Repository navigation
Rust off Rails 0.7.5
What's new
- SQLite 3.54. The template's lock file moves to sqlx 0.9.1, which bundles SQLite 3.54.1 and fixes RUSTSEC-2026-0459: a database file opened with a crafted
-walfile could return stale bytes from the process's memory. - Advisories are checked twice a week, not just on push. A scheduled job runs
cargo denyon the template and the generator, so an advisory published between releases fails the framework's CI within days instead of waiting for the next commit. - Apps with the mailer part or the Markdown snippet: update lettre and ammonia. New apps already get the fixed versions, because the part and the snippet
cargo addwithout a version. Apps made earlier keep their lock files: lettre 0.11.24 fixes six SMTP advisories, including command injection and STARTTLS reply forgery, and ammonia 4.2.5 fixes an XSS in sanitized Markdown. - New apps with the dev dashboard compile again. sysinfo 0.40 changed two calls the dashboard makes, and the part adds sysinfo without a version, so every new app with the dashboard failed to build.
- chrono is triaged. RustSec now lists chrono as unmaintained. sea-orm and sqlx map every timestamp through it, so
deny.tomlrecords the reason and a recheck date instead of failing every app's check. - New apps start on axum-server 0.9 and current patch releases. Dependabot now watches the template's dependencies, and its first updates are in: axum-server 0.9.2 (direct TLS), tokio 1.54.1, clap 4.6.8, rand 0.10.4 and uuid 1.29.3. The template's code builds unchanged. Existing apps don't have to do anything.
Breaking changes
None.
Upgrading
Upgrading an app to 0.7.5, in order (each step's Detect/Converge/Prove is in the entry it names below; upgrade is the whole procedure):
- Dependencies: update sqlx and triage chrono (Dependency advisories, below).
- Dev dashboard: move to sysinfo 0.40 if the app has the part (Dev dashboard on sysinfo 0.40, below).
- Parts and snippets: update lettre, ammonia and pulldown-cmark if the app has them (Advisories in parts and snippets, below).
- Optional: move to the template's dependency versions (Template dependency updates, below).
cargo offrails verify --fast.
Full list of changes
- Dependency advisories.
cargo denyon a fresh 0.7.4 app failed on two new advisories. The first was RUSTSEC-2026-0459 (libsqlite3-sys0.37 bundles SQLite before 3.54.0, which can return uninitialized page-cache memory when a database is opened with a-walfile of a different page size; this matters only if a less trusted party can write the database files). The second was RUSTSEC-2026-0543 (chronois unmaintained, with no patched release). The template's lock file moves to sqlx 0.9.1 and libsqlite3-sys 0.40.0 (SQLite 3.54.1). It also moves rustix to 1.1.6 (RUSTSEC-2026-0486, reached only by test dependencies) and arrow to 60.1.0 (RUSTSEC-2026-0442, in the lock file through an optional feature the template doesn't build).chronois the date type behind every SeaORM and sqlx timestamp column, and it has no known vulnerability, sodeny.tomlignores it with that reason and a recheck date. Moving totimeorjiffwould be its own release. App migration: Detect:cargo deny --locked check advisoriesnames RUSTSEC-2026-0459 or RUSTSEC-2026-0543. Converge:cargo update -p sqlx -p libsqlite3-sys -p rustix; if it still names RUSTSEC-2026-0543, add{ id = "RUSTSEC-2026-0543", reason = "chrono is unmaintained (no safe upgrade); sea-orm and sqlx map every timestamp column through it, so replacing it means moving the whole stack to time or jiff together; no known vulnerability; recheck 2027-02-19" }to[advisories] ignoreindeny.toml. Prove it:cargo deny --locked checkpasses andcargo offrails verify --fastis green. - Dev dashboard on sysinfo 0.40 (
src/kernel/dashboard/collector.rs,web.rs; parts synced from samples 001c7f9). sysinfo 0.40 makesSystem::new()andSystem::name()returnResult. The part adds sysinfo with no version, sonew --parts all(oradd dev-dashboard) failed to compile with E0308 and E0593. The collector now holds anOption<System>: if sysinfo can't initialize on a platform, the process figures read zero instead of the app panicking. App migration: only apps that move to sysinfo 0.40 need this, and their lock files keep 0.39 until they do. Detect:cargo tree -i sysinfoshows 0.40, andcargo checkfails insrc/kernel/dashboard/. Converge:cargo offrails update-part dev-dashboard --framework $FW, or copy the two changes from$FW/template/parts/dev-dashboard/files/src/kernel/dashboard/collector.rs(sys: Option<System>,System::new().ok(), therefreshandsamplelookups through it) andweb.rs(unwrap_or_else(|_| …)). To move an app on 0.39 forward:cargo remove sysinfo && cargo add sysinfo --no-default-features --features system. Prove it:cargo offrails verify --fast. - Advisories in parts and snippets. The mailer part (
lettre) and themarkdownsnippet (pulldown-cmark,ammonia) add their crates withcargo addand no version, so an app made today resolves fixed releases. An app made before them has: lettre before 0.11.24 (RUSTSEC-2026-0560 to -0565: SMTP command injection through a bare CR or LF without dot-stuffing, STARTTLS reply injection, a quoted local part delivered to a different address, a malicious server exhausting memory, two panics), ammonia before 4.2.5 (RUSTSEC-2026-0533: mutation XSS through embedded SVG and MathML, which matters wherever users write Markdown) and pulldown-cmark before 0.13.6 (RUSTSEC-2026-0414 and -0433, only withENABLE_WIKILINKS, which the snippet doesn't set). App migration: Detect:cargo deny --locked check advisoriesnames any of them. Converge:cargo update -p lettre -p ammonia -p pulldown-cmark(skip the onescargo tree -i <crate>doesn't find). Prove it:cargo deny --locked checkpasses andcargo offrails verify --fastis green. - CI: scheduled advisory check (
.github/workflows/advisories.yml).cargo deny --locked check advisoriesruns ontemplate/appandtools/offrails-genevery Monday and Thursday, and on demand. The push-triggered CI already ran it, but only when someone pushed, so RUSTSEC-2026-0459 sat in the template's lock file for three weeks without failing anything. - Template dependency updates (
template/app/Cargo.toml,Cargo.lock). axum-server 0.8.0 to 0.9.2, whichserveuses for direct TLS (APP_TLS_CERT/APP_TLS_KEY);main.rsandkernel/tls.rscompile and pass their tests unchanged, and the code in deployment still matches. Patch releases: tokio 1.54.1, clap 4.6.8, rand 0.10.4, uuid 1.29.3. App migration: optional; nothing is fixed by it. Detect:cargo tree -i axum-server --depth 0shows 0.8. Converge:cargo add axum-server@0.9 --features tls-rustls && cargo update -p tokio -p clap -p rand -p uuid. Prove it:cargo offrails verify --fast, and with TLS set,curl -sk -o /dev/null -w '%{http_version}\n' https://localhost:<port>/upprints2. - CI: actions pinned, Dependabot, CodeQL, parallel template jobs. Every GitHub Action is pinned by commit hash. Dependabot opens weekly PRs for the template's and the generator's crates and for the actions. CodeQL scans the Rust code and the workflows on every PR and weekly. The
templatejob runs one job pertest-template.shtarget, so CI takes about 20 minutes instead of about 70. None of this changes what an app gets.