servo / core-foundation-rs

Rust bindings to Core Foundation and other low level libraries on Mac OS X and iOS
Other
987 stars 216 forks source link

Use `core::ffi` over `std::os::raw` and `libc::c_*` #692

Closed waywardmonkeys closed 1 month ago

waywardmonkeys commented 1 month ago

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.

waywardmonkeys commented 1 month ago

This will need Rust 1.64 ...

waywardmonkeys commented 1 month ago

@jdm @mrobinson This is good for review now.