Skip to content

Commit fc51466

Browse files
Use core c_void type and remove need for libc
1 parent 9fc2903 commit fc51466

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ debug = ["impl-debug"]
2727
everything = []
2828
impl-debug = []
2929
impl-default = []
30-
std = []
3130
#km
3231
d3dkmthk = []
3332
#mmos

src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
//#![cfg_attr(feature = "cargo-clippy", warn(clippy::pedantic))]
1414
//#![cfg_attr(feature = "cargo-clippy", allow(clippy::absurd_extreme_comparisons, clippy::cast_lossless, clippy::cast_possible_truncation, clippy::cast_possible_wrap, clippy::cast_precision_loss, clippy::cast_ptr_alignment, clippy::cast_sign_loss, clippy::doc_markdown, clippy::empty_enum, clippy::erasing_op, clippy::excessive_precision, clippy::expl_impl_clone_on_copy, clippy::identity_op, clippy::if_not_else, clippy::many_single_char_names, clippy::module_inception, clippy::cast_possible_truncation, clippy::too_many_arguments, clippy::transmute_int_to_float, clippy::trivially_copy_pass_by_ref, clippy::unreadable_literal, clippy::unseparated_literal_suffix, clippy::used_underscore_binding, clippy::redundant_static_lifetimes, clippy::missing_safety_doc))]
1515

16-
#[cfg(feature = "std")]
17-
extern crate std;
18-
1916
/// Hack for exported macros
2017
#[doc(hidden)]
2118
pub extern crate core as _core;
@@ -32,10 +29,7 @@ pub mod winrt;
3229

3330
/// Built in primitive types provided by the C language
3431
pub mod ctypes {
35-
#[cfg(feature = "std")]
36-
pub use std::os::raw::c_void;
37-
#[cfg(not(feature = "std"))]
38-
pub enum c_void {}
32+
pub use _core::ffi::c_void;
3933
pub type c_char = i8;
4034
pub type c_schar = i8;
4135
pub type c_uchar = u8;

0 commit comments

Comments
 (0)