You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: