Skip to content

Update to Rust FFI v0.16.0, make UniFFI CMake generic, fix broken link - #335

Merged
alan-george-lk merged 5 commits into
mainfrom
alan/feature-dt-uniffi-cmake
Dec 2, 2026
Merged

alan-george-lk merged 5 commits into
mainfrom
alan/feature-dt-uniffi-cmake

Conversation

@alan-george-lk

@alan-george-lk alan-george-lk commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Pin client-sdk-rust to livekit-ffi/v0.16.0 release
  • Make UniFFI CMake discovery more generic
  • Fix broken link check by excluding YouTube (breaks Lychee's header limit now)

UniFFI Change Details

Previously, UniFFI files were hard-coded in CMake due to the light initial integration. Now that data tracks and future features are being migrated, a more generic mechanism was needed for detecting and compiling the bindgen files. The following describes these changes further:

  • Discover UniFFI C++ sources after bindgen runs and compile them through one generated translation unit, so clean builds work with any set of emitted components
  • Make SDK compilation wait for the generated bindings and track every generated source and header so missing files trigger regeneration
  • Track Rust inputs from livekit, livekit-common, and livekit-datatrack so edits in those crates rebuild the Rust FFI library and refresh the C++ bindings (for incremental builds or local submodule changes)

@alan-george-lk
alan-george-lk requested review from a team and xianshijing-lk as code owners December 1, 2026 21:27
devin-ai-integration[bot]

This comment was marked as resolved.

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

✅ Memory checks passed.

CI run · Commit 0b1639d

Memory tester results

Iterations: 100
Warmup: 20
Blocking limits: RSS growth ≤ 24 MiB; thread growth ≤ 10.
Advisory limits: RSS growth ≤ 8 MiB; thread growth ≤ 0.

Scenario RSS 0→20 RSS 20→100 Threads 0→20 Threads 20→100 Status
audio-track +17.77 MiB +0.25 MiB +7 0 ✅ PASS
video-track +18.64 MiB +0.18 MiB +7 0 ✅ PASS
data-track +13.97 MiB -0.04 MiB +1 0 ✅ PASS
room-reuse +13.60 MiB +0.16 MiB +1 0 ✅ PASS
room-client-leave +13.70 MiB +0.19 MiB +1 0 ✅ PASS
room-server-delete +16.20 MiB -0.17 MiB +1 0 ✅ PASS
capture-clock +118.95 MiB +0.59 MiB +7 0 ✅ PASS
capture-pattern +122.29 MiB -6.44 MiB +7 0 ✅ PASS
capture-gstreamer +35.43 MiB +0.97 MiB +9 0 ✅ PASS

@alan-george-lk
alan-george-lk force-pushed the alan/feature-dt-uniffi-cmake branch from 62a3549 to e5a6f32 Compare December 2, 2026 01:35
@alan-george-lk alan-george-lk changed the title Build UniFFI data-track bindings with Rust FFI v0.16.0 Update to Rust FFI v0.16.0, make UniFFI CMake generic Dec 2, 2026
@alan-george-lk alan-george-lk changed the title Update to Rust FFI v0.16.0, make UniFFI CMake generic Update to Rust FFI v0.16.0, make UniFFI CMake generic, fix broken link Dec 2, 2026
@alan-george-lk
alan-george-lk merged commit 663b80d into main Dec 2, 2026
25 of 27 checks passed
@alan-george-lk
alan-george-lk deleted the alan/feature-dt-uniffi-cmake branch December 2, 2026 03:11
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