From 0af798079fc6e1786ee5b049d4e5199aac98c3c6 Mon Sep 17 00:00:00 2001 From: Aditya Mukhopadhyay Date: Sun, 17 May 2026 22:38:12 +0530 Subject: [PATCH] fix(ffi): add lib crate-type to minigraf-ffi; bump to 1.1.2 Without rlib output, minigraf-ffi could not be used as a Rust library dependency, breaking the standalone Python/Node/WASM binding repos that need to re-export its UniFFI scaffolding symbols from their own cdylib. Adding "lib" alongside "cdylib" and "staticlib" makes Cargo produce an .rlib so binding shims can do `pub use minigraf_ffi::*;` and have the uniffi scaffold symbols included in their cdylib output. Also adds publish-ffi.yml: a ffi-v* tag-triggered workflow for publishing minigraf-ffi patches independently of core releases. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/publish-ffi.yml | 23 +++++++++++++++++++++++ minigraf-ffi/Cargo.toml | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish-ffi.yml diff --git a/.github/workflows/publish-ffi.yml b/.github/workflows/publish-ffi.yml new file mode 100644 index 0000000000..39a8fd72b1 --- /dev/null +++ b/.github/workflows/publish-ffi.yml @@ -0,0 +1,23 @@ +name: Publish minigraf-ffi + +# Triggered by a tag like ffi-v1.1.2 to publish only minigraf-ffi to crates.io. +# Used for patch releases that fix the FFI crate independently of the core. +on: + push: + tags: + - "ffi-v*" + +jobs: + publish: + name: cargo publish minigraf-ffi + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + + - name: Publish minigraf-ffi + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: cargo publish -p minigraf-ffi diff --git a/minigraf-ffi/Cargo.toml b/minigraf-ffi/Cargo.toml index 98294efe7e..f0cad516b8 100644 --- a/minigraf-ffi/Cargo.toml +++ b/minigraf-ffi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "minigraf-ffi" -version = "1.1.1" +version = "1.1.2" edition = "2024" description = "UniFFI bridge for Minigraf — bi-temporal graph database" license = "MIT OR Apache-2.0" @@ -12,7 +12,7 @@ keywords = ["graph", "datalog", "bitemporal", "embedded", "database"] categories = ["database-implementations", "embedded"] [lib] -crate-type = ["cdylib", "staticlib"] +crate-type = ["cdylib", "staticlib", "lib"] [[bin]] name = "uniffi-bindgen"