]> git.proxmox.com Git - rustc.git/blob - src/vendor/winapi/src/lib.rs
New upstream version 1.29.0+dfsg1
[rustc.git] / src / vendor / winapi / src / lib.rs
1 // Copyright © 2016-2017 winapi-rs developers
2 // Licensed under the Apache License, Version 2.0
3 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
4 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
5 // All files in the project carrying such notice may not be copied, modified, or distributed
6 // except according to those terms.
7 #![cfg(windows)]
8 #![deny(unused, unused_qualifications)]
9 #![warn(unused_attributes)]
10 #![allow(bad_style, overflowing_literals, unused_macros)]
11 #![recursion_limit = "2563"]
12 #![no_std]
13 #![cfg_attr(feature = "cargo-clippy", allow(absurd_extreme_comparisons, cast_lossless, cast_ptr_alignment, const_static_lifetime, erasing_op, excessive_precision, identity_op, many_single_char_names, module_inception, too_many_arguments, transmute_int_to_float, unreadable_literal, unseparated_literal_suffix))]
14
15 #[cfg(feature = "std")]
16 extern crate std;
17
18 /// Hack for exported macros
19 #[doc(hidden)]
20 pub extern crate core as _core;
21
22 // Modules
23 #[macro_use]
24 mod macros;
25 pub mod shared;
26 pub mod um;
27 pub mod vc;
28 pub mod winrt;
29
30 /// Built in primitive types provided by the C language
31 pub mod ctypes {
32 #[cfg(feature = "std")]
33 pub use std::os::raw::c_void;
34 #[cfg(not(feature = "std"))]
35 pub enum c_void {}
36 pub type c_char = i8;
37 pub type c_schar = i8;
38 pub type c_uchar = u8;
39 pub type c_short = i16;
40 pub type c_ushort = u16;
41 pub type c_int = i32;
42 pub type c_uint = u32;
43 pub type c_long = i32;
44 pub type c_ulong = u32;
45 pub type c_longlong = i64;
46 pub type c_ulonglong = u64;
47 pub type c_float = f32;
48 pub type c_double = f64;
49 pub type __int8 = i8;
50 pub type __uint8 = u8;
51 pub type __int16 = i16;
52 pub type __uint16 = u16;
53 pub type __int32 = i32;
54 pub type __uint32 = u32;
55 pub type __int64 = i64;
56 pub type __uint64 = u64;
57 pub type wchar_t = u16;
58 }
59 pub trait Interface {
60 fn uuidof() -> shared::guiddef::GUID;
61 }