Skip to content

build: add [profile.dist] required by cargo-dist 0.31.0#75

Merged
subotic merged 2 commits into
mainfrom
feat/batch-cli-improvements
Mar 20, 2026
Merged

build: add [profile.dist] required by cargo-dist 0.31.0#75
subotic merged 2 commits into
mainfrom
feat/batch-cli-improvements

Conversation

@subotic

@subotic subotic commented Mar 20, 2026

Copy link
Copy Markdown
Owner

Motivation

The v0.2.0 release build failed on all 4 targets with error: profile 'dist' is not defined. cargo-dist 0.31.0 expects a [profile.dist] in Cargo.toml for release builds.

Summary

  • Add [profile.dist] inheriting from release with lto = "thin" for smaller binaries

Test Plan

  • Re-trigger release workflow after merge: gh workflow run release.yml -f tag=v0.2.0

subotic and others added 2 commits March 20, 2026 23:58
release-plz was creating the same v{{ version }} tag for both loom-cli
and loom-core, causing "Reference already exists" on the second crate.

Fix: disable git_tag_enable at workspace level, enable it only on
loom-cli (the primary package). loom-core inherits the disabled default.

See: https://release-plz.ieni.dev/docs/extra/single-tag
See: release-plz/release-plz#2292

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
cargo-dist 0.31.0 expects a `dist` cargo profile for release builds.
Without it, `dist build` fails with "profile `dist` is not defined".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@subotic subotic merged commit ef1e9d3 into main Mar 20, 2026
6 checks passed
@subotic subotic deleted the feat/batch-cli-improvements branch March 20, 2026 23:05
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