Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What types are supported? #13

Open
phlummox opened this issue Nov 3, 2024 · 0 comments
Open

What types are supported? #13

phlummox opened this issue Nov 3, 2024 · 0 comments

Comments

@phlummox
Copy link

phlummox commented Nov 3, 2024

Thanks for your work on this, it looks very interesting.

Both the README and the rust docs give some small examples, but they don't actually state what parameter types hs-bindgen can support in a function annotated with #[hs_bindgen].

From the examples, we can see that &str / CString are apparently supported, but what else? Presumably all the standard C scalar types (int, float, double, _Bool, etc.), but it would be nice to spell this out. (And presumably also, arrays of those types.) The Borsh example seems to suggest that serialization and deserialization of any more complex type is up to to the end user, but again, it would be nice if the documentation clarified this.

Cheers!

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

No branches or pull requests

1 participant