5 releases

new 0.2.1 May 23, 2025
0.2.0 Aug 11, 2024
0.1.2 Sep 22, 2023
0.1.1 Mar 16, 2023
0.1.0 Jul 20, 2020

#58 in macOS and iOS APIs

Download history 51524/week @ 2025-01-31 114299/week @ 2025-02-07 132554/week @ 2025-02-14 150383/week @ 2025-02-21 154835/week @ 2025-02-28 132113/week @ 2025-03-07 127220/week @ 2025-03-14 103560/week @ 2025-03-21 99846/week @ 2025-03-28 87014/week @ 2025-04-04 70630/week @ 2025-04-11 61029/week @ 2025-04-18 70266/week @ 2025-04-25 76566/week @ 2025-05-02 68624/week @ 2025-05-09 71074/week @ 2025-05-16

299,134 downloads per month
Used in 1,543 crates (12 directly)

MIT/Apache

180KB
4.5K SLoC

This crate has been deprecated in favour of the objc2-foundation crate.


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

~320–430KB