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
Hi,
firstly, thanks for the great library, which is already a huge help in simplifying my ffi code!
I would like to request a feature that would let me avoid having to duplicate a lot of struct definitions.
What I have is a bunch of structs containing Strings and Vecs and deriving Serialize and Deserialize, which I also want to use in the ffi interface and right now I have to duplicate them changing every String and Vec with their repr_c counterpart and implementing a From impl to convert them. For example:
Hi,
firstly, thanks for the great library, which is already a huge help in simplifying my ffi code!
I would like to request a feature that would let me avoid having to duplicate a lot of struct definitions.
What I have is a bunch of structs containing
String
s andVec
s and derivingSerialize
andDeserialize
, which I also want to use in the ffi interface and right now I have to duplicate them changing everyString
andVec
with theirrepr_c
counterpart and implementing aFrom
impl to convert them. For example:It would be great if I could simply do this instead:
But this is not possible right now since
repr_c::String
andrepr_c::Vec
do not implementSerialize
andDeserialize
.The text was updated successfully, but these errors were encountered: