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 property_list;
11mod resources;
12mod runtime;
13
14pub use base::{AsCFType, CFType};
15pub use collections::{
16    CFArray, CFAttributedString, CFBag, CFDict, CFDictionary, CFMutableSet, CFSet,
17    CFSetCallbacks, CFTree,
18};
19pub use primitives::{CFData, CFDate, CFError, CFNumber, CFString, CFUUID};
20pub use property_list::{
21    CFPropertyList, CFPropertyListError, CFPropertyListFormat,
22    CFPropertyListMutabilityOptions,
23};
24pub use resources::{
25    CFBundle, CFCalendar, CFCharacterSet, CFDateFormatter, CFDateFormatterStyle, CFFileSecurity,
26    CFLocale, CFNumberFormatter, CFNumberFormatterStyle, CFPreferences, CFTimeZone, CFURL, CFXML,
27};
28pub use runtime::{
29    CFFileDescriptor, CFMessagePort, CFNotificationCenter, CFReadStream, CFRunLoop,
30    CFRunLoopRunResult, CFSocket, CFStreamPair, CFTimer, CFWriteStream,
31};
32
33/// Convenience alias for the bound read/write stream pair.
34pub type CFStream = CFStreamPair;