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