Re-export ctypes.

Since linux-raw-sys uses ctypes types in its public APIs, re-export
ctypes so that users can use it directly instead of having to redo
the no-std incantations.
This commit is contained in:
Dan Gohman
2021-11-02 07:14:26 -07:00
parent 7e84e621ca
commit afdeb8630c
+2 -2
View File
@@ -2,10 +2,10 @@
#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(feature = "std")]
use std::os::raw as ctypes;
pub use std::os::raw as ctypes;
#[cfg(feature = "no_std")]
use cty as ctypes;
pub use cty as ctypes;
// The rest of this file is auto-generated!
#[cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "powerpc"))]