From 32af3ff4b73ce74eb797efea8b9658479c450fd3 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Sat, 24 Oct 2026 12:09:32 -0700 Subject: [PATCH 1/4] chore(quest): claim quest/m1/c/duration.md Quest-Claim: edce8e1e23c5e549 From 3f9571eaad8197693ad633f199c316d34cd1f88a Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Sat, 24 Oct 2026 12:22:35 -0700 Subject: [PATCH 2/4] build: pin uniffi-bindgen-cpp with C durations Pins the fork commit that renders UniFFI's Duration in the generated C, kixelated/uniffi-bindgen-cpp#6, until it is tagged v0.11.0-kixelated.7+v0.32.2. Finishes quest/m1/c/duration.md. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/cpp.yml | 2 +- .github/workflows/platform.yml | 4 ++-- .github/workflows/release-cpp.yml | 2 +- .github/workflows/release-shared-ffi.yml | 2 +- cpp/moq/README.md | 2 +- flake.nix | 9 +++++---- quest/m1/c/README.md | 1 - quest/m1/c/duration.md | 25 ------------------------ quest/m1/ffi-durations.md | 11 +++++------ rs/moq-ffi/build.sh | 2 +- 10 files changed, 17 insertions(+), 43 deletions(-) delete mode 100644 quest/m1/c/duration.md diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 5a804692b2e..b2e7e28d2d6 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -36,7 +36,7 @@ jobs: - uses: ./.github/actions/just - name: Install uniffi-bindgen-cpp - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --tag v0.11.0-kixelated.6+v0.32.2 + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev 2e9dd2b2678a70e5557aba4f8f972753362ce9db - name: Check run: just cpp check diff --git a/.github/workflows/platform.yml b/.github/workflows/platform.yml index 921ec319de7..ec6d3986c65 100644 --- a/.github/workflows/platform.yml +++ b/.github/workflows/platform.yml @@ -105,7 +105,7 @@ jobs: - name: Install uniffi-bindgen-cpp if: needs.scope.outputs.cpp == 'true' || needs.scope.outputs.obs == 'true' shell: bash - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --tag v0.11.0-kixelated.6+v0.32.2 + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev 2e9dd2b2678a70e5557aba4f8f972753362ce9db - name: Rust compile and tests if: needs.scope.outputs.rs == 'true' shell: bash @@ -151,7 +151,7 @@ jobs: secret-access-key: ${{ secrets.MBX_R2_SECRET_ACCESS_KEY }} - name: Install uniffi-bindgen-cpp if: needs.scope.outputs.obs == 'true' - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --tag v0.11.0-kixelated.6+v0.32.2 + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev 2e9dd2b2678a70e5557aba4f8f972753362ce9db - name: Rust compile and tests if: needs.scope.outputs.rs == 'true' env: diff --git a/.github/workflows/release-cpp.yml b/.github/workflows/release-cpp.yml index d64bf51b862..28ea45032b2 100644 --- a/.github/workflows/release-cpp.yml +++ b/.github/workflows/release-cpp.yml @@ -74,7 +74,7 @@ jobs: # The tag flake.nix pins; see the comment there. - name: Install uniffi-bindgen-cpp shell: bash - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --tag v0.11.0-kixelated.6+v0.32.2 + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev 2e9dd2b2678a70e5557aba4f8f972753362ce9db # The package version lives in cpp/moq/VERSION; a tag that disagrees is a mistake. - name: Check version diff --git a/.github/workflows/release-shared-ffi.yml b/.github/workflows/release-shared-ffi.yml index 25dbe695f7c..bd0f26dc137 100644 --- a/.github/workflows/release-shared-ffi.yml +++ b/.github/workflows/release-shared-ffi.yml @@ -91,7 +91,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable - name: Install uniffi-bindgen-cpp - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --tag v0.11.0-kixelated.6+v0.32.2 + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev 2e9dd2b2678a70e5557aba4f8f972753362ce9db - name: Download default-feature input uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 with: diff --git a/cpp/moq/README.md b/cpp/moq/README.md index 6741ab9e770..2b842fd155a 100644 --- a/cpp/moq/README.md +++ b/cpp/moq/README.md @@ -19,7 +19,7 @@ The generator is a fork, [kixelated/uniffi-bindgen-cpp](https://github.com/kixel ```bash cargo install uniffi-bindgen-cpp --locked \ --git https://github.com/kixelated/uniffi-bindgen-cpp \ - --tag v0.11.0-kixelated.6+v0.32.2 + --rev 2e9dd2b2678a70e5557aba4f8f972753362ce9db ``` `flake.nix` pins the same tag and lists every other place that names it. diff --git a/flake.nix b/flake.nix index d15ba098697..c6d7c78cd8e 100644 --- a/flake.nix +++ b/flake.nix @@ -408,16 +408,17 @@ # Move back upstream once one tags both. uniffi-bindgen-cpp = pkgs.rustPlatform.buildRustPackage rec { pname = "uniffi-bindgen-cpp"; - version = "0.11.0-kixelated.6+v0.32.2"; + version = "0.11.0-kixelated.7+v0.32.2"; src = pkgs.fetchFromGitHub { owner = "kixelated"; repo = "uniffi-bindgen-cpp"; - rev = "v${version}"; - hash = "sha256-r0O/iAad2Z82KhG+6AOvqESAktaR7THQQVoR2CyP+ok="; + # The commit the tag will name, until kixelated/uniffi-bindgen-cpp#6 merges and is tagged. + rev = "2e9dd2b2678a70e5557aba4f8f972753362ce9db"; + hash = "sha256-KFcNFYTpl9eUHWZPhCZXxwDt7brGcZhky+yoj+4hHqQ="; }; - cargoHash = "sha256-0YWQF8eSUsemU0Y3jgZh7Kgtno/58zBAxPYpcBwPRuk="; + cargoHash = "sha256-fz7fn6D12zmFFSVSdySDfNRtQe+n4KCB9bXAsuvq/QY="; # The workspace's other member is the fixture crate, which pulls the # uniffi examples in from git; build only the generator. diff --git a/quest/m1/c/README.md b/quest/m1/c/README.md index 745c01f003d..0f13a5b2123 100644 --- a/quest/m1/c/README.md +++ b/quest/m1/c/README.md @@ -68,4 +68,3 @@ requests internally and keeps its ABI, so that quest does not wait here. - [moq-c package](/quest/m1/c/package.md) - the generated header ships as `moq-c` 0.8.0 with `moq::c`, pkg-config, and a release workflow - [C consumers](/quest/m1/c/consumers.md) - the C interop client and `doc/lib/c` samples move onto the generated API - [Async failure contract](/quest/m1/c/async-failure-contract.md) - a generated async call that fails early fires no callback, and one that started always delivers its terminal callback -- [Durations in generated C](/quest/m1/c/duration.md) - the C backend renders UniFFI's `Duration` instead of refusing it diff --git a/quest/m1/c/duration.md b/quest/m1/c/duration.md deleted file mode 100644 index bb7fa2df58a..00000000000 --- a/quest/m1/c/duration.md +++ /dev/null @@ -1,25 +0,0 @@ -# [S] Durations in generated C - -## Goal - -The C backend of the `kixelated/uniffi-bindgen-cpp` fork renders UniFFI's -builtin `Duration` instead of bailing with "the C backend does not support -`Duration` yet", so moq-ffi can export typed durations without losing the -generated C. A tagged fork release carries it and moq pins that tag. - -## Plan - -Found 2026-10-23 while checking [binding durations](/quest/m1/ffi-durations.md): -Go, Dart, C++, Python, Swift, and Kotlin already map `Duration`; only -`bindings/c/gen_c.rs` refuses it, alongside `Timestamp`, `Set`, and `Custom`. - -- Pick the C spelling to mirror the C++ package, which uses - `std::chrono::duration`. A single nanosecond count - keeps C callers free of a struct for the common case; check that it covers - every value moq-ffi exposes and refuses the rest loudly. -- Test it with a fixture in the fork, both directions and inside records and - optionals, the way the fork tests its other C types. -- Tag the fork with the next `-kixelated.N` and move every place that names - the pinned tag together (the flake's comment lists them). - -Public API: none until moq-ffi exports a `Duration`. Wire: none. diff --git a/quest/m1/ffi-durations.md b/quest/m1/ffi-durations.md index 33fdef3ef65..4563c8db6d8 100644 --- a/quest/m1/ffi-durations.md +++ b/quest/m1/ffi-durations.md @@ -17,15 +17,14 @@ breaks these options this release, so binding users migrate them once. Checked 2026-10-23 against the pinned generators: UniFFI's builtin `Duration` maps to `time.Duration` in Go, Dart's `Duration`, and `std::chrono` nanoseconds in C++, and Python, Swift, and Kotlin are built -into UniFFI. Only the generated C refuses it, which the C prerequisite below -fixes. +into UniFFI. The generated C renders it as `moq_duration`, `int64_t` +nanoseconds like C++, since `uniffi-bindgen-cpp` `v0.11.0-kixelated.7`. +C and C++ abort on a duration past `INT64_MAX` nanoseconds (about 292 +years), so moq-ffi must not hand out a saturated `Duration::MAX` where it +clamps to `u64::MAX` microseconds today (`auth.rs`, `session.rs`). Public API: moq-ffi, moq-c, every wrapper breaking. Wire: none. -## Required - -- [Durations in generated C](/quest/m1/c/duration.md) - the C backend renders UniFFI's `Duration` instead of refusing it - ## Related - [Exact timestamps in every binding](/quest/m1/binding-timestamps.md) - the same move for media timestamps diff --git a/rs/moq-ffi/build.sh b/rs/moq-ffi/build.sh index 64ef4cb71ae..d5a882c1d60 100755 --- a/rs/moq-ffi/build.sh +++ b/rs/moq-ffi/build.sh @@ -192,7 +192,7 @@ generate_bindings() { # C++ uses a third-party bindgen too: a fork carrying LiveKit's async support # ported to uniffi 0.32, which upstream has not released. Install it with: - # cargo install --locked uniffi-bindgen-cpp --git https://github.com/kixelated/uniffi-bindgen-cpp --tag v0.11.0-kixelated.6+v0.32.2 + # cargo install --locked uniffi-bindgen-cpp --git https://github.com/kixelated/uniffi-bindgen-cpp --rev 2e9dd2b2678a70e5557aba4f8f972753362ce9db if command -v uniffi-bindgen-cpp >/dev/null 2>&1; then echo " Generating cpp bindings..." uniffi-bindgen-cpp --library "$lib_path" \ From 7921df580a2bde559dc60aca0b4441f29ece3964 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Sat, 24 Oct 2026 12:28:40 -0700 Subject: [PATCH 3/4] build: pin the fork head that fixes a lowering leak Co-Authored-By: Claude Opus 5.5 --- .github/workflows/cpp.yml | 2 +- .github/workflows/platform.yml | 4 ++-- .github/workflows/release-cpp.yml | 2 +- .github/workflows/release-shared-ffi.yml | 2 +- cpp/moq/README.md | 2 +- flake.nix | 4 ++-- rs/moq-ffi/build.sh | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index b2e7e28d2d6..bd8b6522fdb 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -36,7 +36,7 @@ jobs: - uses: ./.github/actions/just - name: Install uniffi-bindgen-cpp - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev 2e9dd2b2678a70e5557aba4f8f972753362ce9db + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev ca955d8b53a6674d1b872f62d55d3f4707cbe290 - name: Check run: just cpp check diff --git a/.github/workflows/platform.yml b/.github/workflows/platform.yml index ec6d3986c65..78352610e82 100644 --- a/.github/workflows/platform.yml +++ b/.github/workflows/platform.yml @@ -105,7 +105,7 @@ jobs: - name: Install uniffi-bindgen-cpp if: needs.scope.outputs.cpp == 'true' || needs.scope.outputs.obs == 'true' shell: bash - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev 2e9dd2b2678a70e5557aba4f8f972753362ce9db + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev ca955d8b53a6674d1b872f62d55d3f4707cbe290 - name: Rust compile and tests if: needs.scope.outputs.rs == 'true' shell: bash @@ -151,7 +151,7 @@ jobs: secret-access-key: ${{ secrets.MBX_R2_SECRET_ACCESS_KEY }} - name: Install uniffi-bindgen-cpp if: needs.scope.outputs.obs == 'true' - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev 2e9dd2b2678a70e5557aba4f8f972753362ce9db + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev ca955d8b53a6674d1b872f62d55d3f4707cbe290 - name: Rust compile and tests if: needs.scope.outputs.rs == 'true' env: diff --git a/.github/workflows/release-cpp.yml b/.github/workflows/release-cpp.yml index 28ea45032b2..35a5a6c9c57 100644 --- a/.github/workflows/release-cpp.yml +++ b/.github/workflows/release-cpp.yml @@ -74,7 +74,7 @@ jobs: # The tag flake.nix pins; see the comment there. - name: Install uniffi-bindgen-cpp shell: bash - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev 2e9dd2b2678a70e5557aba4f8f972753362ce9db + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev ca955d8b53a6674d1b872f62d55d3f4707cbe290 # The package version lives in cpp/moq/VERSION; a tag that disagrees is a mistake. - name: Check version diff --git a/.github/workflows/release-shared-ffi.yml b/.github/workflows/release-shared-ffi.yml index bd0f26dc137..95414899e94 100644 --- a/.github/workflows/release-shared-ffi.yml +++ b/.github/workflows/release-shared-ffi.yml @@ -91,7 +91,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable - name: Install uniffi-bindgen-cpp - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev 2e9dd2b2678a70e5557aba4f8f972753362ce9db + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev ca955d8b53a6674d1b872f62d55d3f4707cbe290 - name: Download default-feature input uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 with: diff --git a/cpp/moq/README.md b/cpp/moq/README.md index 2b842fd155a..60b1b5c7b86 100644 --- a/cpp/moq/README.md +++ b/cpp/moq/README.md @@ -19,7 +19,7 @@ The generator is a fork, [kixelated/uniffi-bindgen-cpp](https://github.com/kixel ```bash cargo install uniffi-bindgen-cpp --locked \ --git https://github.com/kixelated/uniffi-bindgen-cpp \ - --rev 2e9dd2b2678a70e5557aba4f8f972753362ce9db + --rev ca955d8b53a6674d1b872f62d55d3f4707cbe290 ``` `flake.nix` pins the same tag and lists every other place that names it. diff --git a/flake.nix b/flake.nix index c6d7c78cd8e..91e530c89b7 100644 --- a/flake.nix +++ b/flake.nix @@ -414,8 +414,8 @@ owner = "kixelated"; repo = "uniffi-bindgen-cpp"; # The commit the tag will name, until kixelated/uniffi-bindgen-cpp#6 merges and is tagged. - rev = "2e9dd2b2678a70e5557aba4f8f972753362ce9db"; - hash = "sha256-KFcNFYTpl9eUHWZPhCZXxwDt7brGcZhky+yoj+4hHqQ="; + rev = "ca955d8b53a6674d1b872f62d55d3f4707cbe290"; + hash = "sha256-nErLn2hQus5omIaFheJWy06wKQS9HiKNtksxaJm9Z8k="; }; cargoHash = "sha256-fz7fn6D12zmFFSVSdySDfNRtQe+n4KCB9bXAsuvq/QY="; diff --git a/rs/moq-ffi/build.sh b/rs/moq-ffi/build.sh index d5a882c1d60..25c14e11bae 100755 --- a/rs/moq-ffi/build.sh +++ b/rs/moq-ffi/build.sh @@ -192,7 +192,7 @@ generate_bindings() { # C++ uses a third-party bindgen too: a fork carrying LiveKit's async support # ported to uniffi 0.32, which upstream has not released. Install it with: - # cargo install --locked uniffi-bindgen-cpp --git https://github.com/kixelated/uniffi-bindgen-cpp --rev 2e9dd2b2678a70e5557aba4f8f972753362ce9db + # cargo install --locked uniffi-bindgen-cpp --git https://github.com/kixelated/uniffi-bindgen-cpp --rev ca955d8b53a6674d1b872f62d55d3f4707cbe290 if command -v uniffi-bindgen-cpp >/dev/null 2>&1; then echo " Generating cpp bindings..." uniffi-bindgen-cpp --library "$lib_path" \ From f42f02b0639b53dac7ab017da91cb57eb3fa779f Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Sat, 24 Oct 2026 14:37:01 -0700 Subject: [PATCH 4/4] build: pin uniffi-bindgen-cpp v0.11.0-kixelated.7+v0.32.2 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/cpp.yml | 2 +- .github/workflows/platform.yml | 4 ++-- .github/workflows/release-cpp.yml | 2 +- .github/workflows/release-shared-ffi.yml | 2 +- cpp/moq/README.md | 2 +- flake.nix | 3 +-- rs/moq-ffi/build.sh | 2 +- 7 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index bd8b6522fdb..6933677393f 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -36,7 +36,7 @@ jobs: - uses: ./.github/actions/just - name: Install uniffi-bindgen-cpp - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev ca955d8b53a6674d1b872f62d55d3f4707cbe290 + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --tag v0.11.0-kixelated.7+v0.32.2 - name: Check run: just cpp check diff --git a/.github/workflows/platform.yml b/.github/workflows/platform.yml index 78352610e82..68d16116585 100644 --- a/.github/workflows/platform.yml +++ b/.github/workflows/platform.yml @@ -105,7 +105,7 @@ jobs: - name: Install uniffi-bindgen-cpp if: needs.scope.outputs.cpp == 'true' || needs.scope.outputs.obs == 'true' shell: bash - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev ca955d8b53a6674d1b872f62d55d3f4707cbe290 + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --tag v0.11.0-kixelated.7+v0.32.2 - name: Rust compile and tests if: needs.scope.outputs.rs == 'true' shell: bash @@ -151,7 +151,7 @@ jobs: secret-access-key: ${{ secrets.MBX_R2_SECRET_ACCESS_KEY }} - name: Install uniffi-bindgen-cpp if: needs.scope.outputs.obs == 'true' - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev ca955d8b53a6674d1b872f62d55d3f4707cbe290 + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --tag v0.11.0-kixelated.7+v0.32.2 - name: Rust compile and tests if: needs.scope.outputs.rs == 'true' env: diff --git a/.github/workflows/release-cpp.yml b/.github/workflows/release-cpp.yml index 35a5a6c9c57..62fa3a44fc5 100644 --- a/.github/workflows/release-cpp.yml +++ b/.github/workflows/release-cpp.yml @@ -74,7 +74,7 @@ jobs: # The tag flake.nix pins; see the comment there. - name: Install uniffi-bindgen-cpp shell: bash - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev ca955d8b53a6674d1b872f62d55d3f4707cbe290 + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --tag v0.11.0-kixelated.7+v0.32.2 # The package version lives in cpp/moq/VERSION; a tag that disagrees is a mistake. - name: Check version diff --git a/.github/workflows/release-shared-ffi.yml b/.github/workflows/release-shared-ffi.yml index 95414899e94..60a885953ee 100644 --- a/.github/workflows/release-shared-ffi.yml +++ b/.github/workflows/release-shared-ffi.yml @@ -91,7 +91,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable - name: Install uniffi-bindgen-cpp - run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --rev ca955d8b53a6674d1b872f62d55d3f4707cbe290 + run: cargo install uniffi-bindgen-cpp --locked --git https://github.com/kixelated/uniffi-bindgen-cpp --tag v0.11.0-kixelated.7+v0.32.2 - name: Download default-feature input uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 with: diff --git a/cpp/moq/README.md b/cpp/moq/README.md index 60b1b5c7b86..dd1255cb823 100644 --- a/cpp/moq/README.md +++ b/cpp/moq/README.md @@ -19,7 +19,7 @@ The generator is a fork, [kixelated/uniffi-bindgen-cpp](https://github.com/kixel ```bash cargo install uniffi-bindgen-cpp --locked \ --git https://github.com/kixelated/uniffi-bindgen-cpp \ - --rev ca955d8b53a6674d1b872f62d55d3f4707cbe290 + --tag v0.11.0-kixelated.7+v0.32.2 ``` `flake.nix` pins the same tag and lists every other place that names it. diff --git a/flake.nix b/flake.nix index 91e530c89b7..2882faf1700 100644 --- a/flake.nix +++ b/flake.nix @@ -413,8 +413,7 @@ src = pkgs.fetchFromGitHub { owner = "kixelated"; repo = "uniffi-bindgen-cpp"; - # The commit the tag will name, until kixelated/uniffi-bindgen-cpp#6 merges and is tagged. - rev = "ca955d8b53a6674d1b872f62d55d3f4707cbe290"; + rev = "v${version}"; hash = "sha256-nErLn2hQus5omIaFheJWy06wKQS9HiKNtksxaJm9Z8k="; }; diff --git a/rs/moq-ffi/build.sh b/rs/moq-ffi/build.sh index 25c14e11bae..7c4d015fe81 100755 --- a/rs/moq-ffi/build.sh +++ b/rs/moq-ffi/build.sh @@ -192,7 +192,7 @@ generate_bindings() { # C++ uses a third-party bindgen too: a fork carrying LiveKit's async support # ported to uniffi 0.32, which upstream has not released. Install it with: - # cargo install --locked uniffi-bindgen-cpp --git https://github.com/kixelated/uniffi-bindgen-cpp --rev ca955d8b53a6674d1b872f62d55d3f4707cbe290 + # cargo install --locked uniffi-bindgen-cpp --git https://github.com/kixelated/uniffi-bindgen-cpp --tag v0.11.0-kixelated.7+v0.32.2 if command -v uniffi-bindgen-cpp >/dev/null 2>&1; then echo " Generating cpp bindings..." uniffi-bindgen-cpp --library "$lib_path" \