Skip to content
This repository was archived by the owner on Jul 27, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# c-api-tools
Helper tools for C API Bindings
Helper tools for C API Bindings.
6 changes: 3 additions & 3 deletions c-api-tools-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion example_project/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ c-api-tools = { path = "../" }
num = "0.4"

[build-dependencies]
cbindgen = "0.27"
cbindgen = "0.29"
3 changes: 3 additions & 0 deletions example_project/bindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Loading