1 //! Utilities related to FFI bindings.
3 // If we have std, use it.
4 #[cfg(feature = "std")]
6 std
::ffi
::{CStr, CString, FromBytesWithNulError, NulError}
,
10 // If we don't have std, we can depend on core and alloc having these features
11 // in new versions of Rust.
12 #[cfg(not(feature = "std"))]
14 alloc
::ffi
::{CString, NulError}
,
15 core
::ffi
::{c_char, CStr, FromBytesWithNulError}
,