From 666deecb5d2f486d68177d408f94a6c020d4d733 Mon Sep 17 00:00:00 2001 From: William Yang Date: Sat, 24 Jan 2026 17:33:38 +0100 Subject: [PATCH 1/4] chore: fix Cargo.toml --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 1f15b3f8..d14bb970 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ license = "MPL-2.0" repository = "https://github.com/emqx/flowsdk" documentation = "https://docs.rs/flowsdk" keywords = ["mqtt", "async", "tokio", "network", "mqtt_over_quic"] -categories = ["network-programming", "asynchronous", "communication"] +categories = ["network-programming", "asynchronous"] [workspace] members = [".", "mqtt_grpc_duality", "flowsdk_ffi"] From 83b8fb6cf3c268c98521bd1e5930aed372d2c856 Mon Sep 17 00:00:00 2001 From: William Yang Date: Sat, 24 Jan 2026 17:40:15 +0100 Subject: [PATCH 2/4] ci: fix release script --- .github/workflows/release.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd2fce22..f3391335 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,16 @@ permissions: contents: read on: + workflow_dispatch: + inputs: + ref: + description: 'Ref to release' + required: false + default: '' + ref_name: + description: 'Tag to (re)release' + required: false + push: tags: - 'v*' @@ -46,6 +56,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ github.event.inputs.ref }} - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable @@ -119,6 +131,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ github.event.inputs.ref }} - name: Install Rust uses: dtolnay/rust-toolchain@stable From f665cef84c369d8f75472f081aa6455a4ecc9b35 Mon Sep 17 00:00:00 2001 From: William Yang Date: Sat, 24 Jan 2026 17:40:51 +0100 Subject: [PATCH 3/4] rel: bump to 0.4.1 --- Cargo.toml | 2 +- flowsdk_ffi/Cargo.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d14bb970..e2dfee0f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flowsdk" -version = "0.4.0" +version = "0.4.1" edition = "2021" description = "Safety-first, realistic, behavior-predictable messaging SDK for MQTT and more." license = "MPL-2.0" diff --git a/flowsdk_ffi/Cargo.toml b/flowsdk_ffi/Cargo.toml index a7f54be2..42104480 100644 --- a/flowsdk_ffi/Cargo.toml +++ b/flowsdk_ffi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flowsdk_ffi" -version = "0.4.0" +version = "0.4.1" edition = "2021" description = "FFI bindings for FlowSDK, allowing multi-language integration." license = "MPL-2.0" @@ -13,7 +13,7 @@ categories = ["api-bindings"] crate-type = ["cdylib", "staticlib", "rlib"] [dependencies] -flowsdk = { path = "..", version = "0.4.0" } +flowsdk = { path = "..", version = "0.4.1" } libc = "0.2" serde = { version = "1.0", features = ["derive"] } uniffi = { version = "0.28", features = ["cli"] } From 0105e1dce229d632dca62115b0efbd5648d3bd08 Mon Sep 17 00:00:00 2001 From: William Yang Date: Sat, 24 Jan 2026 17:50:38 +0100 Subject: [PATCH 4/4] rel: use env CARGO_REGISTRY_TOKEN --- .github/workflows/release.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3391335..ceed7a63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,16 +90,17 @@ jobs: echo "✅ Versions match confirmed!" - - name: Setup Cargo Login - run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }} - - name: Publish flowsdk (Core) + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} run: cargo publish -p flowsdk - name: Wait for Index Propagation run: sleep 40 - name: Publish flowsdk_ffi (Bindings) + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} run: cargo publish -p flowsdk_ffi build-and-upload: @@ -212,5 +213,3 @@ jobs: asset_path: ./flowsdk-${{ needs.create-release.outputs.version }}-${{ matrix.asset_name_suffix }}.zip asset_name: flowsdk-${{ needs.create-release.outputs.version }}-${{ matrix.asset_name_suffix }}.zip asset_content_type: application/zip - - \ No newline at end of file