Skip to content

fix: repair uniffi release pipeline and bump uniffi to 0.31 - #504

Merged
stefan-gorules merged 2 commits into
masterfrom
fix/update-uniffi-bindgen
Aug 18, 2026
Merged

fix: repair uniffi release pipeline and bump uniffi to 0.31#504
stefan-gorules merged 2 commits into
masterfrom
fix/update-uniffi-bindgen

Conversation

@stefan-gorules

Copy link
Copy Markdown
Contributor

No description provided.

… to FFM

The java release job broke because unpinned cargo install pulled
uniffi-bindgen-java 0.4.2, which targets uniffi 0.31 and changed its
CLI. Instead of pinning backwards, move forward:

- bump uniffi 0.29.5 -> 0.31.2 (segfault fix for foreign-future
  completion, kotlin async external-type fix)
- pin uniffi-bindgen-java at 0.4.2: java bindings now use FFM instead
  of JNA (upstream-benchmarked 4.2x-426x faster FFI). Java artifact
  floor moves to Java 22 (--release 22, built on JDK 23); JNA removed
  from its classpath and POM. Kotlin artifact keeps JNA and stays at
  jvmTarget 21.
- pin uniffi-bindgen-cs at gorules/uniffi-bindgen-cs@d080b41: upstream
  v0.11.0 (uniffi 0.31) plus the callback_interface async return-type
  fix (NordSecurity/uniffi-bindgen-cs#165); async custom-node handlers
  now generate Task<T>
- assert built linux libs never require glibc above the zigbuild
  target, so native builds on new runners can't silently raise the
  floor again
uniffi 0.31 emits enum variant payload types fully qualified under the
bindings package (mozilla/uniffi-rs#2698), so the android bindings
reference io.gorules.zen_engine.kotlin_android.JsonBuffer even though
the custom-type imports config places the class in the sibling .kotlin
package. Ship a typealias in the android package so both the imported
unqualified references and the newly qualified ones resolve to the
same class; existing consumers keep the .kotlin package type.
@stefan-gorules
stefan-gorules merged commit 7259ab2 into master Aug 18, 2026
22 checks passed
@stefan-gorules
stefan-gorules deleted the fix/update-uniffi-bindgen branch August 18, 2026 21:03
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.

2 participants