-
Notifications
You must be signed in to change notification settings - Fork 32
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
Separate the FFI-safe types from the rest of the crate #79
Comments
I have started working on my own, more minimal package that provides |
Very interesting! I would still leave this open, since it would be a great idea in case someone has the time to do it. Though it would indeed be quite complicated, since |
I haven't implemented |
No problem, just make sure it's not invariant when you write it, or you'll run into problems. Your already implemented |
@marioortizmanero If you're still interested, I implemented |
Nice! Yeah, different design, but I think you don't have the invariance issues with it. Our design ended up being quite similar, but I would say ours is a bit more flexible, at the cost of being harder to implement/use. |
Hello, first of all, thanks for this amazing crate.
In my project, I find your
#[repr(C)]
equivalents of common types fromstd
and such (RVec
,RString
, etc) very useful, however - everything else on this crate - not so much.I was wondering if it would be possible to separate the
abi_stable::std_types
module to a separate crate, that would just provide#[repr(C)]
types and a simple numericalABI_VERSION
constant. That would make things much simpler for my project (and others, my case is definitely not the only one), help compilation times and so on. Making modular libraries is always a good practice.The text was updated successfully, but these errors were encountered: