From 2930e85473b57e9c4d8bfece82dec3709e7fd706 Mon Sep 17 00:00:00 2001 From: Sasha Denisov Date: Fri, 14 Aug 2026 15:06:18 +0900 Subject: [PATCH 1/2] fix(deps): align toml with uniffi 0.32 and raise MSRV to 1.91 uniffi 0.32's bindgen trait signatures use toml 1.x's `Value`, but the `toml = ">=0.8, <=0.9"` constraint resolved a different `toml` crate, producing E0053 "incompatible type for trait" on `new_config`/`get_toml` in src/gen/mod.rs. This broke the downstream binding tests and the main Test Suite compile. Pinning `toml = "1"` aligns the type with 0.32. The 0.32 dependency tree requires a newer Rust: cargo_metadata pulls cargo-platform 0.3.3 (rustc >= 1.91) and uniffi 0.32 pulls askama 0.16 (rustc >= 1.88). Raise the declared rust-version and the nix msrv shell from 1.85 to 1.91 to match the real floor. --- Cargo.toml | 4 ++-- flake.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 862e952..125d3c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2 or MIT" homepage = "https://github.com/acterglobal/uniffi-dart" description = "Dart Frontend for UniFFI" -rust-version = "1.85" +rust-version = "1.91" [features] defaults = [] @@ -38,7 +38,7 @@ uniffi_bindgen = { workspace = true } camino = "1" cargo_metadata = "0.18" serde = "1" -toml = ">=0.8, <=0.9" +toml = "1" genco = "0.17.5" proc-macro2 = "1.0.66" diff --git a/flake.nix b/flake.nix index ac61e5e..7ccafed 100644 --- a/flake.nix +++ b/flake.nix @@ -25,7 +25,7 @@ flake-utils.lib.eachDefaultSystem ( system: let - msrvVersion = "1.85.0"; + msrvVersion = "1.91.0"; rustExtensions = [ "clippy" From 95839026810b88c47f0a1c165ed6517485aa354e Mon Sep 17 00:00:00 2001 From: Sasha Denisov Date: Fri, 14 Aug 2026 15:06:18 +0900 Subject: [PATCH 2/2] ci: bump test/lint MSRV matrix from 1.85 to 1.91 Match the crate rust-version raised for the uniffi 0.32 upgrade; the resolved dependency tree (cargo-platform 0.3.3) requires rustc 1.91. --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 11c8295..805028c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: matrix: rust: - stable - - "1.85" + - "1.91" - nightly steps: - name: Checkout sources @@ -46,7 +46,7 @@ jobs: matrix: rust: - stable - - "1.85" + - "1.91" - nightly steps: - name: Checkout sources