-
-
Notifications
You must be signed in to change notification settings - Fork 15
Support for abi_stable
#10
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
Conversation
Seems you are actually reverting #6 and go back to the "base pointer" approach instead of a union. I used to consider another approach that decompose the [1]: |
I honestly wouldn't mess around with |
Hi, sorry for taking so long to reply, holidays have been busy. Hope you had a wonderful Christmas and New Years! |
I'm still kind of worrying that whether |
If it's not handled correctly by
|
Well, I know it's valid and pretty common in C. I just want to confirm that
Thanks for the advice, but it's out of the scope of this PR. I'd consider it later. For this PR, I'm asking for the two changes in discussions above, which are field name changing and feature name changing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other diffs LGTM.
Thanks! |
This is my attempt at adding support for
abi_stable
, as explained in #9.The only changes I had to make were:
cfg_attr
withderive(StableAbi)
in case thesabi
feature is enabledFfiWakerBase
, which is fully FFI-safe for only having FFI-safe fields (only the vtable).TODO: