Repository navigation
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.