Skip to content

build(deps)!: move to fig 7 and twig 6 - #10

Merged
adammharris merged 1 commit into
mainfrom
cc/modest-mendel-tw57ql
Oct 15, 2026
Merged

adammharris merged 1 commit into
mainfrom
cc/modest-mendel-tw57ql

Conversation

@adammharris

Copy link
Copy Markdown
Member

Moves plates onto prov's current main, which has moved to fig 7 and twig 6 (diaryx-org/prov#12). Without this, plates no longer builds against prov main: it turns on prov/fig-lang and names prov::Format, and both are gone.

Changes

  • Lockfile: cargo update -p prov. twig-doc goes from 4.0.1 to 6.0.0, the twig language crates come in, and the twig-sys crates leave.
  • fig: version = "7", with default-features = false and only the derive feature.
  • Format features removed: yaml, json, toml and fig-lang are gone from plates, plates-render and plates-cli. They only forwarded to prov's features, which no longer exist, and gated nothing in plates itself.
  • twig 6:
    • twig::Format::Markdown/Djot/Html become the language crates' format(). plates reaches those crates through prov's re-exports, so it uses the same twig as prov.
    • MarkdownExtensions { directives: true } becomes the "directives" feature name. visibility::extensions() is now features(), and returns that feature for Markdown only, because twig refuses a feature a language doesn't declare.
  • Metadata format type: prov::Format becomes prov::MetaFormat.
  • CI: Zig removed from CI and from comments in .config/ship.figl. READMEs and manifest comments updated.

Behavioural changes

These are also Behavioural-change: trailers on the commit.

  • The format features no longer exist on any of the three crates. Every build reads YAML, JSON, TOML and figl metadata; the default used to read YAML only.
  • Only ---, +++ and ---<lang> frontmatter is read as metadata. A source using ;;; JSON, a fenced block, endmatter or an HTML island now collects with no metadata. An audience gate therefore leaves it off the site, and if it is published anyway, the block shows up as body text.
  • plates requires fig 7. Code that reads the appearance types with FromValue must be on fig 7 too.

Checks

Every job in .config/ship.figl passes locally:

  • fmt
  • clippy (--all-features -D warnings)
  • test
  • docs
  • the wasm32 check
  • each crate built on its own
  • MSRV 1.88

Generated by Claude Code

prov's main is on fig 7 and twig 6, and plates takes prov from main:
fig and twig reach this workspace through it, so their majors are
plates' too. Both are pure Rust now, and both cores name no language.

- fig is taken at 7 for the appearance types' derive macros, the one
  thing plates asks of it directly.
- A twig format is a handle a language crate registers, not a
  `twig::Format::Markdown` variant. `twig_format` and the parses in
  `body`, `embed` and `template` get theirs from `twig-markdown`,
  `twig-djot` and `twig-html` as prov re-exports them
  (`prov::prov_graph`), so the handle names a row in the twig prov
  registered rather than in a second copy.
- `MarkdownExtensions { directives: true, .. }` is the feature list
  `["directives"]` (`Document::parse_with_features`,
  `Editor::new_with_features`). twig refuses a feature a language does
  not declare, so Djot and HTML are asked for none, where the struct
  used to be passed to every grammar and ignored by two.
- `prov::Format::Yaml` is `prov::MetaFormat::Yaml`.
- The `yaml`, `json`, `toml` and `fig-lang` features are gone from all
  three crates. They gated nothing of plates' own and only forwarded to
  prov's, which prov removed: it always compiles in the four dialects.
- CI stops installing Zig.

Behavioural-change: The `yaml`, `json`, `toml` and `fig-lang` features
  no longer exist on `plates`, `plates-render` or `plates-cli`; a
  manifest that names one fails to resolve. Drop it: every build now
  reads YAML, JSON, TOML and figl metadata, where the default build
  read YAML only.
Behavioural-change: Only frontmatter is read as a document's metadata,
  as prov now reads it: `---` YAML, `+++` TOML and `---<lang>`. A
  source whose metadata is a `;;;` JSON block, a fenced ```` ```yaml ````
  or ```` ```fig ```` block, ```` ```endmatter ````, or an HTML
  `<script>`/`<pre><code>` island is collected as having no metadata —
  no title, audience or id from it, so a gate on `audience` leaves it
  off the site — and the block publishes as body text if the page is
  published at all.
Behavioural-change: plates requires fig 7. A caller deserializing the
  appearance types (`ThemeAppearance`, `ColorPalette`, …) with fig's `FromValue`
  must be on fig 7 too; a fig 5 `Value` is a different type.
@adammharris
adammharris merged commit c81bcd4 into main Oct 15, 2026
8 checks passed
@adammharris
adammharris deleted the cc/modest-mendel-tw57ql branch October 15, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant