Skip to content

fix: exclude wasm from Rust workspace to fix Python sdist packaging#42

Merged
g4bri3lDev merged 1 commit into
OpenDisplay:mainfrom
cryptomilk:asn-release
Jun 29, 2026
Merged

fix: exclude wasm from Rust workspace to fix Python sdist packaging#42
g4bri3lDev merged 1 commit into
OpenDisplay:mainfrom
cryptomilk:asn-release

Conversation

@cryptomilk

Copy link
Copy Markdown
Contributor

The sdist built by maturin includes rust/Cargo.toml (the workspace root needed to resolve the core path dependency) but not rust/wasm/ (which is not in the Python package's dependency tree). This caused cargo vendor to fail when packaging for OpenSUSE because the workspace declared a member directory that didn't exist in the tarball.

The wasm crate is standalone. It declares all its dependencies directly and doesn't rely on any workspace-level config, so removing it from the workspace doesn't affect the wasm-pack build in CI.

Fixes #40

The sdist built by maturin includes rust/Cargo.toml (the workspace root
needed to resolve the core path dependency) but not rust/wasm/ (which is
not in the Python package's dependency tree). This caused cargo vendor
to fail when packaging for OpenSUSE because the workspace declared a
member directory that didn't exist in the tarball.

The wasm crate is standalone. It declares all its dependencies directly
and doesn't rely on any workspace-level config, so removing it from the
workspace doesn't affect the wasm-pack build in CI.

Fixes OpenDisplay#40
@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@g4bri3lDev g4bri3lDev merged commit 4f92399 into OpenDisplay:main Jun 29, 2026
5 checks passed
g4bri3lDev added a commit that referenced this pull request Jun 29, 2026
The workspace-root fix in #42 didn't trigger a release-please bump because
it lived outside the packages/python path. This path-scoped change bumps
the package to 5.0.7 so the corrected sdist publishes to PyPI, and adds a
CI guard asserting the sdist's embedded workspace manifest is loadable.
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.

Packaging issues with pypi package

2 participants