19 Commits

Author SHA1 Message Date
Mads Marquart 61b90e72da Deprecate cocoa, cocoa-foundation and io-surface and link to objc2 crates instead (#731)
* Deprecate cocoa-foundation

* Deprecate cocoa

* Deprecate io-surface
2025-05-16 16:46:10 +00:00
Bruce Mitchener 9f33b121fb Use core::ffi over std::os::raw and libc::c_* (#692)
`core::ffi` is the preferred way to access these type definitions.
Begin removing uses of the versions from `libc`.

`libc::c_void` is not exactly the same as `core::ffi::c_void` but
some code has tried using them interchangeably (like in io-surface).

`libc::size_t` is `usize` on all current platforms.
2024-08-11 20:24:22 +00:00
Bruce Mitchener 8d2b732db5 Remove usages of extern crate. (#672) 2024-05-27 06:40:54 +00:00
Bruce Mitchener dec5ede821 clippy: Fix clippy::mixed_attributes_style lint. (#671) 2024-04-29 01:39:36 +00:00
Leo Kettmeir c4f4ad20b6 feat: add link feature (#608)
adjust docs

Update cocoa/Cargo.toml

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>

fmt
2023-10-10 14:46:20 +00:00
Bruce Mitchener b6d2529ca9 More clippy fixes. (#629) 2023-08-07 17:42:26 +00:00
Bruce Mitchener 18df9aafe7 Some clippy fixes. (#624) 2023-08-03 14:20:26 +00:00
micolous b009c87f2d Auto-format code with "cargo fmt" and check in CI (#615)
* add rustfmt check to CI

* Run "cargo fmt" (rustfmt) over core-foundation-rs
2023-07-25 02:22:25 +00:00
Marco Mastropaolo c127f49ffa Added missing macOS 10.6+ IOSurface functions 2021-08-11 14:03:56 +02:00
Josh Matthews 68ddb7e51d Remove gleam dependency from io-surface. 2020-06-30 08:26:14 -04:00
Josh Matthews 56d8b6c161 Major version change for core-foundation, core-graphics, io-surface, core-text, cocoa. 2020-06-29 11:03:28 -04:00
roblabla bf5977f007 Assert when creating a CFType from null 2020-03-21 18:33:22 +00:00
king6cong 0f953f4e7b Sync member order in impl and trait 2019-08-02 15:11:32 +08:00
Zakor Gyula 8a15cb91c4 Add alpha option to bind_to_gl_texture 2019-07-17 10:58:18 +02:00
Bruce Mitchener 5bce19e10a io-surface: Remove unnecessary transmutes. 2019-03-18 23:24:28 +07:00
Bruce Mitchener d2d3b3362a Refer to macOS rather than OS X. 2019-03-14 17:47:00 +07:00
Jeff Muizelaar 2d0199f1f5 Change io_surface::new() to take a typed CFDictionary. 2018-05-08 10:30:51 -04:00
Jeff Muizelaar 645779912b Consistently use std::os::raw::c_void instead of libc::c_void
The major versions of cocoa and core-graphics are bumped as I believe
they are the only crates that meaningfully expose c_void.

Fixes #212
2018-05-06 19:00:37 -04:00
Josh Matthews 72245b3112 Import io-surface. 2018-02-01 15:56:50 -05:00