-
Notifications
You must be signed in to change notification settings - Fork 51
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
Make libffi dependency an optional, default feature #33
Comments
Sounds good to me. I will give this a shot tomorrow. Does it make sense to open an issue at tov/libffi-sys-rs or is libffi just in general not likely to build on that particular platform? |
The issue is that libtool isn't available on this platform (indirectly used by libffi by way of autoconf). To be honest, this may actually be an issue with the platform - I have reason to believe it should be available and was recently available. I'm reaching out to the administrator to see if perhaps libtool was removed mistakenly. Maybe hold off on this - it may not be an issue anymore if I can get libtool reinstated. |
Indeed it was a mistake. 🙂 The admin fixed the problem. Feel free to close this. |
I am glad you could resolve the issue on your end. I have nevertheless made the user operation API an optional default feature which depends on libffi in ca8e6d7. It is indeed an optional, non-essential part of the API and it is not too much of a hassle to acknowledge this fact by making it an optional feature. However, I did not see a way to provide a |
Excellent, thank you! Hm... I guess what I wanted was not necessarily an enhancement to |
Have a look at c08dca8. Is that roughly what you had in mind? |
Yes, that's exactly right, thank you! |
On one of the platforms I'm running on, the libffi dependency fails to build. Since it seems like the libffi use is not required in general usage of the API, it would be nice to be able to remove the libffi dependency by making it an optional, default feature in the Cargo manifest.
It would be helpful if an additional UserOperation constructor could be added that takes a simple function pointer rather than a closure, though for my use case mpi::ffi will suffice.
The text was updated successfully, but these errors were encountered: