#macos #cocoa #foundation #bindings #macos-ios #default

cocoa-foundation

Bindings to Cocoa Foundation for macOS

3 releases

Uses old Rust 2015

0.1.2 Sep 22, 2023
0.1.1 Mar 16, 2023
0.1.0 Jul 20, 2020

#21 in macOS and iOS APIs

Download history 38905/week @ 2023-12-12 41584/week @ 2023-12-19 28106/week @ 2023-12-26 36037/week @ 2024-01-02 36312/week @ 2024-01-09 40558/week @ 2024-01-16 41253/week @ 2024-01-23 38810/week @ 2024-01-30 40796/week @ 2024-02-06 38276/week @ 2024-02-13 37118/week @ 2024-02-20 39762/week @ 2024-02-27 37487/week @ 2024-03-05 35641/week @ 2024-03-12 41272/week @ 2024-03-19 37139/week @ 2024-03-26

157,902 downloads per month
Used in 1,273 crates (9 directly)

MIT/Apache

170KB
4K SLoC

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.

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

~300–410KB