Repository navigation
Releases
RustCMS v0.17.0
RustCMS v0.17.0. Install: https://irisvn.github.io/RustCMS/ (guide, install scripts).
Built from irisvn/RustCMS-Core v0.17.0.
— 2026-12-03
Added
- The local debug page (ADR 0048, after Laravel for Rust's): with
APP_DEBUG=true,APP_ENV=localand a loopback client, a 500 from
AppError::Internalor a caught panic answers a page (browser navigations)
with the error's type, message, location, the source around it, its causes
and the request (allowlisted headers, query values hidden, matched route),
or the usual JSON with adebugobject; the admin panel shows it after the
message. Both copy the error as Markdown (for an AI assistant). Its own
CSP (style and its one script by hash),no-store. Locations come
from#[track_caller](?,AppError::internal) and, while on, a
backtrace (backtrace0.3.77) that finds the application's frame; a panic
hook keeps the panic's line. Off everywhere else, byte for byte; with
APP_ENV=productionservewarns thatAPP_DEBUGis ignored. AppError::internal_error(err)keeps thesource()chain as causes;
internal errors are logged with their location.- Agent kit: rule 11, internal details stay internal.
Changed
- Breaking:
AppError::Internal(String)→AppError::Internal(InternalError)
(message, type, location, causes;redactcleans the message and the
causes;From<String>/From<&str>). See upgrade.md "From 0.16.0 to 0.17.0".
RustCMS v0.16.0
RustCMS v0.16.0. Install: https://irisvn.github.io/RustCMS/ (guide, install scripts).
Built from irisvn/RustCMS-Core v0.16.0.
— 2026-12-03
Added
- A kit for AI agents in applications (ADR 0047):
rustcms newwrites
AGENTS.md(conventions and the rules that keep an application safe),
CLAUDE.mdand six skills in.claude/skills, linked to the guide of the
application's RustCMS version;rustcms agentsadds or refreshes it and
keeps what the developer edited (.rustcms/agents.json,--dry-run,
--force);rustcms upgradereminds to run it. The examples carry it. - The guide as Markdown: each build also publishes
llms.txt,
llms-full.txtandmd/<page>.md(code samples included, absolute links).
Security
pin-project-lite0.2.17 → 0.2.19: every earlier version was yanked for a
soundness bug (aDropthat breaks the pin drop guarantee was accepted).
0.2.19 is younger than two weeks: exception approved by the owner
(2026-12-02, flagged by thesecurityCI job).
Changed
- CI and releases (docs/core/guides/releasing.md): a CI run that passed every
code job records the code's fingerprint; a later run of the same code (a
pull request merged as it is, a docs-only commit) skips those jobs, and the
Release workflow accepts it instead of waiting for a run onmain. Releases
are published with the Linux builds; the macOS build (nowmacos-latest) is
attached afterwards, and CI's macOS job (cli-macos) no longer holds the
record back.just worktreeclonestarget/copy-on-write (a full copy on file systems
without clones).
RustCMS v0.15.0
RustCMS v0.15.0. Install: https://irisvn.github.io/RustCMS/ (guide, install scripts).
Built from irisvn/RustCMS-Core v0.15.0.
— 2026-12-02
Fixed
- Mail: a send that would wait a whole minute for the rate limit is refused at
once (smtp_throttled), as documented, instead of sometimes being sent a
minute late; its test runs on paused time (it failed on slow runners).
Added
- Virtual fields (ADR 0046, vocabulary 28, SDK
ui6): a field of a record's
form without a column, drawn by an extension (registerField, with the
form's current values and the server's errors by sub-path) and stored by the
application in its own tables inside the record's save. Declared with
Resource::virtual_fields()(Virtual::of::<H>(): label, readable,
creatable, updatable, required, audit_redact, rich_nodes, collection) and
placed withVirtualInput::make(name); the handler (VirtualField) has
load,initial,validate(once the record, its links and rows are
written, against the record as written, column defaults included; rich
text and media throughChecker),save(right after, before the media
check andafter_save, one transaction) anddelete(every deletion for good). A dependency changed
without the field re-checks the stored value, its files' type and size
included (new codevirtual_field_stale). One record's reads and the response after a save
load it, within the request's deadline (Envelope::unloadedwhen it fails
or runs out of time); audit logs a digest keyed for this use only when it
changes (also when its value before could not be loaded). The extension's
valuesleave out secrets, passwords and write-only inputs, inside repeater
rows too.Ctx::lock_recordfor other writers of its tables;
CustomEntrymay name a virtual field. Boot refuses virtual fields in rows,
as a relationship repeater's rows, and read by other inputs' conditions,
rules or reactions. Demo: a category's highlights. Guide: virtual fields. - Extensions: SDK
ui5 (ADR 0032 amendment) gives v2 extensions the forms'
widgets, controlled and on the same insides as the forms:RichEditor
(value: RichDocument | null,field: { resource, name }borrows that
field's application elements and media collection,toolbar="compact")
andRichTextView;MediaField,MediaPicker,MediaThumb,
useImageViewer,useMediaAccessanduseMediaUpload()(CSRF, idempotency
key, two at a time, 429 sent again, never in another session than the one
it was asked in); a finished upload reports through the latestonChange
(edits made meanwhile are kept);FormField,FieldError,
RepeaterRow,IconButton;Dialoggainsfooterandsize. The SDK
adds theRichDocumentandMediaItemtypes. The forms' fields and
repeater rows use the same parts. Demo: the React page's Form widgets
tab. Guide: React pages (Form widgets). - Rich text formulas (document version 4, ADR 0045):
mathinside text and
mathBlockon its own line, each alatexin a closed LaTeX subset
(numbers with,/.decimals, letters,π, operators and comparisons,
\frac, mixed numbers,^/_,\sqrt,\text, groups), checked on every
write (rich_text::parse_formula; new codesdocument_formula,
document_formula_missing,max_formulas), at most 1,000 per document, 1,000 characters and 8 levels
each.to_htmlwrites MathML (<math display="inline|block" displaystyle="true">with the LaTeX in a TeX annotation, no style) that
browsers draw as it is;outlineuses the formula's plain text
(parenthesized where a fraction or a script would read otherwise:
1/(2/3),(2/3)^2,(x^2)^3).
\text{…}refuses control and invisible format characters (U+200B,
U+202E, …). Copied out of the editor, a formula is its plain text (and
data-latex, which a paste back into the panel reads). Panel: a
Formula (Σ) button and dialog (palette, LaTeX, errors as typed, live
preview, inside the text or on its own line), formulas drawn as MathML in
the editor and on view pages, kept when exported HTML is pasted. Documents
without formulas are still written in version 1 to 3.fixtures/math/cases.json
keeps the server's and the panel's parsers identical. Guide: rich text
(formulas, formulas on a frontend), error codes.
Changed
- Admin vocabulary 28 (
InputType::Virtual);Envelopegainsunloaded
(a public field: code building anEnvelopeliteral adds
unloaded: Vec::new());DynResourcegainshas_virtual_fields,
lock_recordandfind_key(implementations outside the crate add them);
a record's history, relation lists and links check access withfind_key
(no virtual field loaded);ctx.record(slug, key)and the data of slots
beside records load them.rustcms::admin::*also exportsVirtual,
VirtualField,VirtualInputandChecker(a glob import may clash with
names of your own).SDK_UIis 6 (rustcms make:sdk,Requires { ui: 6 }). - Extensions:
ui5 adds the forms' widgets (the SDK is atui6, above).
Bundles built forui1 to 4 keep working; to use the new widgets, copy
the SDK (rustcms make:sdk), setRequires { ui: 6 }and rebuild. - Rich text:
VERSIONis 4;NodegainsMathandMathBlock
(#[non_exhaustive]already). Releases before this one show documents with
formulas read-only in the panel and refuse them inrich_text::parse. - Panel: the system pages (Audit log, Queue, Schedules, Users, Roles), the
import page and relation panels use the resource list's parts: tables
(Table,TableHead,TableRow,TableCell,TableEmpty), selects
(NativeSelect), and the newcomponents/data.tsx(FilterForm,
FilterField,CardFooter,Pager,LoadMore,NoticeAlert). The
audit log's and the queue's filters sit at the top of the card holding
their entries, as the users' search does; "Load more" is in the card's
footer. Same labels and roles: nothing changes for the tests or the E2E
specs. i18n keysaudit.apply,audit.resetandaudit.moreare now
filter.apply,filter.resetandlist.loadMore.
RustCMS v0.14.1
RustCMS v0.14.1. Install: https://irisvn.github.io/RustCMS/ (guide, install scripts).
Built from irisvn/RustCMS-Core v0.14.1.
— 2026-11-24
Fixed
- Image viewer: the counter ("1 / 6") is drawn bottom right; it covered the image's title, top left.
Added
- Demo: a tag's Part of (
tags.parent_id, demo migration
m20261124_000001_add_parent_to_tags), a select whose options are computed
on the server (options_fn,depends_on(["kind"])): a series is part of a
topic, an event of a series.
Documentation
- Screenshots of 0.14.0's features from the demo (option labels, date
formats, dark mode, media collections, the image viewer, the repeater table,
reactions on child records, options computed on the server, filtered
relations, relationship rows on view pages); the demo's other shots
recaptured with 0.14.0's colors.shots.mjskeeps the sticky top bar out
of element shots taller than the window.
RustCMS v0.14.0
RustCMS v0.14.0. Install: https://irisvn.github.io/RustCMS/ (guide, install scripts).
Built from irisvn/RustCMS-Core v0.14.0.
— 2026-11-23
Security
- lettre 0.11.24 (RUSTSEC-2026-0560 to 0564: STARTTLS response injection,
missing dot-stuffing after a bare CR or LF, panics on anEHLOreply or a
display name with CR/LF, quoted local parts sent to another address) and url
2.5.9 (RUSTSEC-2026-0592, stack overflow inUrl::origin()); both newer
than two weeks, as security exceptions.cargo denyignores
RUSTSEC-2026-0543 (chrono is unmaintained; no vulnerability, needed by
SeaORM).
Added
-
Option labels in table columns (vocabulary 20; contributed by @giangittb112000, as are the date formats, the image
viewer, the color tokens and media collections below):TextColumn/BadgeColumnshow the label of each value,
declared withTableColumn::options([(value, label), …])or taken from the form's select or checkbox list of
the same field (never forbelongs_tofields);.raw()keeps the values. Labels are translated (and listed
by missing translations); colors, sorting, search, filters and exports still use the values.ColumnSchema
gainsoptions. A badge column holding a list draws one badge per value. The dashboard's recent records use
the column's labels. -
Date formats (vocabulary 21):
TableColumn::date_format(pattern)andEntry::date_format(pattern)(text
entries) show dates and times with a pattern (yyyy yy MMMM MMM MM M dd d EEEE EEE HH H hh h mm ss a z, text
in single quotes, at most 64 characters), in the user's language and, for instants, time zone;
AdminProvider::date_format/datetime_formatset the panel's patterns for date and date-time fields without
one, and for history, queue, schedule and export times. Patterns are checked at boot (fields, a time on a
date, a zone on a local date-time, computed values and rows).ColumnSchemaandEntrySchemagain
format; the panel's configurationdateFormat/dateTimeFormat. Without any pattern, nothing changes.
Demo: the posts list writes publication times with a pattern. -
Image viewer (vocabulary 22): a click on an image opens it over the page, in forms (file uploads), view pages
(MediaEntry, rich text images), the Media page and its records, and the media picker (a magnifier beside
each image: a click still chooses). Zoom (buttons, wheel, double click, pinch, pan), the place's other images
(arrows, ← →, a counter), the file's name, alt text, dimensions and size (looked up in the media library when
only the id is known) and a download; Escape, the close button or a click outside close it, Escape never
closing the dialog under it.MediaEntry::preview(false)andFileUpload.preview(false)keep a field's
images still;EntrySchemaandMediaSchemagainpreview(sent only whenfalse). New admin-ui dependency
yet-another-react-lightbox3.33.0 (MIT; static stylesheets, styles set through the CSSOM: the CSP is unchanged),
loaded with its styles the first time a viewer opens. -
Color tokens (theme API version 1, names only added):
popover,selected,overlay,input,
subtle-foreground,secondary-foreground,success-foreground,warning-foreground,infoand
info-foreground, hover colors (primary-hover,secondary-hover,destructive-hover) and soft pairs
(destructive/success/warning/info/gray-softand-soft-foreground); hover and soft colors follow
their color throughcolor-mixunless set (hover darker in light mode and lighter in dark mode, away from
the text on it, so it never lowers contrast; solid buttons also show a faint ring on hover). The badge colorinfo(BadgeColumn::color,TextEntry::color,
the SDK'sBadge, whosecolorprop is now typed). A theme or runtime branding that brings a text pair under
4.5:1 logs a warning (pair, mode, ratio; once per change for the branding); the boot never stops for it. -
Media collections (vocabulary 23):
AdminProvider::media_collection(name, label)declares a collection of the
media library,Field::collection(name)(media, media list and rich text fields) and
SettingField::collection(name)(media settings) put the files uploaded through them into it. Uploads take an
optionalcollectionpart (a declared name, else 422); the Media page gains a Collection column and filter
(with Unassigned) and uploads into the collection it is filtered on; the picker opens on the field's
collection, with every file, each collection and the unassigned files a choice away; the media record's form
moves a file to another collection (rights of a rename; media hooks see it). Collections only sort and filter:
scope and references ignore them. Without a declared collection nothing changes.InputSchemagains
collection,PanelResponsemediaCollections,MediaItemcollection. Framework migration
m20261202_000023_add_collection_to_media(nullablemedia.collectionand an index on it withcreated_at;
itsdowndrops both). Demo: post covers, post content and branding collections; LMS: news covers. -
SelectFilter::none(label): a last choice for records without a value (nullable columns), sent as~none
in theinlist and matched asIS NULL(FilterSchema.none). -
Repeaters, second round (vocabularies 24 and 25, ADR 0044; contributed by @giangittb112000, reworked after
review; its nested relationship repeaters,validate_rows,shown_when_fn,required_fnandform/rules
are not in this release;options_fnand reactions on relationship rows are, below):- Conditions on relationship repeaters (their own
shown_when, or a layout's): a hidden repeater keeps its
rows; a change sent for it is admitted and shape-checked, then ignored;min_itemsdoes not apply while
hidden;clear_when_hiddenis refused on it. - Conditions in rows of both kinds of repeater:
when_root(name)reads the record's form (a settings page's
fields),when_parent(name)the enclosing row of a nested JSON repeater (Scope). Relationship rows that
declare conditions follow them (the panel evaluates them too); rows declaring none keep the child form's
conditions, as in 0.13. - Filtered has-many relations:
Relation::where_null(field)/where_eq(field, value)(where_eqon
boolean, integer, UUID and date fields) restrict the relation's section, counts, repeater and view-page
rows, and set their values on records created through it (beforerequiredand conditions are checked).
Users who may not read every filtered field do not get the relation (404 on its routes, 403 on a repeater
change, no count column, no minimum to meet); users who may not write them on create get no New (403). A
hook removing or changing a filtered value is a 500. Several repeaters may edit one child resource through
relations that cannot share a row.RelationSchemagainsfixed. Repeater::table(): rows as table rows frommd(RepeaterSchema.layout).RepeatableEntry::relationship(): a has-many relation's records on the view page, through its list,
at mostlimit(n)(100) rows; the default view page shows relationship repeaters this way
(EntrySchema.rows).- Files, documents and record selects in rows: JSON rows take file uploads (
.accept,.max_size,
.multiple(n),.collectionon the input) and rich editors (.nodes), settings rows too; relationship
rows take the child's media, rich text andbelongs_tofields. A write's media references (fields, JSON
rows at any depth, relationship rows after the child's hooks) are checked once, last, in batches of 500
ids, at most 2,000 distinct (new codetoo_many_media), errors at the row's path. Rich editors in rows
show a compact toolbar (InputSchema.toolbar),.full()for the full one; table rows refuse file
uploads and rich editors. View pages show JSON rows' files and documents (MediaEntry,RichTextEntry). [admin] repeater_rows(default 50, 1 to 500): the most rows of one parent a relationship repeater reads
and reorders, and the most entries of each part of its change (RepeaterRelationship.rowLimit); relation
lists page up to it.- Demo: categories are their posts or a link (migration
m20261119_000001_add_layout_to_categories), posts
edited as a table and shown on the view page, a "Drafts" section (where_eq("published", false)), footer
links take an icon. LMS: quiz questions with options (where_null("blank_id"), an image and an
explanation each) or blanks (migrationsm20261119_000006_create_quiz_tables,
m20261120_000007_add_media_to_quiz_options), courses enroll learners in their form.
- Conditions on relationship repeaters (their own
-
Options computed on the server (vocabulary 26, ADR 0044 part E; contributed by @giangittb112000, redesigned
after review):SelectInput::options_fn(f)/CheckboxList::options_fn(f)with.depends_on([...])
(required) and.options_timeout(d)(5 s, at most 30) compute a resource form's options from its state
(readable values only). New routePOST form/options(authorized asform/react, sharing its bucket and
turns; answers checked: at most 500 options and 64 KiB, canonical, no value twice;failedkeeps the declared
options);InputSchema.optionsFrom; the panel asks when the form opens and when a dependency changes
(debounced, latest answer only). Saves that could change the input run it again before the transaction, with
no lock held, after a committed-receipt replay check, then check under the lock that the dependencies the
user may read did not change (409stale) and that the value is among the options (not_option; checkbox
lists keep their shape); new form erroroptions_failed. Never decided by a value the user cannot read.
Imports retrystaleandoptions_failedrows. Refused at boot in rows, on settings pages and action forms,
onbelongs_toand ...
RustCMS v0.13.1
RustCMS v0.13.1. Install: https://irisvn.github.io/RustCMS/ (guide, install scripts).
Built from irisvn/RustCMS-Core v0.13.1.
— 2026-11-17
Added
- Rich text document version 3 (vocabulary 18, ADR 0042; contributed by
@giangittb112000): underline, superscript and subscript marks (<u>,
<sup>,<sub>in HTML), and application elements:
AdminProvider::rich_text_node(RichTextNode::inline_atom("app.kbd").attr("keys", Attr::text()))
declares an atom with typed attributes (text,integer,boolean,
one_of,uuid;.label(..); defaults filled in before storing, at most
1 KiB per element), andField::rich_text().nodes([...])names the ones a
field accepts (none by default). Checked on every write; at most 500 per
document, which is bounded to 256 KiB once its defaults are filled in;
block elements never inside a callout; the attribute namenodeis
reserved. The editor inserts them from an Insert an element menu; an
extension draws and edits them withregisterRichTextNode(name, { view, edit })(SDKui4), else a placeholder and a generated form. A document
holding elements the field no longer accepts opens read-only with a button
that removes them. Exported HTML writes them as<span|div data-node data-{attr}>with the declaration's.text(rich_text::Html,
AppNodes::parse). The server stores every document in the lowest version
it needs (1, 2 or 3), whoever writes it. Demo:app.kbdand
app.note_refin posts. - Form reactions (vocabulary 19, ADR 0043; contributed by @giangittb112000):
Input::reacts(|ctx, state| …)runs on the server when the user changes
the input (POST form/react, after a pause in typing) and answers with
FormPatches (set,set_if_empty,add_row,remove_row,move_row,
flag_row,notice) the panel applies while the form is unchanged. The
reaction reads what the user's form holds (ADR 0037: stored values only for
a record the user may view, typed values only for fields they may write,
the key a relation binds),FormState::previous()gives the changed
input's earlier value; patches the user could not make are dropped and
logged, the others sent canonical, conditions evaluated again after each;
at most 200 patches. Admission and the rate limit (120 a minute) come
before the body; 2 reactions at once per user. Resource forms only; saves
never run reactions (the contribution's.strict()is not kept). A rich
text editor draws a patched document. Demo: a category's slug follows its
name.
Changed
rich_text::Markis#[non_exhaustive]and has three new variants: an
exhaustivematchneeds a_arm.rich_text::VERSIONis 3
(upgrade_valuestill only lifts version 1 to 2);rich_text::parse
refuses application elements (useAppNodes::parse). The SDK isui4:
extensions rebuilt with it declareRequires { ui: 4, … }(rustcms make:sdklists the registrations to update).- Admin panel: a rich text view whose value is not a document says it cannot
be shown instead of showing its JSON (a legacy text value is still shown as
it is). - Admin panel: the default view page (contributed by @giangittb112000). A
record's view page withoutinfolist()is drawn by an infolist made from
its form at boot (InfolistSchema.fromForm, vocabulary 17), one read-only
renderer instead of two; values look as before. Its conditions read fields
as the edit form does (the values the form would hold,nullwhere the
form hides a field); a declared infolist still reads the stored values. A
belongs_tofield's title comes with the record (no request per value) and
links to the related record when the user may list it; an encrypted field
shows nothing (not even whether it is set). The view schema carries
infolistonly for a record (with a key). A list of records in a text
entry shows as indented JSON; a field shown twice at one level no longer
logs a duplicate key.
Fixed
- Admin panel: opening a rich text editor reported a change (TipTap's
setEditable), so a form could count as edited before any edit.
RustCMS v0.13.0
RustCMS v0.13.0. Install: https://irisvn.github.io/RustCMS/ (guide, install scripts).
Built from irisvn/RustCMS-Core v0.13.0.
— 2026-11-17
Added
rustcms serve --watch(macOS and Linux; first written by
@giangittb112000): builds and runsservethroughcargo run, then
rebuilds on changes (sources, configuration,.env,lang/, built
extension scripts, the workspace's manifest and lockfile) and replaces the
server once the build succeeds; a failed build keeps the running server;
templates that reload themselves (resources/views/) are not watched;
changes during a build make another round; the build and the server run in
their own process groups, stopped together (SIGTERM, then SIGKILL after
6 s) on Ctrl-C. The binary is the package's only one or itsdefault-run.- Inputs and layouts shown under conditions (vocabulary 13, ADR 0037; contributed by @giangittb112000):
.shown_when(when("x").eq(v))(ne,is_in,filled,is_true,
Condition::all/any) on inputs, layouts, settings forms and
ActionFields, and.clear_when_hidden(). The panel evaluates them on
every change, without a request; the server again on every write (create,
update, settings, actions, CSV imports), on what the user's form holds
(never on values the user may not read or view, so a write's outcome tells
nothing about them): values sent for hidden inputs are dropped (never the
key a relation binds),clear_when_hiddenfields a write hides take their
column's default (elsenull, else empty), required fields are required
only when shown. Schemas send condition values in canonical form. Boot
checks names, kinds, values, cycles, and refuses a conditional input whose
column is not nullable and has no default. - JSON repeaters (vocabulary 15, ADR 0040; contributed by @giangittb112000):
Repeater::make("faq").schema(…)
edits rows of inputs stored as a JSON array, with Filament's options
(min_items,max_items,reorderable,collapsible,collapsed,
item_label,add_action_label,addable,deletable,default_items,
cloneable); row inputs declarerequired,max_length,integer. The
server checks every row (errors atfaq.2.question), removes inputs hidden
by the row's conditions, and refuses media, rich text and secrets in rows.
SettingField::repeaterfor settings pages;RepeatableEntryon view
pages; issue codemin_items. Demo: footer links on the site settings. - Relationship repeaters (ADR 0040 part 2, ADR 0041; contributed by
@giangittb112000):Repeater::make("lines").relationship().order_column("position")
edits the children of a has-many relation in the parent's form. A save sends
a change (create, update, delete, order; new rows tagged{"new": ref}),
written in the parent's transaction with the child's checks; the child must
lock its parent (lock_parent), rows inherit the child form's rules and may
not hold references, media, rich text or secrets; one locking pass per
child, positions byMAXtyped by the order column; the parent's history
counts rows;addable/deletableenforced; new rows use the child's create
inputs (createComponents, vocabulary 16). Issue codesnot_a_row,
row_order,rows_not_addable,rows_not_deletable,too_many_rows,
positions_exhausted. - Count columns and row history (ADR 0040, part 3; contributed by @giangittb112000):
TextColumn::make("faq") .count()shows how many items a JSON field holds;
TextColumn::make("posts_count").counts("posts")how many records of a
has-many relation each record has, among those the user may list (list
envelopes carrycounts; the column is left out for users who may not list
the relation; one grouped query per page). The history shows a repeater's
change line by row and input (faq › 2 › question). CSV exports write rows
as JSON text and imports check them as forms do. Demo: categories count
their posts in the list (posts are edited in the category's relation
section; the demo's categories also edit their posts in the form). - Infolists for record view pages (vocabulary 14, ADR 0039; contributed by @giangittb112000):
Resource::infolist()replaces the read-only form on the view page with
entries in the form's layouts:TextEntry(badge/color,copyable,
limit,url,number,list,multiline,password,
prefix/suffix,options),RelationEntry(linked when the related
resource may be listed),BooleanEntry,KeyValueEntry,MediaEntry,
RichTextEntry,ComputedEntryandCustomEntry(registerEntry), with
shown_whenon the stored values.Resource::computed()declares values
computed when the view page opens (routerecords/{key}/computed, only for
users who may view the record;.readable,.timeout, 5 s by default and
30 s at most); one that fails, times out or exceeds 64 KiB shows "not
available" alone.PageView::Infolistdraws a panel page's data with
entries. Extension hostui3:registerEntryand the SDK'sInfolist
(rustcms make:sdkpoints at registrations to move toui: 3). Without
infolist()nothing changes. Demo: a category's view page. - Record titles from several fields (ADR 0038; contributed by @giangittb112000):
ResourceMeta::title_template("{name} (grade {grade})")for headings,
breadcrumbs, row menus, relationship selects (searched over every field of
the template, ordered by them) and labels;title(f)is{f}. No title
when the user may not read one of its fields.ResourceInfo.title_fields
lists the fields of a title of several. Boot checks the placeholders. - Number bounds (vocabulary 12; contributed by @giangittb112000):
NumberInput::make(…).min(n).max(n).step(n)
andSettingField::min/max/step(integer settings).minandmaxbound
client writes on every path (issuesmin_value,max_value);stepis a
hint. Integers and decimals are compared exactly with the bound as written,
decimals also as rounded to the column's scale. The boot refuses bounds on
other inputs or settings,minabovemax, a step that is not positive, a
setting default outside its bounds, and bounds on a settings form input that
differ from its field's.i32andf64values get a native number input
(text it cannot read is reported, not saved as empty);i64and decimals
stay text.
Changed
- Breaking (Rust API): new enum variants
Component::Entry,
ComponentSchema::EntryandPageView::Infolist(exhaustive matches need
an arm);DynResourcegainscomputed(only for code implementing it by
hand). Extension hostui3 (bundles built forui2 keep working). - Computed values (infolists): at most 2 view pages computing at once per
user, besides the 8 across users, so one user cannot hold every turn. - Relationship selects (
lookup) search each word of the search over the
title's fields, every word required (repeated words once): with
title("name"), "big red" no longer matches only the exact phrase. Titles
with an empty value are left out oftitles().rustcms_admin::Condition
(exported for conditions) can clash withsea_orm::Conditionwhen both
are glob-imported: import one by name. - Validation issues:
{min},{max}and{bytes}placeholders only match
numbers, so an application's message such as "must be at least 18 years
old" stayscustom. - CSV import reports keep messages whose numbers are negative or decimal
(must be at least 0.5) instead of showingis invalid; other text is
still never quoted back.
Fixed
- Writes check media references after every other lock (links, and a parent's
repeater rows), and media rows rank after every resource: lock order of
writes that link records and reference media (ADR 0041).lock_parentmay
not target the media library. - A create leaving out a column that may not be null (not declared
required, no default) answered 500: it is now that field's
is required(422), or the form erroris incompletefor a column outside
the resource's fields, on SQLite, PostgreSQL and MySQL. - Admin panel: a record's History card had no space under its "Show history"
button when closed (the header has no bottom padding), and its entries were
inset less than the header. - Admin panel: the arrow of native selects sat against the right border, at a
different inset per browser; it is now drawn inset like the text.
Security
- SQLite 3.54.1 (libsqlite3-sys 0.39.1; RUSTSEC-2026-0459, uninitialized
memory read when a database is opened with a crafted-walfile). No sqlx
release allows it yet: Core and new applications patch sqlx to an
unreleased commit ([patch.crates-io], rev10462fa4), removed once a
release does. ammonia 4.2.5 (RUSTSEC-2026-0533).
Internal
- CI and release builds run on
macos-15(GitHub no longer offers
macos-14).
RustCMS v0.12.1
RustCMS v0.12.1. Install: https://irisvn.github.io/RustCMS/ (guide, install scripts).
Built from irisvn/RustCMS-Core v0.12.1.
— 2026-11-05
Fixed
rustcms new: the application gets arustfmt.toml(the framework's) and
passes thecargo fmt --checkof its own CI, whatever its name (crate
imports in their own group, generator markers inside the builder chains of
admin_panel_provider.rsandroutes/api.rs).
RustCMS v0.12.0
RustCMS v0.12.0. Install: https://irisvn.github.io/RustCMS/ (guide, install scripts).
Built from irisvn/RustCMS-Core v0.12.0.
— 2026-11-04
Added
- API mode (ADR 0036):
[app] mode = "api"(RUSTCMS_APP__MODE,serve --api-only) serves the application API only. Nothing under
auth.admin_pathanswers but a JSON 404 (before routing, no session
loaded): no panel, admin API, panel sign-in routes orAdminRoutes
(streams, sockets). Permissions, job kinds, schedules and commands are
declared as infull.queue.enabledandschedule.enabledleft out are
falsein API mode.AppState::mode(),AppBuilder::mode(),
AppBuilder::panel_path(),queue::Jobs::kinds();servein API mode
warns about SQLite, a missing Redis and alocaldisk
(app::api_mode_warnings). - Media hooks:
AdminProvider::media_hook(impl MediaHook)runs application
code in the transaction of every change to a media record (MediaEvent:
Uploaded,Updatedwith the previous record,Trashed,Restored,
Deleted); an error rolls the change back.Registry::media_hook,
Registry::media_hooks. just bench-api(bench/api,scripts/bench-api.sh): a load test of the
application API withohaon PostgreSQL.
Changed
-
The media and exports/imports cleanups are framework schedules
(rustcms.media-prune.<disk>every minute,rustcms.exports-prune.<disk>every 10
minutes, timeout 30 min; one schedule per storage disk, the exports and
imports passes each bounded and attempted independently) instead of
tokio::spawnloops in
AdminProvider::bootwith a Redis lease: run only byservewith the
scheduler, once per slot across instances, never by commands or tests.
Deployments without the scheduler runmedia:pruneand
schedule:run rustcms.exports-prune.<disk>from cron. -
Each instance sweeps its own staging directory (
storage::sweep_staging:
abandoned uploads, export and import files older than an hour):servein
any mode andqueue:workat start and every 10 minutes,queue:work --once
andmedia:pruneonce.media::prune,exports::pruneand
imports::pruneno longer sweep. -
A JWT's sign-in and user are read in one joined statement. Two opt-in
settings (default0, unchanged behaviour) let an instance reuse reads:
auth.permission_generation_cache_ms(the RBAC generation) and
auth.jwt.session_cache_ms(a JWT's sign-in and user), e.g.1000on API
instances (ADR 0012 amendment). Changes made through an instance apply
there on the next request; on other instances within that time. Sessions
and API tokens are never cached. -
A personal access token is checked with one statement (token and owner
joined) andlast_used_atis written only when the value read is more than
a minute old: a request with a token used within the minute sends no
UPDATE(4 statements before the handler became 2). Refusals are unchanged
(wrong secret, revoked, expired, inactive or deleted owner).
Fixed
- The S3 disk's sweep also removes export and import files a crash left in
.s3-staging(it removed only*.upload), so exported data no longer stays
on the instance's disk.
RustCMS v0.11.0
RustCMS v0.11.0. Install: https://irisvn.github.io/RustCMS/ (guide, install scripts).
Built from irisvn/RustCMS-Core v0.11.0.
— 2026-10-28
Changed
- The guide moved from mdBook to VitePress (search, dark mode, phone layout).
Page paths (x.html) and heading anchors are kept.rustcms docsopens the
online guide of its version (https://irisvn.github.io/RustCMS/v/X.Y.Z/);
release builds no longer embed it (RUSTCMS_DOCS_DIR,RUSTCMS_RELEASE
are gone). The guide ofmainis published to/dev/. - Release and the new Docs workflow read
DIST_TOKENfrom thepages
environment and writegh-pagesone at a time (scripts/pages-publish.sh). - A panic in a handler, a guard or app middleware answers the standard 500
(internal_error), logged with a fixed message in the request's span, the
payload never sent nor logged there (tower-httpcatch-panic); the
connection was dropped before. - The auth cleanup (sessions, JWT sign-ins, reset and invitation links,
audit retention) and the idempotency cleanup are framework schedules
(rustcms.auth-prune,rustcms.idempotency-prune, hourly, timeout 30 min)
instead oftokio::spawnloops inboot: run only byservewith the
scheduler, slots claimed once (no Redis lease), listed on System → Schedules
with a summary; each part of the auth cleanup runs even when another fails
(prune_failed).Schedule::framework()(hidden) lets the framework use the
reservedrustcms.prefix. Media and exports/imports cleanups unchanged. - Static options of
SelectInputandCheckboxListbound client writes to
resources (API create and update, relation creates, CSV imports): a select
takes one option (not_option), a checkbox list a JSON list of options,
each once (invalid,not_option,given_twice). Select values compare
in canonical wire form, column-aware ("0012"/"12"oni64, decimals at
the column's scale, instants in UTC, UUIDs lowercase), and the schema shows
the options canonical. Hooks, action handlers, pivot columns and
belongs_tokeep their own rules; omitted fields keep stored values. Boot
refuses an option that is not a value of its column or would be stored or
read back as another (scale, decimal precision,f32, sub-microsecond
timestamps), options on encrypted inputs, aCheckboxListon a non-JSON
column, and a field in inputs with different options (or one without). A
matched select value is stored as its option ("10.505"→"10.50"). Before, any value of the column's type
was stored. - A background export over its limits fails with its own reason,
too_many_to_export(more than 10,000 rows) ortoo_many_matches(more
than 10,000 candidates checked by a per-record policy), mapped from the form
issue codes ofexport_keys; it wasrevoked. Other refusals stay
revoked.ExportView.errordocuments the codes; the panel translates them. - The browser's socket send limit follows
[realtime] max_message_bytes: the
panel page carriesrealtime.maxMessageBytes(the value as applied, 1 B to
1 MiB; static and runtime branding renders), the SPA'sApiClientkeeps it
andopenSocketuses it unless the caller passesmaxMessageBytes(64 KiB
without either).Realtime::max_message_bytes()(read-only). A tab keeps the
limit it loaded.
Fixed
GET {admin}/api/exportsanswered 500 on MySQL once an export held
thousands of keys: the list sorted rows carrying thekeysJSON and MySQL
ran out of sort memory. It now reads only the columns it shows.- Export and import pruning only touches its own disk: it deleted the
metadata of expired exports and imports stored on another disk while their
files stayed. A pass now deletes this disk's files, then their records; an
export with a run's object on another disk keeps its row until that disk's
pass has deleted it. Marking abandoned exports and importsunfinished
is per disk too.