objc2_io_surface/
lib.rs

1//! # Bindings to the `IOSurface` framework
2//!
3//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information.
4//!
5//! [apple-doc]: https://developer.apple.com/documentation/iosurface/
6//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html
7#![no_std]
8#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))]
9#![cfg_attr(docsrs, feature(doc_cfg))]
10// Update in Cargo.toml as well.
11#![doc(html_root_url = "https://docs.rs/objc2-io-surface/0.3.2")]
12
13#[cfg(feature = "alloc")]
14extern crate alloc;
15
16#[cfg(feature = "std")]
17extern crate std;
18
19mod generated;
20#[cfg(feature = "IOSurfaceRef")]
21mod io_surface;
22
23#[allow(unused_imports, unreachable_pub)]
24pub use self::generated::*;
25#[cfg(feature = "IOSurfaceRef")]
26pub use self::io_surface::IOSurfaceRef;
27
28// MacTypes.h
29#[allow(dead_code)]
30pub(crate) type Boolean = u8;
31#[allow(dead_code)]
32pub(crate) type OSType = u32;