Module safer_ffi::libc

source ·
Expand description

On certain platforms, ::libc has no definitions for pervasive types such as size_t.

We polyfill them here, and reëxport them for downstream users to use at leisure (e.g., so that they don’t have to do that themselves too!).

pub use :: libc ::
{
    #[doc = r" Note: you should probably be using [`crate::c_char`] instead."]
    c_char else u8,
    #[doc = r" Note: you should probably be using [`crate::c_int`] instead."]
    c_int else :: core :: ffi :: c_int, #[doc = r""] size_t else usize,
    #[doc = r""] uintptr_t else usize,
};

Type Aliases§