Skip to content

Introduce ffi-convert-extra-ctypes crate#61

Merged
fredszaq merged 1 commit intomainfrom
ffi-convert-extra-ctypes
Apr 16, 2026
Merged

Introduce ffi-convert-extra-ctypes crate#61
fredszaq merged 1 commit intomainfrom
ffi-convert-extra-ctypes

Conversation

@fredszaq
Copy link
Copy Markdown
Collaborator

@fredszaq fredszaq commented Apr 16, 2026

This adds a new crate ffi-convert-extra-ctypes to the workspace an moves the CArray, CStringArray, and CRange types to it.

The rationale is that these types are optional and and don't need to pollute the API of the base crate.

Having them is a separate crate also makes it cleaner when asking cbindgen to parse specific dependencies. Now it only has to parse stuff that will actually be useful to it and not the whole ffi-convert crate (only those type will endup in a C header, they should by the way probably be renamed in the cbindgen config if you are using them)

@fredszaq fredszaq merged commit f516051 into main Apr 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant