apple-objc-sys 0.0.1

Minimal ObjC runtime FFI for Apple frameworks — no cc, no .m files
Documentation
  • Coverage
  • 40.48%
    17 out of 42 items documented0 out of 6 items with examples
  • Size
  • Source code size: 15.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.15 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • eugenehp/rswift
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • eugenehp

Minimal ObjC runtime FFI for Apple framework crates.

Provides the raw ObjC runtime symbols (objc_msgSend, objc_getClass, sel_registerName) plus ergonomic helper macros so framework crates can call ObjC methods directly from Rust — no .m files, no cc build step.

Example

use apple_objc_sys::*;

unsafe {
    let cls = class!(b"NSProcessInfo");
    let info: Id = msg_send![cls, processInfo];
    let count: isize = msg_send![info, processorCount];
}

License

GPL-3.0 — Copyright © 2025 Eugene Hauptmann