Configure macOS version compatibility
mainBy default, core-foundation-rs targets macOS 10.7. You can adjust the target version using Cargo features:
- macOS 10.8+ features: Enable the
mac_os_10_8_featuresfeature. - Hybrid 10.7/10.8 support: To use 10.8 features while maintaining 10.7 compatibility, enable both
mac_os_10_8_featuresandmac_os_10_7_support.
Note: Enabling both features requires weak linkage, which is a nightly-only feature in Rust (as of version 1.19).