Skip to main content

apple_cf/cf/
mod.rs

1//! Safe Core Foundation wrappers.
2//!
3//! This module provides lightweight, dependency-free wrappers for the most
4//! common Core Foundation value, collection, locale, formatter, and runtime
5//! types used throughout the Apple media stack.
6
7mod base;
8mod collections;
9mod primitives;
10mod resources;
11mod runtime;
12
13pub use base::{AsCFType, CFType};
14pub use collections::{CFArray, CFAttributedString, CFBag, CFDict, CFDictionary, CFTree};
15pub use primitives::{CFData, CFDate, CFError, CFNumber, CFString, CFUUID};
16pub use resources::{
17    CFBundle, CFCalendar, CFCharacterSet, CFDateFormatter, CFDateFormatterStyle, CFFileSecurity,
18    CFLocale, CFNumberFormatter, CFNumberFormatterStyle, CFPreferences, CFTimeZone, CFURL, CFXML,
19};
20pub use runtime::{
21    CFFileDescriptor, CFMessagePort, CFNotificationCenter, CFReadStream, CFRunLoop,
22    CFRunLoopRunResult, CFSocket, CFStreamPair, CFTimer, CFWriteStream,
23};
24
25/// Convenience alias for the bound read/write stream pair.
26pub type CFStream = CFStreamPair;