Skip to content

fix(release): add [profile.dist] required by cargo-dist v0.26.0#123

Merged
ferhimedamine merged 1 commit into
mainfrom
fix/cargo-dist-profile
Jul 16, 2026
Merged

fix(release): add [profile.dist] required by cargo-dist v0.26.0#123
ferhimedamine merged 1 commit into
mainfrom
fix/cargo-dist-profile

Conversation

@ferhimedamine

Copy link
Copy Markdown
Contributor

Problem

dist build fails on all platforms with:

error: profile `dist` is not defined
× failed to find bin dk for path+file://...

cargo-dist v0.26.0 requires a [profile.dist] section in Cargo.toml. Without it, dist build cannot compile the binary for any target.

Fix

Add:

[profile.dist]
inherits = "release"

This is the standard profile added by dist init and referenced in all cargo-dist generated workflows.

Ref DAK-7451.

cargo-dist build errors with "profile 'dist' is not defined" without
this profile in Cargo.toml. Inherits from release for optimized builds.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ferhimedamine
ferhimedamine merged commit 443be9a into main Jul 16, 2026
6 checks passed
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