From afdeb8630c19696a2643da10d92a784f36f09ed4 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 2 Nov 2021 07:14:26 -0700 Subject: [PATCH] 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. --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 7a81825..fae7e6a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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"))]