rustix 1.1.5

Safe Rust bindings to POSIX/Unix/Linux/Winsock-like syscalls
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Utilities related to FFI bindings.
//!
//! This module re-exports a small set of types for backwards compatibility.
//! New code should prefer importing these items directly from
//! `core::ffi`, `alloc::ffi`, or `std::ffi` as appropriate.

#[cfg(not(windows))]
#[cfg(any(feature = "alloc", feature = "std"))]
pub use alloc::ffi::{CString, NulError};

pub use core::ffi::{
    c_char, c_int, c_long, c_longlong, c_short, c_uint, c_ulong, c_ulonglong, c_ushort, c_void,
};

#[cfg(not(windows))]
pub use core::ffi::{CStr, FromBytesWithNulError};