Cargo Features

[dependencies]
objc2-core-foundation = { version = "0.3.0", default-features = false, features = ["std", "alloc", "unstable-coerce-pointee", "bitflags", "block2", "libc", "objc2", "CFArray", "CFBag", "CFBase", "CFBitVector", "CFBundle", "CFCGTypes", "CFCalendar", "CFCharacterSet", "CFData", "CFDate", "CFDateFormatter", "CFDictionary", "CFError", "CFFileDescriptor", "CFFileSecurity", "CFLocale", "CFMessagePort", "CFNotificationCenter", "CFNumber", "CFNumberFormatter", "CFPreferences", "CFPropertyList", "CFRunLoop", "CFSet", "CFSocket", "CFStream", "CFString", "CFStringEncodingExt", "CFStringTokenizer", "CFTimeZone", "CFTree", "CFURL", "CFURLAccess", "CFURLEnumerator", "CFUUID", "CFUtilities", "CFXMLNode", "CFXMLParser"] }
default = CFArray, CFAttributedString, CFAvailability, CFBag, CFBase, CFBinaryHeap, CFBitVector, CFBundle, CFByteOrder, CFCGTypes, CFCalendar, CFCharacterSet, CFData, CFDate, CFDateFormatter, CFDictionary, CFError, CFFileDescriptor, CFFileSecurity, CFLocale, CFMachPort, CFMessagePort, CFNotificationCenter, CFNumber, CFNumberFormatter, CFPlugIn, CFPlugInCOM, CFPreferences, CFPropertyList, CFRunLoop, CFSet, CFSocket, CFStream, CFString, CFStringEncodingExt, CFStringTokenizer, CFTimeZone, CFTree, CFURL, CFURLAccess, CFURLEnumerator, CFUUID, CFUserNotification, CFUtilities, CFXMLNode, CFXMLParser, bitflags, block2, libc, objc2, std

These default features are set whenever objc2-core-foundation is added without default-features = false somewhere in the dependency tree.

std default = alloc
alloc std
unstable-coerce-pointee
bitflags default CFCalendar CFData CFDate CFDateFormatter CFFileSecurity CFNumberFormatter CFPropertyList CFRunLoop CFSocket CFStream CFString CFStringTokenizer CFURL CFURLEnumerator CFXMLParser

Enables bitflags

block2 default

Enables block2

Affects CFRunLoop::CFRunLoopPerformBlock, CFRunLoop::CFRunLoopObserverCreateWithHandler, CFRunLoop::CFRunLoopTimerCreateWithHandler

libc default

Enables libc

Affects CFBundle::CFBundleIsArchitectureLoadable, CFFileSecurity::CFFileSecurityGetOwner, CFFileSecurity::CFFileSecuritySetOwner, CFFileSecurity::CFFileSecurityGetGroup, CFMachPort::CFMachPortGetPort, CFMachPort::CFMachPortCreateWithPort, CFRunLoop::CFRunLoopSourceContext1

objc2 default

Enables objc2

CFArray default

Affects CFBundle::CFBundleGetAllBundles, CFBundle::CFBundleCopyBundleLocalizations, CFBundle::CFBundleCopyPreferredLocalizationsFromArray, CFBundle::CFBundleCopyLocalizationsForPreferences, CFBundle::CFBundleCopyExecutableArchitectures, CFBundle::CFBundleGetFunctionPointersForNames, CFBundle::CFBundleGetDataPointersForNames, CFLocale::CFLocaleCopyAvailableLocaleIdentifiers, CFLocale::CFLocaleCopyISOLanguageCodes, CFLocale::CFLocaleCopyISOCountryCodes, CFLocale::CFLocaleCopyISOCurrencyCodes, CFLocale::CFLocaleCopyCommonISOCurrencyCodes, CFLocale::CFLocaleCopyPreferredLanguages, CFRunLoop::CFRunLoopCopyAllModes, CFTimeZone::CFTimeZoneCopyKnownNames, CFBundle::CFBundleCopyResourceURLsOfType, CFBundle::CFBundleCopyResourceURLsOfTypeForLocalization, CFBundle::CFBundleCopyLocalizationsForURL, CFBundle::CFBundleCopyExecutableArchitecturesForURL, CFPlugIn::CFPlugInFindFactoriesForPlugInType

CFAttributedString CFAvailability CFBag default
CFBase default

Affects CFArray::CFArrayRetainCallBack, CFArray::CFArrayReleaseCallBack, CFArray::CFArrayCopyDescriptionCallBack, CFArray::CFArrayCallBacks, CFArray::kCFTypeArrayCallBacks, CFArray::CFArrayCreate, CFArray::CFArrayCreateCopy, CFArray::CFArrayCreateMutable, CFArray::CFArrayCreateMutableCopy, CFArray::CFArrayGetCount, CFArray::CFArrayGetCountOfValue, CFArray::CFArrayContainsValue, CFArray::CFArrayGetValueAtIndex, CFArray::CFArrayGetValues, CFArray::CFArrayApplyFunction, CFArray::CFArrayGetFirstIndexOfValue, CFAttributedString::CFAttributedStringCreateWithSubstring, CFAttributedString::CFAttributedStringCreateCopy, CFAttributedString::CFAttributedStringGetString, CFAttributedString::CFAttributedStringGetAttribute

CFBinaryHeap CFBitVector default
CFBundle default

Affects CFPlugIn::CFPlugInDynamicRegisterFunction, CFPlugIn::CFPlugInUnloadFunction, CFPlugIn::CFPlugInGetBundle, CFPlugIn::CFPlugInSetLoadOnDemand, CFPlugIn::CFPlugInIsLoadOnDemand, CFPlugIn::CFPlugInCreate, CFPlugIn::CFPlugInFindFactoriesForPlugInTypeInPlugIn, CFPlugIn::CFPlugInRegisterFactoryFunctionByName

CFByteOrder CFCGTypes default
CFCalendar default = bitflags
CFCharacterSet default

Affects CFString::CFStringFindCharacterFromSet

CFData default = bitflags

Affects CFMessagePort::CFMessagePortCallBack, CFSocket::CFSocketSignature, CFSocket::CFSocketCopyAddress, CFSocket::CFSocketCopyPeerAddress, CFCharacterSet::CFCharacterSetCreateWithBitmapRepresentation, CFCharacterSet::CFCharacterSetCreateBitmapRepresentation, CFMessagePort::CFMessagePortCreateLocal, CFPropertyList::CFPropertyListCreateFromXMLData, CFPropertyList::CFPropertyListCreateXMLData, CFSocket::CFSocketCallBack, CFSocket::CFSocketCreate, CFSocket::CFSocketCreateWithNative, CFSocket::CFSocketCreateWithSocketSignature, CFSocket::CFSocketSetAddress, CFString::CFStringCreateFromExternalRepresentation, CFString::CFStringCreateExternalRepresentation, CFTimeZone::CFTimeZoneGetData, CFURL::CFURLCreateResourcePropertyForKeyFromBookmarkData, CFURL::CFURLCreateBookmarkDataFromAliasRecord, CFMessagePort::CFMessagePortSendRequest

CFDate default = bitflags

Affects CFCalendar::CFCalendarCopyTimeZone, CFCalendar::CFCalendarSetTimeZone, CFRunLoop::CFRunLoopTimerGetNextFireDate, CFRunLoop::CFRunLoopTimerSetNextFireDate, CFRunLoop::CFRunLoopTimerGetInterval, CFRunLoop::CFRunLoopTimerGetTolerance, CFRunLoop::CFRunLoopTimerSetTolerance, CFTimeZone::CFTimeZoneCopySystem, CFTimeZone::CFTimeZoneCopyDefault, CFTimeZone::CFTimeZoneSetDefault, CFTimeZone::CFTimeZoneGetSecondsFromGMT, CFTimeZone::CFTimeZoneIsDaylightSavingTime, CFTimeZone::CFTimeZoneGetDaylightSavingTimeOffset, CFTimeZone::CFTimeZoneGetNextDaylightSavingTimeTransition, CFCalendar::CFCalendarGetRangeOfUnit, CFCalendar::CFCalendarGetOrdinalityOfUnit, CFCalendar::CFCalendarGetTimeRangeOfUnit, CFDateFormatter::CFDateFormatterCreateStringWithDate, CFDateFormatter::CFDateFormatterCreateStringWithAbsoluteTime, CFDateFormatter::CFDateFormatterCreateDateFromString

CFDateFormatter default = bitflags
CFDictionary default

Affects CFBundle::CFBundleGetInfoDictionary, CFBundle::CFBundleGetLocalInfoDictionary, CFError::CFErrorCopyUserInfo, CFTimeZone::CFTimeZoneCopyAbbreviationDictionary, CFTimeZone::CFTimeZoneSetAbbreviationDictionary, CFUserNotification::CFUserNotificationGetResponseDictionary, CFAttributedString::CFAttributedStringCreate, CFAttributedString::CFAttributedStringGetAttributes, CFAttributedString::CFAttributedStringGetAttributesAndLongestEffectiveRange, CFAttributedString::CFAttributedStringSetAttributes, CFBundle::CFBundleCopyInfoDictionaryInDirectory, CFBundle::CFBundleCopyInfoDictionaryForURL, CFError::CFErrorCreate, CFLocale::CFLocaleCreateComponentsFromLocaleIdentifier, CFLocale::CFLocaleCreateLocaleIdentifierFromComponents, CFNotificationCenter::CFNotificationCallback, CFNotificationCenter::CFNotificationCenterAddObserver, CFNotificationCenter::CFNotificationCenterPostNotification, CFNotificationCenter::CFNotificationCenterPostNotificationWithOptions, CFURL::CFURLSetResourcePropertiesForKeys

CFError default

Affects CFBundle::CFBundlePreflightExecutable, CFBundle::CFBundleLoadExecutableAndReturnError, CFStream::CFReadStreamCopyError, CFStream::CFWriteStreamCopyError, CFURL::CFURLResourceIsReachable, CFURL::CFURLCreateFileReferenceURL, CFURL::CFURLCreateFilePathURL, CFURL::CFURLCopyResourcePropertyForKey, CFURL::CFURLSetResourcePropertyForKey, CFURL::CFURLSetResourcePropertiesForKeys, CFPropertyList::CFPropertyListCreateWithData, CFPropertyList::CFPropertyListCreateWithStream, CFPropertyList::CFPropertyListWrite, CFPropertyList::CFPropertyListCreateData, CFURL::CFURLCopyResourcePropertiesForKeys, CFURL::CFURLCreateBookmarkDataFromFile, CFURL::CFURLWriteBookmarkDataToFile, CFURLEnumerator::CFURLEnumeratorGetNextURL, CFURL::CFURLCreateBookmarkData, CFURL::CFURLCreateByResolvingBookmarkData

CFFileDescriptor default
CFFileSecurity default = bitflags
CFLocale default

Affects CFCalendar::CFCalendarCopyLocale, CFCalendar::CFCalendarSetLocale, CFDateFormatter::CFDateFormatterGetLocale, CFNumberFormatter::CFNumberFormatterGetLocale, CFString::CFStringIsHyphenationAvailableForLocale, CFCalendar::CFCalendarCreateWithIdentifier, CFCalendar::CFCalendarGetIdentifier, CFDateFormatter::CFDateFormatterCreateDateFormatFromTemplate, CFDateFormatter::CFDateFormatterCreate, CFNumberFormatter::CFNumberFormatterCreate, CFString::CFStringCompareWithOptionsAndLocale, CFString::CFStringFindWithOptionsAndLocale, CFString::CFStringGetHyphenationLocationBeforeIndex, CFString::CFStringLowercase, CFString::CFStringUppercase, CFString::CFStringCapitalize, CFStringTokenizer::CFStringTokenizerCreate, CFTimeZone::CFTimeZoneCopyLocalizedName

CFMachPort CFMessagePort default
CFNotificationCenter default

Affects CFLocale::kCFLocaleCurrentLocaleDidChangeNotification, CFTimeZone::kCFTimeZoneSystemTimeZoneDidChangeNotification

CFNumber default

Affects CFNumberFormatter::CFNumberFormatterCreateStringWithNumber, CFNumberFormatter::CFNumberFormatterCreateStringWithValue, CFNumberFormatter::CFNumberFormatterCreateNumberFromString, CFNumberFormatter::CFNumberFormatterGetValueFromString

CFNumberFormatter default = bitflags
CFPlugIn CFPlugInCOM CFPreferences default
CFPropertyList default = bitflags
CFRunLoop default = bitflags

Affects CFFileDescriptor::CFFileDescriptorCreateRunLoopSource, CFMachPort::CFMachPortCreateRunLoopSource, CFMessagePort::CFMessagePortCreateRunLoopSource, CFSocket::CFSocketCreateRunLoopSource, CFStream::CFReadStreamScheduleWithRunLoop, CFStream::CFWriteStreamScheduleWithRunLoop, CFStream::CFReadStreamUnscheduleFromRunLoop, CFStream::CFWriteStreamUnscheduleFromRunLoop, CFUserNotification::CFUserNotificationCreateRunLoopSource

CFSet default
CFSocket default = bitflags

Affects CFStream::CFStreamCreatePairWithSocket, CFStream::CFStreamCreatePairWithPeerSocketSignature

CFStream default = bitflags

Affects CFPropertyList::CFPropertyListWriteToStream, CFPropertyList::CFPropertyListCreateFromStream, CFPropertyList::CFPropertyListCreateWithStream, CFPropertyList::CFPropertyListWrite

CFString default = bitflags

Affects CFURL::CFURLCreateWithBytes, CFURL::CFURLCreateAbsoluteURLWithBytes, CFURL::CFURLCreateStringByReplacingPercentEscapesUsingEncoding, CFURL::CFURLCreateStringByAddingPercentEscapes, CFXMLNode::CFXMLDocumentInfo, CFURL::CFURLCreateData

CFStringEncodingExt default
CFStringTokenizer default = bitflags
CFTimeZone default
CFTree default

Affects CFXMLNode::CFXMLTree, CFXMLNode::CFXMLTreeGetNode, CFXMLNode::CFXMLTreeCreateWithNode, CFXMLParser::CFXMLTreeCreateWithDataFromURL, CFXMLParser::CFXMLTreeCreateXMLData, CFXMLParser::CFXMLTreeCreateFromData, CFXMLParser::CFXMLTreeCreateFromDataWithError

CFURL default = bitflags

Affects CFBundle::CFBundleCopyBundleURL, CFBundle::CFBundleCopySupportFilesDirectoryURL, CFBundle::CFBundleCopyResourcesDirectoryURL, CFBundle::CFBundleCopyPrivateFrameworksURL, CFBundle::CFBundleCopySharedFrameworksURL, CFBundle::CFBundleCopySharedSupportURL, CFBundle::CFBundleCopyBuiltInPlugInsURL, CFBundle::CFBundleGetPackageInfoInDirectory, CFBundle::CFBundleCopyExecutableURL, CFBundle::CFBundleIsExecutableLoadableForURL, CFURLAccess::CFURLDestroyResource, CFUtilities::CFCopyHomeDirectoryURL, CFXMLParser::CFXMLParserGetSourceURL, CFBundle::CFBundleCreate, CFBundle::CFBundleCopyInfoDictionaryInDirectory, CFBundle::CFBundleCopyResourceURL, CFBundle::CFBundleCopyResourceURLInDirectory, CFBundle::CFBundleCopyResourceURLForLocalization, CFBundle::CFBundleCopyInfoDictionaryForURL, CFStream::CFReadStreamCreateWithFile

CFURLAccess default
CFURLEnumerator default = bitflags
CFUUID default

Affects CFFileSecurity::CFFileSecurityCopyOwnerUUID, CFFileSecurity::CFFileSecuritySetOwnerUUID, CFFileSecurity::CFFileSecurityCopyGroupUUID, CFFileSecurity::CFFileSecuritySetGroupUUID, CFPlugIn::CFPlugInUnregisterFactory, CFPlugIn::CFPlugInRegisterPlugInType, CFPlugIn::CFPlugInUnregisterPlugInType, CFPlugIn::CFPlugInAddInstanceForFactory, CFPlugIn::CFPlugInRemoveInstanceForFactory, CFPlugInCOM::REFIID, CFPlugInCOM::IUnknownVTbl, CFPlugIn::CFPlugInFactoryFunction, CFPlugIn::CFPlugInFindFactoriesForPlugInType, CFPlugIn::CFPlugInInstanceCreate, CFPlugIn::CFPlugInRegisterFactoryFunction, CFPlugIn::CFPlugInFindFactoriesForPlugInTypeInPlugIn, CFPlugIn::CFPlugInRegisterFactoryFunctionByName

CFUserNotification CFUtilities default
CFXMLNode default

Affects CFXMLParser::CFXMLParserCreateXMLStructureCallBack, CFXMLParser::CFXMLParserResolveExternalEntityCallBack, CFXMLParser::CFXMLParserCallBacks, CFXMLParser::CFXMLParserCreate, CFXMLParser::CFXMLParserCreateWithDataFromURL, CFXMLParser::CFXMLParserGetCallBacks, CFXMLParser::CFXMLTreeCreateWithDataFromURL, CFXMLParser::CFXMLTreeCreateXMLData, CFXMLParser::CFXMLTreeCreateFromData, CFXMLParser::CFXMLTreeCreateFromDataWithError

CFXMLParser default = bitflags