Skip to content

fix(native): swift staticlib --lib filter + python maturin module-name#31

Merged
f0rest8 merged 2 commits into
mainfrom
fix/native-release-swift-lib-and-py-module
Jul 16, 2026
Merged

fix(native): swift staticlib --lib filter + python maturin module-name#31
f0rest8 merged 2 commits into
mainfrom
fix/native-release-swift-lib-and-py-module

Conversation

@f0rest8

@f0rest8 f0rest8 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

First native-v0.1.11 release run surfaced two config bugs (guard, all desktop JVM libs, and bindings smokes passed; swift + all python legs failed).

Swift xcframework - cargo rustc --release --features uniffi --crate-type staticlib failed with crate types to rustc can only be passed to one target, because --features uniffi also enables the uniffi-bindgen bin target. Fix: add --lib. Verified locally on aarch64-apple-darwin (produces libmetamorphic_log.a, no error).

Python wheels (all legs) - maturin failed with The module name must not contain a minus, because the distribution name metamorphic-log has a -. Fix: pin [tool.maturin] module-name = "metamorphic_log" (the uniffi namespace from src/lib.rs).

actionlint clean. Publish steps remain gated off.

f0rest8 added 2 commits July 16, 2026 17:16
Two first-release failures in release-native.yml:

- swift: cargo rustc --crate-type staticlib failed because --features uniffi
  also selects the uniffi-bindgen bin target (crate types can only target one
  target). Add --lib to filter to the library target. Verified locally.
- python: maturin rejected the module name because the distribution name
  metamorphic-log contains '-'. Pin [tool.maturin] module-name to the uniffi
  namespace metamorphic_log.
The Maven job failed at Gradle configuration: plugin
com.gradleup.nmcp.aggregation:0.0.9 does not exist (scaffold placeholder
version). Latest is 1.6.1; the DSL we used (nmcpAggregation { centralPortal
{...} } + nmcpAggregation(project(...)) + com.gradleup.nmcp on subprojects +
publishAggregationToCentralPortal) matches 1.6.x per the nmcp docs.
@f0rest8

f0rest8 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Added a third fix: the Maven job failed at Gradle config with Plugin [id: 'com.gradleup.nmcp.aggregation', version: '0.0.9'] was not found - 0.0.9 was a scaffold placeholder. Bumped to 1.6.1 (current latest) across the root + both subproject build files. The DSL already matches the 1.6.x API per the nmcp docs.

Run 29534041229 summary: guard PASS, all 4 desktop JVM libs PASS, bindings smokes PASS. Failures were swift (--lib), python (module-name), maven (nmcp version) - all three now in this PR.

@f0rest8
f0rest8 merged commit 1d30788 into main Jul 16, 2026
12 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