Skip to content

RustCMS v0.15.0

Choose a tag to compare

@irisvn irisvn released this 02 Dec 16:14

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 ui 6): 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 with VirtualInput::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 through Checker), save (right after, before the media
    check and after_save, one transaction) and delete (every deletion for good). A dependency changed
    without the field re-checks the stored value, its files' type and size
    included (new code virtual_field_stale). One record's reads and the response after a save
    load it, within the request's deadline (Envelope::unloaded when 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
    values leave out secrets, passwords and write-only inputs, inside repeater
    rows too. Ctx::lock_record for other writers of its tables;
    CustomEntry may 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 ui 5 (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")
    and RichTextView; MediaField, MediaPicker, MediaThumb,
    useImageViewer, useMediaAccess and useMediaUpload() (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 latest onChange
    (edits made meanwhile are kept); FormField, FieldError,
    RepeaterRow, IconButton; Dialog gains footer and size. The SDK
    adds the RichDocument and MediaItem types. 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): math inside text and
    mathBlock on its own line, each a latex in 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 codes document_formula,
    document_formula_missing, max_formulas), at most 1,000 per document, 1,000 characters and 8 levels
    each. to_html writes MathML (<math display="inline|block" displaystyle="true"> with the LaTeX in a TeX annotation, no style) that
    browsers draw as it is; outline uses 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); Envelope gains unloaded
    (a public field: code building an Envelope literal adds
    unloaded: Vec::new()); DynResource gains has_virtual_fields,
    lock_record and find_key (implementations outside the crate add them);
    a record's history, relation lists and links check access with find_key
    (no virtual field loaded); ctx.record(slug, key) and the data of slots
    beside records load them. rustcms::admin::* also exports Virtual,
    VirtualField, VirtualInput and Checker (a glob import may clash with
    names of your own). SDK_UI is 6 (rustcms make:sdk, Requires { ui: 6 }).
  • Extensions: ui 5 adds the forms' widgets (the SDK is at ui 6, above).
    Bundles built for ui 1 to 4 keep working; to use the new widgets, copy
    the SDK (rustcms make:sdk), set Requires { ui: 6 } and rebuild.
  • Rich text: VERSION is 4; Node gains Math and MathBlock
    (#[non_exhaustive] already). Releases before this one show documents with
    formulas read-only in the panel and refuse them in rich_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 new components/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 keys audit.apply, audit.reset and audit.more are now
    filter.apply, filter.reset and list.loadMore.