Versioning and releases
English | 中文
Version policy
The latest release is 0.3.2. The Material crates and Gallery share the version in the root [workspace.package]. The public facade and integration contract define compatibility, including documented features, upstream types in public signatures, and supported platform behavior.
- Before
1.0.0, use a patch bump for backward-compatible fixes and a minor bump for backward-compatible features or breaking changes (resetting patch to zero). If a release mixes several change types, use the highest applicable bump. - From
1.0.0onward, follow SemVer: incompatible public API changes increment major, compatible features and deprecations increment minor, and compatible fixes increment patch. - Document every breaking change and its migration steps, including before
1.0.0.
Changelog
Record user-visible changes to the Material crates and Gallery under Unreleased in CHANGELOG.md as they merge—features, observable fixes, accessibility and performance improvements, platform or dependency changes affecting integration, and migrations. Exclude website and documentation changes, even when submitted alongside code changes. Group entries by area, summarize user impact, and credit contributors where applicable. Format reference: GPUI Kit v0.9.1 release.
When preparing a release, reconcile Unreleased against the full commit range since the previous release tag, move the entries under the new version heading with the release date, and keep an empty Unreleased heading. The version section becomes the GitHub Release body (with a contributor list where applicable and a Full Changelog comparison link).
Prepare and publish
GitHub Releases provide release notes and source archives. Run Gallery from a source checkout with cargo gallery.
- Release PR: Update the shared workspace version, exact internal dependency versions,
Cargo.lock,CHANGELOG.md, and documented version/migration notes. - CI & desktop smoke check: Ensure
CI requiredis green onmain, and run a quick Windows 11 x64 smoke check on the release commit:cargo gallery: confirm window title/icon, narrow-to-compact layout switch, status bar theme/version, and affected stories (including Microsoft Pinyin IME and Narrator for input/overlay changes).cargo gallery --window-chrome: confirm title-bar drag, double-click maximize/restore, Windows Snap Layouts on Maximize hover, Block close toggle, and clean process exit when closing the last window.
- Dry run: Trigger the manual Release workflow on
mainwithversion = X.Y.Zandpublish: false. It checks manifests, changelog extraction, and packages all six library crates (gpui-material-theme,gpui-material-foundation,gpui-material-components,gpui-material-extras,gpui-material,gpui-material-design-symbols) from independent downstream crates on the workspace MSRV. - Publish: After owner approval, run the Release workflow on
mainwithversion = X.Y.Zandpublish: true. Afterreleaseenvironment approval, it authenticates to crates.io via Trusted Publishing (OIDC), publishes the six crates in dependency order (waiting for each to appear in the sparse index), and creates the annotatedvX.Y.Ztag and GitHub Release.
Release workflow setup
The Release workflow uses GitHub Actions OIDC (rust-lang/crates-io-auth-action) with the release GitHub Environment instead of a long-lived CARGO_REGISTRY_TOKEN secret.
- In GitHub repository settings, configure the
releaseenvironment with required reviewers and restrict deployments tomain. - On crates.io, add a Trusted Publishing binding on each of the six crates pointing to
wangdiandao/gpui-material, workflow filenamerelease.yml, and environmentrelease.