Skip to content

chore: pin mopro-ffi path-dep version in mopro-cli for publish#707

Merged
moven0831 merged 1 commit into
mainfrom
chore/pin-mopro-ffi-path-dep-version
May 28, 2026
Merged

chore: pin mopro-ffi path-dep version in mopro-cli for publish#707
moven0831 merged 1 commit into
mainfrom
chore/pin-mopro-ffi-path-dep-version

Conversation

@moven0831
Copy link
Copy Markdown
Collaborator

Summary

Adds version = "=0.3.6" alongside the existing path = "../mopro-ffi" in cli/Cargo.toml for the mopro-ffi dependency.

Why

Follow-up to #706. When trying to publish mopro-cli 0.3.6 to crates.io, cargo publish rejects the manifest:

error: failed to verify manifest at `cli/Cargo.toml`
Caused by:
  all dependencies must have a version requirement specified when publishing.
  dependency `mopro-ffi` does not specify a version

For path dependencies, Cargo strips the path = on upload and substitutes the version = requirement — so a path dep without a version is publishable only inside the workspace, not to crates.io. Adding version = "=0.3.6" lets the published mopro-cli 0.3.6 resolve against mopro-ffi 0.3.6 on crates.io while in-workspace builds still resolve via path.

=0.3.6 (exact pin) matches what #706 did for the mopro init template — the two crates are versioned in lockstep, and an exact pin prevents mopro-cli 0.3.6 from accidentally resolving against a future mopro-ffi 0.3.7 that hasn't been validated together.

Next step

After this merges:

git checkout main && git pull
cargo publish -p mopro-cli
git tag v0.3.6 && git push --tags

Test plan

  • cargo check --workspace still passes (no behavior change inside workspace).
  • cargo publish -p mopro-cli --dry-run succeeds on this branch.
  • After merge + publish, https://crates.io/crates/mopro-cli/0.3.6 exists and lists mopro-ffi =0.3.6 as a dep.

🤖 Generated with Claude Code

`cargo publish -p mopro-cli` requires every dependency to specify a
version, including path dependencies (the version is what consumers
of the published crate will see; the `path` is stripped on upload).
Add `version = "=0.3.6"` alongside the existing `path = "../mopro-ffi"`
so we can publish `mopro-cli 0.3.6` to crates.io.

No functional change for in-repo builds — path resolution still wins
in the workspace.
@moven0831 moven0831 merged commit 4b8ab2d into main May 28, 2026
18 of 19 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