-
Notifications
You must be signed in to change notification settings - Fork 707
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
Remove libc dependency #39
Comments
Fixed with 377f611. |
Look at what we did for wasm32-unknown-unknown:
Basically we can define |
So one thing that's nice is that in the current pub type c_int = i32;
pub type c_uint = u32;
pub type size_t = usize; This is not something guaranteed by the C spec, but just happens to be true for all platforms Note that the definitions of |
We now have:
This is for CPU feature detection on ARM and AAarch64. Specifically we have:
So we can define |
Looking at the proposed new
libc
and considering our current usage, it becomes pretty obvious we don't need to depend on the libc crate and we're better off not doing so. Our needs are so simple we can get away with just defining a couple of types inring::ffi
. If we need a more advanced thing, then we can look at rust-c99.The text was updated successfully, but these errors were encountered: