Cargo Features

[dependencies]
objc2-foundation = { version = "0.3.0", default-features = false, features = ["std", "alloc", "gnustep-1-7", "gnustep-1-8", "gnustep-1-9", "gnustep-2-0", "gnustep-2-1", "unstable-static-nsstring", "unstable-mutation-return-null", "bitflags", "block2", "libc", "objc2-core-foundation", "FoundationLegacySwiftCompatibility", "NSAffineTransform", "NSAppleEventDescriptor", "NSArchiver", "NSArray", "NSAttributedString", "NSBundle", "NSByteCountFormatter", "NSCache", "NSCalendar", "NSCoder", "NSComparisonPredicate", "NSConnection", "NSData", "NSDate", "NSDateComponentsFormatter", "NSDebug", "NSDecimalNumber", "NSDictionary", "NSDistributedLock", "NSDistributedNotificationCenter", "NSEnergyFormatter", "NSEnumerator", "NSError", "NSExtensionItem", "NSExtensionRequestHandling", "NSFileCoordinator", "NSFileHandle", "NSFileManager", "NSFilePresenter", "NSFileWrapper", "NSGarbageCollector", "NSGeometry", "NSHashTable", "NSHost", "NSISO8601DateFormatter", "NSInvocation", "NSJSONSerialization", "NSKeyValueCoding", "NSKeyValueObserving", "NSLengthFormatter", "NSLinguisticTagger", "NSLock", "NSMapTable", "NSMeasurement", "NSMeasurementFormatter", "NSMorphology", "NSNetServices", "NSNotification", "NSNotificationQueue", "NSNull", "NSNumberFormatter", "NSObjCRuntime", "NSObject", "NSOrderedCollectionChange", "NSOrderedCollectionDifference", "NSOrthography", "NSPathUtilities", "NSPersonNameComponents", "NSPersonNameComponentsFormatter", "NSPointerArray", "NSPointerFunctions", "NSPort", "NSPredicate", "NSProcessInfo", "NSProgress", "NSPropertyList", "NSRange", "NSRegularExpression", "NSScanner", "NSScriptCommand", "NSScriptExecutionContext", "NSScriptObjectSpecifiers", "NSScriptSuiteRegistry", "NSScriptWhoseTests", "NSSet", "NSSpellServer", "NSStream", "NSString", "NSTermOfAddress", "NSTextCheckingResult", "NSTimer", "NSURL", "NSURLConnection", "NSURLDownload", "NSURLProtocol", "NSUUID", "NSUserActivity", "NSValue", "NSXMLDocument", "NSXMLNode", "NSXMLNodeOptions", "NSXMLParser", "NSXPCConnection", "NSZone"] }
default = FoundationErrors, FoundationLegacySwiftCompatibility, NSAffineTransform, NSAppleEventDescriptor, NSAppleEventManager, NSAppleScript, NSArchiver, NSArray, NSAttributedString, NSAutoreleasePool, NSBackgroundActivityScheduler, NSBundle, NSByteCountFormatter, NSByteOrder, NSCache, NSCalendar, NSCalendarDate, NSCharacterSet, NSClassDescription, NSCoder, NSComparisonPredicate, NSCompoundPredicate, NSConnection, NSData, NSDate, NSDateComponentsFormatter, NSDateFormatter, NSDateInterval, NSDateIntervalFormatter, NSDebug, NSDecimal, NSDecimalNumber, NSDictionary, NSDistantObject, NSDistributedLock, NSDistributedNotificationCenter, NSEnergyFormatter, NSEnumerator, NSError, NSException, NSExpression, NSExtensionContext, NSExtensionItem, NSExtensionRequestHandling, NSFileCoordinator, NSFileHandle, NSFileManager, NSFilePresenter, NSFileVersion, NSFileWrapper, NSFormatter, NSGarbageCollector, NSGeometry, NSHFSFileTypes, NSHTTPCookie, NSHTTPCookieStorage, NSHashTable, NSHost, NSISO8601DateFormatter, NSIndexPath, NSIndexSet, NSInflectionRule, NSInvocation, NSItemProvider, NSJSONSerialization, NSKeyValueCoding, NSKeyValueObserving, NSKeyValueSharedObservers, NSKeyedArchiver, NSLengthFormatter, NSLinguisticTagger, NSListFormatter, NSLocale, NSLocalizedNumberFormatRule, NSLock, NSMapTable, NSMassFormatter, NSMeasurement, NSMeasurementFormatter, NSMetadata, NSMetadataAttributes, NSMethodSignature, NSMorphology, NSNetServices, NSNotification, NSNotificationQueue, NSNull, NSNumberFormatter, NSObjCRuntime, NSObject, NSObjectScripting, NSOperation, NSOrderedCollectionChange, NSOrderedCollectionDifference, NSOrderedSet, NSOrthography, NSPathUtilities, NSPersonNameComponents, NSPersonNameComponentsFormatter, NSPointerArray, NSPointerFunctions, NSPort, NSPortCoder, NSPortMessage, NSPortNameServer, NSPredicate, NSProcessInfo, NSProgress, NSPropertyList, NSProtocolChecker, NSProxy, NSRange, NSRegularExpression, NSRelativeDateTimeFormatter, NSRunLoop, NSScanner, NSScriptClassDescription, NSScriptCoercionHandler, NSScriptCommand, NSScriptCommandDescription, NSScriptExecutionContext, NSScriptKeyValueCoding, NSScriptObjectSpecifiers, NSScriptStandardSuiteCommands, NSScriptSuiteRegistry, NSScriptWhoseTests, NSSet, NSSortDescriptor, NSSpellServer, NSStream, NSString, NSTask, NSTermOfAddress, NSTextCheckingResult, NSThread, NSTimeZone, NSTimer, NSURL, NSURLAuthenticationChallenge, NSURLCache, NSURLConnection, NSURLCredential, NSURLCredentialStorage, NSURLDownload, NSURLError, NSURLHandle, NSURLProtectionSpace, NSURLProtocol, NSURLRequest, NSURLResponse, NSURLSession, NSUUID, NSUbiquitousKeyValueStore, NSUndoManager, NSUnit, NSUserActivity, NSUserDefaults, NSUserNotification, NSUserScriptTask, NSValue, NSValueTransformer, NSXMLDTD, NSXMLDTDNode, NSXMLDocument, NSXMLElement, NSXMLNode, NSXMLNodeOptions, NSXMLParser, NSXPCConnection, NSZone, bitflags, block2, libc, objc2-core-foundation, std

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

std default = alloc
alloc std
gnustep-1-7 gnustep-1-8?

Enables gnustep-1-7 of optional block2 and objc2

block2:

Link to GNUStep's libobjc2 (which contains the block implementation).

gnustep-1-8 gnustep-1-9? = gnustep-1-7

Enables gnustep-1-8 of optional block2 and objc2

gnustep-1-9 gnustep-2-0? = gnustep-1-8

Enables gnustep-1-9 of optional block2 and objc2

gnustep-2-0 gnustep-2-1? = gnustep-1-9

Enables gnustep-2-0 of optional block2 and objc2

gnustep-2-1 = gnustep-2-0

Enables gnustep-2-1 of optional block2 and objc2

unstable-static-nsstring
unstable-mutation-return-null = NSNull
bitflags default NSAppleEventDescriptor NSArray NSAttributedString NSByteCountFormatter NSCalendar NSComparisonPredicate NSData NSDateComponentsFormatter NSDistributedNotificationCenter NSFileCoordinator NSFileManager NSFileVersion NSFileWrapper NSGeometry NSISO8601DateFormatter NSItemProvider NSJSONSerialization NSKeyValueObserving NSLinguisticTagger NSMeasurementFormatter NSNetServices NSNotificationQueue NSObjCRuntime NSOrderedCollectionDifference NSPathUtilities NSPersonNameComponentsFormatter NSPointerFunctions NSPort NSProcessInfo NSPropertyList NSRegularExpression NSStream NSString NSTextCheckingResult NSURL NSXMLNodeOptions NSXPCConnection

Enables bitflags

block2 default

Enables block2

Affects NSBackgroundActivityScheduler::NSBackgroundActivityCompletionHandler, NSObjCRuntime::NSComparator, NSProgress::NSProgressUnpublishingHandler, NSProgress::NSProgressPublishingHandler, NSUserScriptTask::NSUserScriptTaskCompletionHandler, NSUserScriptTask::NSUserUnixTaskCompletionHandler, NSUserScriptTask::NSUserAutomatorTaskCompletionHandler, NSItemProvider::NSItemProviderCompletionHandler, NSUserScriptTask::NSUserAppleScriptTaskCompletionHandler, NSItemProvider::NSItemProviderLoadHandler

libc default

Enables libc

objc2-core-foundation default

Enables objc2-core-foundation

Affects NSAffineTransform::NSAffineTransformStruct, NSGeometry::NSPointPointer, NSGeometry::NSPointArray, NSGeometry::NSSizePointer, NSGeometry::NSSizeArray, NSGeometry::NSRectPointer, NSGeometry::NSRectArray, NSGeometry::NSEdgeInsets, NSGeometry::NSZeroPoint, NSGeometry::NSZeroSize, NSGeometry::NSZeroRect, NSGeometry::NSEdgeInsetsZero, NSGeometry::NSEqualPoints, NSGeometry::NSEqualSizes, NSGeometry::NSEqualRects, NSGeometry::NSIsEmptyRect, NSGeometry::NSEdgeInsetsEqual, geometry::NSPoint, geometry::NSSize, geometry::NSRect

FoundationErrors FoundationLegacySwiftCompatibility default
NSAffineTransform default
NSAppleEventDescriptor default = bitflags

Affects NSUserScriptTask::NSUserAppleScriptTaskCompletionHandler

NSAppleEventManager NSAppleScript NSArchiver default
NSArray default = bitflags

Affects NSHashTable::NSAllHashTableObjects, NSMapTable::NSAllMapTableKeys, NSMapTable::NSAllMapTableValues, objc2-foundation::array, NSPathUtilities::NSSearchPathForDirectoriesInDomains

NSAttributedString default = bitflags
NSAutoreleasePool NSBackgroundActivityScheduler NSBundle default
NSByteCountFormatter default = bitflags
NSByteOrder NSCache default
NSCalendar default = bitflags
NSCalendarDate NSCharacterSet NSClassDescription NSCoder default
NSComparisonPredicate default = bitflags
NSCompoundPredicate NSConnection default
NSData default = bitflags
NSDate default
NSDateComponentsFormatter default = bitflags
NSDateFormatter NSDateInterval NSDateIntervalFormatter NSDebug default
NSDecimal NSDecimalNumber default
NSDictionary default

Affects objc2-foundation::dictionary, NSItemProvider::NSItemProviderLoadHandler

NSDistantObject NSDistributedLock default
NSDistributedNotificationCenter default = bitflags
NSEnergyFormatter default
NSEnumerator default

Affects array::Iter, array::IterUnchecked, array::IntoIter, dictionary::Keys, dictionary::KeysUnchecked, dictionary::Objects, dictionary::ObjectsUnchecked, objc2-foundation::enumerator, set::Iter, set::IterUnchecked, set::IntoIter

NSError default

Affects NSNetServices::NSNetServicesErrorDomain, NSStream::NSStreamSocketSSLErrorDomain, NSStream::NSStreamSOCKSErrorDomain, NSURLError::NSURLErrorDomain, NSURLError::NSURLErrorNetworkUnavailableReasonKey, NSUserScriptTask::NSUserScriptTaskCompletionHandler, NSUserScriptTask::NSUserUnixTaskCompletionHandler, NSUserScriptTask::NSUserAutomatorTaskCompletionHandler, NSXMLParser::NSXMLParserErrorDomain, NSItemProvider::NSItemProviderCompletionHandler, NSUserScriptTask::NSUserAppleScriptTaskCompletionHandler, NSItemProvider::NSItemProviderLoadHandler

NSException NSExpression NSExtensionContext NSExtensionItem default
NSExtensionRequestHandling default
NSFileCoordinator default = bitflags
NSFileHandle default
NSFileManager default = bitflags
NSFilePresenter default
NSFileVersion NSFileWrapper default = bitflags
NSFormatter NSGarbageCollector default
NSGeometry default = bitflags
NSHFSFileTypes NSHTTPCookie NSHTTPCookieStorage NSHashTable default
NSHost default
NSISO8601DateFormatter default = bitflags
NSIndexPath NSIndexSet NSInflectionRule NSInvocation default
NSItemProvider NSJSONSerialization default = bitflags
NSKeyValueCoding default
NSKeyValueObserving default = bitflags
NSKeyValueSharedObservers NSKeyedArchiver NSLengthFormatter default
NSLinguisticTagger default = bitflags
NSListFormatter NSLocale NSLocalizedNumberFormatRule NSLock default
NSMapTable default

Affects ns_consumed::NSFreeMapTable

NSMassFormatter NSMeasurement default
NSMeasurementFormatter default = bitflags
NSMetadata NSMetadataAttributes NSMethodSignature NSMorphology default
NSNetServices default = bitflags
NSNotification default

Affects NSAppleEventManager::NSAppleEventManagerWillProcessFirstEventNotification, NSBundle::NSBundleDidLoadNotification, NSBundle::NSBundleResourceRequestLowDiskSpaceNotification, NSCalendar::NSCalendarDayChangedNotification, NSClassDescription::NSClassDescriptionNeededForClassNotification, NSDate::NSSystemClockDidChangeNotification, NSFileHandle::NSFileHandleReadCompletionNotification, NSFileHandle::NSFileHandleReadToEndOfFileCompletionNotification, NSFileHandle::NSFileHandleConnectionAcceptedNotification, NSFileHandle::NSFileHandleDataAvailableNotification, NSFileManager::NSUbiquityIdentityDidChangeNotification, NSHTTPCookieStorage::NSHTTPCookieManagerAcceptPolicyChangedNotification, NSHTTPCookieStorage::NSHTTPCookieManagerCookiesChangedNotification, NSLocale::NSCurrentLocaleDidChangeNotification, NSMetadata::NSMetadataQueryDidStartGatheringNotification, NSMetadata::NSMetadataQueryGatheringProgressNotification, NSMetadata::NSMetadataQueryDidFinishGatheringNotification, NSMetadata::NSMetadataQueryDidUpdateNotification, NSPort::NSPortDidBecomeInvalidNotification, NSProcessInfo::NSProcessInfoThermalStateDidChangeNotification

NSNotificationQueue default = bitflags
NSNull default unstable-mutation-return-null?
NSNumberFormatter default
NSObjCRuntime default = bitflags

Affects NSDecimal::NSDecimalCompare, NSString::NSCharacterConversionException, NSString::NSParseErrorException, NSDecimalNumber::NSDecimalNumberExactnessException, NSDecimalNumber::NSDecimalNumberOverflowException, NSDecimalNumber::NSDecimalNumberUnderflowException, NSDecimalNumber::NSDecimalNumberDivideByZeroException, NSException::NSGenericException, NSException::NSRangeException, NSException::NSInvalidArgumentException, NSException::NSInternalInconsistencyException, NSException::NSMallocException, NSException::NSObjectInaccessibleException, NSException::NSObjectNotAvailableException, NSException::NSDestinationInvalidException, NSException::NSPortTimeoutException, NSException::NSInvalidSendPortException, NSException::NSInvalidReceivePortException, NSException::NSPortSendException, NSException::NSPortReceiveException

NSObject default

Affects NSItemProvider::NSItemProviderCompletionHandler, NSItemProvider::NSItemProviderLoadHandler

NSObjectScripting NSOperation NSOrderedCollectionChange default
NSOrderedCollectionDifference default = bitflags
NSOrderedSet NSOrthography default
NSPathUtilities default = bitflags
NSPersonNameComponents default
NSPersonNameComponentsFormatter default = bitflags
NSPointerArray default
NSPointerFunctions default = bitflags

Affects NSHashTable::NSHashTableStrongMemory, NSHashTable::NSHashTableZeroingWeakMemory, NSHashTable::NSHashTableCopyIn, NSHashTable::NSHashTableObjectPointerPersonality, NSHashTable::NSHashTableWeakMemory, NSMapTable::NSMapTableStrongMemory, NSMapTable::NSMapTableZeroingWeakMemory, NSMapTable::NSMapTableCopyIn, NSMapTable::NSMapTableObjectPointerPersonality, NSMapTable::NSMapTableWeakMemory

NSPort default = bitflags
NSPortCoder NSPortMessage NSPortNameServer NSPredicate default
NSProcessInfo default = bitflags
NSProgress default
NSPropertyList default = bitflags
NSProtocolChecker NSProxy NSRange default
NSRegularExpression default = bitflags
NSRelativeDateTimeFormatter NSRunLoop NSScanner default
NSScriptClassDescription NSScriptCoercionHandler NSScriptCommand default
NSScriptCommandDescription NSScriptExecutionContext default
NSScriptKeyValueCoding NSScriptObjectSpecifiers default
NSScriptStandardSuiteCommands NSScriptSuiteRegistry default
NSScriptWhoseTests default
NSSet default

Affects objc2-foundation::set

NSSortDescriptor NSSpellServer default
NSStream default = bitflags
NSString default = bitflags

Affects NSAppleScript::NSAppleScriptErrorMessage, NSAppleScript::NSAppleScriptErrorNumber, NSAppleScript::NSAppleScriptErrorAppName, NSAppleScript::NSAppleScriptErrorBriefMessage, NSAppleScript::NSAppleScriptErrorRange, NSAttributedString::NSAttributedStringKey, NSAttributedString::NSAttributedStringFormattingContextKey, NSAttributedString::NSInflectionConceptsKey, NSAttributedString::NSInlinePresentationIntentAttributeName, NSAttributedString::NSAlternateDescriptionAttributeName, NSAttributedString::NSImageURLAttributeName, NSAttributedString::NSLanguageIdentifierAttributeName, NSAttributedString::NSMarkdownSourcePositionAttributeName, NSAttributedString::NSReplacementIndexAttributeName, NSAttributedString::NSMorphologyAttributeName, NSAttributedString::NSInflectionRuleAttributeName, NSAttributedString::NSInflectionAgreementArgumentAttributeName, NSAttributedString::NSInflectionAgreementConceptAttributeName, NSAttributedString::NSInflectionReferentConceptAttributeName, NSAttributedString::NSInflectionAlternativeAttributeName

NSTask NSTermOfAddress default
NSTextCheckingResult default = bitflags
NSThread NSTimeZone NSTimer default
NSURL default = bitflags
NSURLAuthenticationChallenge NSURLCache NSURLConnection default
NSURLCredential NSURLCredentialStorage NSURLDownload default
NSURLError NSURLHandle NSURLProtectionSpace NSURLProtocol default
NSURLRequest NSURLResponse NSURLSession NSUUID default
NSUbiquitousKeyValueStore NSUndoManager NSUnit NSUserActivity default
NSUserDefaults NSUserNotification NSUserScriptTask NSValue default
NSValueTransformer NSXMLDTD NSXMLDTDNode NSXMLDocument default
NSXMLElement NSXMLNode default
NSXMLNodeOptions default = bitflags
NSXMLParser default
NSXPCConnection default = bitflags
NSZone default

Affects NSHashTable::NSCopyHashTableWithZone, NSMapTable::NSCopyMapTableWithZone, NSObject::NSAllocateObject, NSObject::NSCopyObject, NSObject::NSShouldRetainWithZone, NSHashTable::NSCreateHashTableWithZone, NSMapTable::NSCreateMapTableWithZone