Provides Rust bindings for Apple Core Foundation. This crate may be compared to
Similar to my other macOS libraries, this provides an elegant, performant, and largely safe wrapper for macOS low-level libraries.
- We use opaque types to model the underlying CFType (like
__CFString
, etc.) Then the equivalent toCFStringRef
is&CFString
, a pointer type. - Some optimizations are not yet implemented. Among them, optimizations for static-time strings, inner pointers, zero-copy, etc.
The following types are at least partially implemented. Usually they contain "common APIs" or "the ones I use".
CFOptionFlags
CFTypeID
CFRange
CFType
CFAllocator
CFString
CFArray
StrongCell
CFData
CFDictionary
CFError
MutabilityOptions
Format
CFPropertyList