objc2_av_foundation/lib.rs
1//! # Bindings to the `AVFoundation` 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/avfoundation/
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-av-foundation/0.3.2")]
12
13#[cfg(feature = "alloc")]
14extern crate alloc;
15
16#[cfg(feature = "std")]
17extern crate std;
18
19mod generated;
20#[allow(unused_imports, unreachable_pub)]
21pub use self::generated::*;
22
23// MacTypes.h
24#[allow(dead_code)]
25pub(crate) type OSType = u32;
26#[allow(dead_code)]
27pub(crate) type OSStatus = i32;
28
29// NOTE: Certain classes are marked as `@unchecked Swift.Sendable` in
30// `$(xcrun --show-sdk-path)/usr/lib/swift/AVFoundation.swiftmodule/*`, but
31// only when the deployment target is high enough (so we can only do that too
32// when https://github.com/rust-lang/rfcs/pull/3750 lands).