A high-performance inference engine for AI models
kanka
Internal helper crate (甘果, "sweet fruit"): generic dlsym-resolved bindings to private
Apple framework functions, with obfuscated symbol names. This is the low-level plumbing
keisoku uses to reach the IOReport/SMC power and telemetry APIs that have no
public headers.
It contains no power logic itself — just two macros:
ffi_table!— declares a struct ofdlsym-resolved C function pointers from a named framework, with aOnceLock-cachedget()(symbol and framework names are obfuscated at compile time viaobfstr).opaque_cf_type!— declares an opaque CoreFoundation handle type usable withCFRetained.
Platform
Apple only (target_vendor = "apple"). On other platforms the macros expand to nothing
usable and the crate is effectively empty.
You normally don't depend on this directly — use keisoku.