From 42dfb4131b7e4229fb63ec2dfd50eaa992fffa85 Mon Sep 17 00:00:00 2001 From: Timo Betcke Date: Mon, 27 Jul 2026 11:21:46 +0100 Subject: [PATCH 1/3] Fixed dependencies at syn version 2 --- Cargo.toml | 2 +- c-api-tools-macros/Cargo.toml | 6 +++--- example_project/Cargo.toml | 2 +- example_project/bindings.h | 3 +++ 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1020dea..81ae372 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ num = "0.4" c-api-tools-macros = { path = "c-api-tools-macros" } [build-dependencies] -cbindgen = "0.27.0" +cbindgen = "0.29.4" [package.metadata.docs.rs] cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"] diff --git a/c-api-tools-macros/Cargo.toml b/c-api-tools-macros/Cargo.toml index c3bdc28..3df78ea 100644 --- a/c-api-tools-macros/Cargo.toml +++ b/c-api-tools-macros/Cargo.toml @@ -22,8 +22,8 @@ name = "c_api_tools_macros" proc-macro = true [dependencies] -syn = ">=2.0.87" +syn = { version = "2", features = ["full"]} proc-macro2 = "1.0" -darling = "0.20" +darling = "0.23" quote = "1.0" -itertools = "0.13" +itertools = "0.15" diff --git a/example_project/Cargo.toml b/example_project/Cargo.toml index 0b9e93e..1a4aa1d 100644 --- a/example_project/Cargo.toml +++ b/example_project/Cargo.toml @@ -16,4 +16,4 @@ c-api-tools = { path = "../" } num = "0.4" [build-dependencies] -cbindgen = "0.27" +cbindgen = "0.29" diff --git a/example_project/bindings.h b/example_project/bindings.h index 4032fc5..7ae1777 100644 --- a/example_project/bindings.h +++ b/example_project/bindings.h @@ -18,4 +18,7 @@ struct MyWrapper *my_wrapper_create(void); */ void my_wrapper_free(struct MyWrapper *ptr); +/** + * Test function. + */ void test_func(struct MyWrapper *spam); From ad977accd678c030d2f3253c1b3bde7f2aa0073a Mon Sep 17 00:00:00 2001 From: Timo Betcke Date: Mon, 27 Jul 2026 11:34:56 +0100 Subject: [PATCH 2/3] Removed dependency version check --- .github/workflows/run-tests.yml | 36 ++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index c7e97b6..56abd80 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -30,21 +30,21 @@ jobs: - name: Run unit tests in release mode run: cargo test --release ${{ matrix.feature-flags }} - check-dependencies: - name: Check dependencies - runs-on: ubuntu-latest - strategy: - matrix: - rust-version: ["stable"] - steps: - - name: Set up Rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - toolchain: ${{ matrix.rust-version }} - components: rustfmt - - name: Install cargo-upgrades - run: cargo install cargo-upgrades - - uses: actions/checkout@v3 - - name: Check that dependencies are up to date - run: - cargo upgrades +# check-dependencies: +# name: Check dependencies +# runs-on: ubuntu-latest +# strategy: +# matrix: +# rust-version: ["stable"] +# steps: +# - name: Set up Rust +# uses: actions-rust-lang/setup-rust-toolchain@v1 +# with: +# toolchain: ${{ matrix.rust-version }} +# components: rustfmt +# - name: Install cargo-upgrades +# run: cargo install cargo-upgrades +# - uses: actions/checkout@v3 +# - name: Check that dependencies are up to date +# run: +# cargo upgrades From 8329661fdd0ed27f466f3c853423490cfbc0b6b1 Mon Sep 17 00:00:00 2001 From: Timo Betcke Date: Mon, 27 Jul 2026 11:42:23 +0100 Subject: [PATCH 3/3] Updated README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 94e1447..e35fa24 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # c-api-tools -Helper tools for C API Bindings +Helper tools for C API Bindings.