Skip to content

fix(sessions): allow cargo publish by renaming nested helper manifest#175

Merged
mwiebe merged 1 commit into
OpenJobDescription:mainfrom
mwiebe:publish-helper
May 11, 2026
Merged

fix(sessions): allow cargo publish by renaming nested helper manifest#175
mwiebe merged 1 commit into
OpenJobDescription:mainfrom
mwiebe:publish-helper

Conversation

@mwiebe
Copy link
Copy Markdown
Contributor

@mwiebe mwiebe commented May 11, 2026

What was the problem/requirement? (What/Why)

Publishing openjd-sessions to crates.io didn't work on the first try.

What was the solution? (How)

Cargo refuses to package any subdirectory containing a Cargo.toml, which caused cargo publish -p openjd-sessions to exclude src/helper/ and fail during verification. Rename the helper manifest to Cargo.toml.bundled so Cargo includes it in the tarball, and update build.rs to copy the helper tree into OUT_DIR and restore the manifest name before building.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@mwiebe mwiebe requested a review from a team as a code owner May 11, 2026 22:23
Comment thread crates/openjd-sessions/src/helper/Cargo.bundled.toml
Cargo refuses to package any subdirectory containing a `Cargo.toml`,
which caused `cargo publish -p openjd-sessions` to exclude `src/helper/`
and fail during verification. Rename the helper manifest to
`Cargo.toml.bundled` so Cargo includes it in the tarball, and update
`build.rs` to copy the helper tree into OUT_DIR and restore the manifest
name before building.

Signed-off-by: Mark <399551+mwiebe@users.noreply.github.com>
@mwiebe mwiebe enabled auto-merge (rebase) May 11, 2026 22:52
@mwiebe mwiebe merged commit cb03670 into OpenJobDescription:main May 11, 2026
19 checks passed
@mwiebe mwiebe deleted the publish-helper branch May 11, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants