Crate features / objc2-core-foundation
Feature flags · objc2-core-foundation 0.3.2 · from crates.io 2026-10-24
objc2-core-foundation features: what each one does, and the line to copy
Short answerobjc2-core-foundation 0.3.2 has 55 features. By default it turns on std, CFArray, CFAttributedString, CFAvailability, CFBag, 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, dispatch2, libc, objc2; add default-features = false to start from nothing. It needs Rust 1.71 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
CFArray | yes | nothing else (a switch the code checks) |
CFAttributedString | yes | nothing else (a switch the code checks) |
CFAvailability | yes | nothing else (a switch the code checks) |
CFBag | yes | nothing else (a switch the code checks) |
CFBase | nothing else (a switch the code checks) | |
CFBinaryHeap | yes | nothing else (a switch the code checks) |
CFBitVector | yes | nothing else (a switch the code checks) |
CFBundle | yes | nothing else (a switch the code checks) |
CFByteOrder | yes | nothing else (a switch the code checks) |
CFCGTypes | yes | nothing else (a switch the code checks) |
CFCalendar | yes | bitflags |
CFCharacterSet | yes | nothing else (a switch the code checks) |
CFData | yes | bitflags |
CFDate | yes | bitflags |
CFDateFormatter | yes | bitflags |
CFDictionary | yes | nothing else (a switch the code checks) |
CFError | yes | nothing else (a switch the code checks) |
CFFileDescriptor | yes | nothing else (a switch the code checks) |
CFFileSecurity | yes | bitflags |
CFLocale | yes | nothing else (a switch the code checks) |
CFMachPort | yes | nothing else (a switch the code checks) |
CFMessagePort | yes | nothing else (a switch the code checks) |
CFNotificationCenter | yes | nothing else (a switch the code checks) |
CFNumber | yes | nothing else (a switch the code checks) |
CFNumberFormatter | yes | bitflags |
CFPlugIn | yes | nothing else (a switch the code checks) |
CFPlugInCOM | yes | nothing else (a switch the code checks) |
CFPreferences | yes | nothing else (a switch the code checks) |
CFPropertyList | yes | bitflags |
CFRunLoop | yes | bitflags |
CFSet | yes | nothing else (a switch the code checks) |
CFSocket | yes | bitflags |
CFStream | yes | bitflags |
CFString | yes | bitflags |
CFStringEncodingExt | yes | nothing else (a switch the code checks) |
CFStringTokenizer | yes | bitflags |
CFTimeZone | yes | nothing else (a switch the code checks) |
CFTree | yes | nothing else (a switch the code checks) |
CFURL | yes | bitflags |
CFURLAccess | yes | nothing else (a switch the code checks) |
CFURLEnumerator | yes | bitflags |
CFUUID | yes | nothing else (a switch the code checks) |
CFUserNotification | yes | nothing else (a switch the code checks) |
CFUtilities | yes | nothing else (a switch the code checks) |
CFXMLNode | yes | nothing else (a switch the code checks) |
CFXMLParser | yes | bitflags |
alloc | nothing else (a switch the code checks) | |
bitflags | yes | dep:bitflags |
block2 | yes | dep:block2 |
dispatch2 | yes | dep:dispatch2 |
libc | yes | dep:libc |
objc2 | yes | dep:objc2, dispatch2?/objc2 |
std | yes | alloc |
unstable-coerce-pointee | nothing else (a switch the code checks) | |
unstable-darwin-objc | nothing else (a switch the code checks) |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version objc2-core-foundation declares (rust-version), and the release that changed it:
- 0.3.0 (2025-01-22): Rust 1.71
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p objc2-core-foundation --precise <version>, or use resolver 3, which picks compatible versions for you.
More on objc2-core-foundation
Real downloads, dependents and alternatives: objc2-core-foundation crate data (539.1K real downloads a day, 422 dependents).
docs.rs feature list · crates.io · license Zlib OR Apache-2.0 OR MIT · edition 2021
Up next
Before you depend on itobjc2-core-foundation crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?