29 releases

0.10.0 Aug 11, 2024
0.9.4 Nov 30, 2023
0.9.3 Feb 7, 2022
0.9.2 Oct 12, 2021
0.0.2 Feb 12, 2015

#1 in macOS and iOS APIs

Download history 466867/week @ 2024-12-21 611449/week @ 2024-12-28 1055266/week @ 2025-01-04 1309230/week @ 2025-01-11 1153587/week @ 2025-01-18 1229790/week @ 2025-01-25 1305943/week @ 2025-02-01 1505664/week @ 2025-02-08 1387619/week @ 2025-02-15 1528674/week @ 2025-02-22 1859464/week @ 2025-03-01 1817542/week @ 2025-03-08 2037438/week @ 2025-03-15 2330253/week @ 2025-03-22 1697984/week @ 2025-03-29 1534121/week @ 2025-04-05

7,898,130 downloads per month
Used in 20,315 crates (226 directly)

MIT/Apache

300KB
6.5K SLoC

This crate provides wrappers around the underlying CoreFoundation types and functions that are available on Apple's operating systems.

It also provides a framework for other crates to use when wrapping other frameworks that use the CoreFoundation framework.


core-foundation-rs

Build Status

Compatibility

Targets macOS 10.7 by default.

To enable features added in macOS 10.8, set Cargo feature mac_os_10_8_features. To have both 10.8 features and 10.7 compatibility, also set mac_os_10_7_support. Setting both requires weak linkage, which is a nightly-only feature as of Rust 1.19.

For more experimental but more complete, generated bindings take a look at https://github.com/michaelwu/RustKit. Other alternatives are https://github.com/nvzqz/fruity and https://gitlab.com/objrs/objrs

Contributing

If you wish to start contributing or even make a one-off change, simply submit a pull request with the code or documentation change and we'll go from there.

Dependencies