Skip to content
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

Support no_std + alloc #84

Open
val3rius opened this issue Sep 15, 2023 · 1 comment
Open

Support no_std + alloc #84

val3rius opened this issue Sep 15, 2023 · 1 comment

Comments

@val3rius
Copy link

Hi!

I'm currently running a local fork of this project in order to do some FFI things in a no_std application (with alloc). Of course it'd be a lot nicer to simply rely on the upstream repo.

If you take a look at the comparison against my fork (where I put all changes behind a no_std feature flag) you see its 90% just importing things from core rather than std. Would this be something feasible to get in libffi-rs?

master...val3rius:libffi-rs:no_std

Thanks a bunch!

@val3rius
Copy link
Author

One problem to tackle would be that replacing std::process::abort(); with core::intrinsics::abort(); requires nightly. Perhaps there is some other way to go about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant