Skip to content

Conversation

@ArtiomTr
Copy link

@ArtiomTr ArtiomTr commented Nov 13, 2025

This pull request adds support for generics in bindings. The code is pretty rough, but it does the job.

The generics are really handy, keeping in mind that this crate doesn't support macros. I haven't wrote tests for this code, however, it is used to generate rust-csharp bindings for grandine. It contains pretty complicated cases, including:

I've also added cargo::warning= prefix to all printed messages, as otherwise they aren't visible when using this crate in build.rs script.

@ArtiomTr
Copy link
Author

Initially I thought this would be an easy change, however, looks like C#'s marshalling doesn't work quite good with generics, even with instantiated ones. So probably this change is out of scope for this repo

@ArtiomTr ArtiomTr closed this Nov 17, 2025
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