Skip to content

Releases

RustCMS v0.17.0

Choose a tag to compare

@irisvn irisvn released this 03 Dec 10:56

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=local and a loopback client, a 500 from
    AppError::Internal or 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 a debug object; 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 (backtrace 0.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=production serve warns that APP_DEBUG is ignored.
  • AppError::internal_error(err) keeps the source() 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; redact cleans the message and the
    causes; From<String>/From<&str>). See upgrade.md "From 0.16.0 to 0.17.0".

RustCMS v0.16.0

Choose a tag to compare

@irisvn irisvn released this 03 Dec 04:18

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 new writes
    AGENTS.md (conventions and the rules that keep an application safe),
    CLAUDE.md and six skills in .claude/skills, linked to the guide of the
    application's RustCMS version; rustcms agents adds or refreshes it and
    keeps what the developer edited (.rustcms/agents.json, --dry-run,
    --force); rustcms upgrade reminds to run it. The examples carry it.
  • The guide as Markdown: each build also publishes llms.txt,
    llms-full.txt and md/<page>.md (code samples included, absolute links).

Security

  • pin-project-lite 0.2.17 → 0.2.19: every earlier version was yanked for a
    soundness bug (a Drop that 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 the security CI 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 on main. Releases
    are published with the Linux builds; the macOS build (now macos-latest) is
    attached afterwards, and CI's macOS job (cli-macos) no longer holds the
    record back. just worktree clones target/ copy-on-write (a full copy on file systems
    without clones).

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.

RustCMS v0.14.1

Choose a tag to compare

@irisvn irisvn released this 24 Nov 03:51

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.mjs keeps the sticky top bar out
    of element shots taller than the window.

RustCMS v0.14.0

Choose a tag to compare

@irisvn irisvn released this 23 Nov 17:02

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 an EHLO reply or a
    display name with CR/LF, quoted local parts sent to another address) and url
    2.5.9 (RUSTSEC-2026-0592, stack overflow in Url::origin()); both newer
    than two weeks, as security exceptions. cargo deny ignores
    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/BadgeColumn show the label of each value,
    declared with TableColumn::options([(value, label), …]) or taken from the form's select or checkbox list of
    the same field (never for belongs_to fields); .raw() keeps the values. Labels are translated (and listed
    by missing translations); colors, sorting, search, filters and exports still use the values. ColumnSchema
    gains options. 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) and Entry::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_format set 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). ColumnSchema and EntrySchema gain
    format; the panel's configuration dateFormat/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) and FileUpload .preview(false) keep a field's
    images still; EntrySchema and MediaSchema gain preview (sent only when false). New admin-ui dependency
    yet-another-react-lightbox 3.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, info and
    info-foreground, hover colors (primary-hover, secondary-hover, destructive-hover) and soft pairs
    (destructive/success/warning/info/gray -soft and -soft-foreground); hover and soft colors follow
    their color through color-mix unless 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 color info (BadgeColumn::color, TextEntry::color,
    the SDK's Badge, whose color prop 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
    optional collection part (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. InputSchema gains
    collection, PanelResponse mediaCollections, MediaItem collection. Framework migration
    m20261202_000023_add_collection_to_media (nullable media.collection and an index on it with created_at;
    its down drops 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 the in list and matched as IS 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_fn and form/rules
    are not in this release; options_fn and 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_items does not apply while
      hidden; clear_when_hidden is 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_eq on
      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 (before required and 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. RelationSchema gains fixed.
    • Repeater::table(): rows as table rows from md (RepeaterSchema.layout).
    • RepeatableEntry::relationship(): a has-many relation's records on the view page, through its list,
      at most limit(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), .collection on the input) and rich editors (.nodes), settings rows too; relationship
      rows take the child's media, rich text and belongs_to fields. 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 code too_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 (migrations m20261119_000006_create_quiz_tables,
      m20261120_000007_add_media_to_quiz_options), courses enroll learners in their form.
  • 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 route POST form/options (authorized as form/react, sharing its bucket and
    turns; answers checked: at most 500 options and 64 KiB, canonical, no value twice; failed keeps 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 (409 stale) and that the value is among the options (not_option; checkbox
    lists keep their shape); new form error options_failed. Never decided by a value the user cannot read.
    Imports retry stale and options_failed rows. Refused at boot in rows, on settings pages and action forms,
    on belongs_to and ...

Read more

RustCMS v0.13.1

Choose a tag to compare

@irisvn irisvn released this 17 Nov 10:14

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), and Field::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 name node is
    reserved. The editor inserts them from an Insert an element menu; an
    extension draws and edits them with registerRichTextNode(name, { view, edit }) (SDK ui 4), 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.kbd and
    app.note_ref in 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::Mark is #[non_exhaustive] and has three new variants: an
    exhaustive match needs a _ arm. rich_text::VERSION is 3
    (upgrade_value still only lifts version 1 to 2); rich_text::parse
    refuses application elements (use AppNodes::parse). The SDK is ui 4:
    extensions rebuilt with it declare Requires { ui: 4, … } (rustcms make:sdk lists 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 without infolist() 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, null where the
    form hides a field); a declared infolist still reads the stored values. A
    belongs_to field'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
    infolist only 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

Choose a tag to compare

@irisvn irisvn released this 17 Nov 06:55

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 runs serve through cargo 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 its default-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_hidden fields a write hides take their
    column's default (else null, 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 declare required, max_length, integer. The
    server checks every row (errors at faq.2.question), removes inputs hidden
    by the row's conditions, and refuses media, rich text and secrets in rows.
    SettingField::repeater for settings pages; RepeatableEntry on view
    pages; issue code min_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 by MAX typed by the order column; the parent's history
    counts rows; addable/deletable enforced; new rows use the child's create
    inputs (createComponents, vocabulary 16). Issue codes not_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 carry counts; 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, ComputedEntry and CustomEntry (registerEntry), with
    shown_when on the stored values. Resource::computed() declares values
    computed when the view page opens (route records/{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::Infolist draws a panel page's data with
    entries. Extension host ui 3: registerEntry and the SDK's Infolist
    (rustcms make:sdk points at registrations to move to ui: 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)
    and SettingField::min/max/step (integer settings). min and max bound
    client writes on every path (issues min_value, max_value); step is 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, min above max, 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. i32 and f64 values get a native number input
    (text it cannot read is reported, not saved as empty); i64 and decimals
    stay text.

Changed

  • Breaking (Rust API): new enum variants Component::Entry,
    ComponentSchema::Entry and PageView::Infolist (exhaustive matches need
    an arm); DynResource gains computed (only for code implementing it by
    hand). Extension host ui 3 (bundles built for ui 2 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 of titles(). rustcms_admin::Condition
    (exported for conditions) can clash with sea_orm::Condition when 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" stays custom.
  • CSV import reports keep messages whose numbers are negative or decimal
    (must be at least 0.5) instead of showing is 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_parent may
    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 error is incomplete for 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 -wal file). No sqlx
    release allows it yet: Core and new applications patch sqlx to an
    unreleased commit ([patch.crates-io], rev 10462fa4), 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

Choose a tag to compare

@irisvn irisvn released this 04 Nov 17:53

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 a rustfmt.toml (the framework's) and
    passes the cargo fmt --check of its own CI, whatever its name (crate
    imports in their own group, generator markers inside the builder chains of
    admin_panel_provider.rs and routes/api.rs).

RustCMS v0.12.0

Choose a tag to compare

@irisvn irisvn released this 04 Nov 07:12

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_path answers but a JSON 404 (before routing, no session
    loaded): no panel, admin API, panel sign-in routes or AdminRoutes
    (streams, sockets). Permissions, job kinds, schedules and commands are
    declared as in full. queue.enabled and schedule.enabled left out are
    false in API mode. AppState::mode(), AppBuilder::mode(),
    AppBuilder::panel_path(), queue::Jobs::kinds(); serve in API mode
    warns about SQLite, a missing Redis and a local disk
    (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, Updated with 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 with oha on 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::spawn loops in
    AdminProvider::boot with a Redis lease: run only by serve with the
    scheduler, once per slot across instances, never by commands or tests.
    Deployments without the scheduler run media:prune and
    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): serve in
    any mode and queue:work at start and every 10 minutes, queue:work --once
    and media:prune once. media::prune, exports::prune and
    imports::prune no longer sweep.

  • A JWT's sign-in and user are read in one joined statement. Two opt-in
    settings (default 0, 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. 1000 on 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) and last_used_at is 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

Choose a tag to compare

@irisvn irisvn released this 28 Oct 10:26

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 docs opens 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 of main is published to /dev/.
  • Release and the new Docs workflow read DIST_TOKEN from the pages
    environment and write gh-pages one 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-http catch-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 of tokio::spawn loops in boot: run only by serve with 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
    reserved rustcms. prefix. Media and exports/imports cleanups unchanged.
  • Static options of SelectInput and CheckboxList bound 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" on i64, 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_to keep 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, a CheckboxList on 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) or too_many_matches (more
    than 10,000 candidates checked by a per-record policy), mapped from the form
    issue codes of export_keys; it was revoked. Other refusals stay
    revoked. ExportView.error documents the codes; the panel translates them.
  • The browser's socket send limit follows [realtime] max_message_bytes: the
    panel page carries realtime.maxMessageBytes (the value as applied, 1 B to
    1 MiB; static and runtime branding renders), the SPA's ApiClient keeps it
    and openSocket uses it unless the caller passes maxMessageBytes (64 KiB
    without either). Realtime::max_message_bytes() (read-only). A tab keeps the
    limit it loaded.

Fixed

  • GET {admin}/api/exports answered 500 on MySQL once an export held
    thousands of keys: the list sorted rows carrying the keys JSON 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 imports unfinished
    is per disk too.