Cargo Features

[dependencies]
objc2-io-surface = { version = "0.3.0", default-features = false, features = ["std", "alloc", "bitflags", "libc", "objc2", "objc2-core-foundation", "objc2-foundation", "IOSurfaceBase", "IOSurfaceRef", "IOSurfaceTypes", "ObjC"] }
default = IOSurface, IOSurfaceAPI, IOSurfaceBase, IOSurfaceRef, IOSurfaceTypes, ObjC, bitflags, libc, objc2, objc2-core-foundation, objc2-foundation, std

These default features are set whenever objc2-io-surface is added without default-features = false somewhere in the dependency tree.

std default = alloc
alloc std
bitflags default IOSurfaceRef IOSurfaceTypes

Enables bitflags

libc default

Enables libc

Affects IOSurfaceRef::IOSurfaceCreateMachPort, IOSurfaceRef::IOSurfaceSetPurgeable, IOSurfaceRef::IOSurfaceLock, IOSurfaceRef::IOSurfaceUnlock, IOSurfaceRef::IOSurfaceLookupFromMachPort

objc2 default

Enables objc2, objc2 of optional objc2-core-foundation

objc2-core-foundation default

Enables objc2-core-foundation

Affects IOSurfaceRef::kIOSurfaceAllocSize, IOSurfaceRef::kIOSurfaceWidth, IOSurfaceRef::kIOSurfaceHeight, IOSurfaceRef::kIOSurfaceBytesPerRow, IOSurfaceRef::kIOSurfaceBytesPerElement, IOSurfaceRef::kIOSurfaceElementWidth, IOSurfaceRef::kIOSurfaceElementHeight, IOSurfaceRef::kIOSurfaceOffset, IOSurfaceRef::kIOSurfacePlaneInfo, IOSurfaceRef::kIOSurfacePlaneWidth, IOSurfaceRef::kIOSurfacePlaneHeight, IOSurfaceRef::kIOSurfacePlaneBytesPerRow, IOSurfaceRef::kIOSurfacePlaneOffset, IOSurfaceRef::kIOSurfacePlaneSize, IOSurfaceRef::kIOSurfacePlaneBase, IOSurfaceRef::kIOSurfacePlaneBitsPerElement

objc2-foundation default

Enables objc2-foundation

Affects ObjC::IOSurfacePropertyKey, ObjC::IOSurfacePropertyKeyAllocSize, ObjC::IOSurfacePropertyKeyWidth, ObjC::IOSurfacePropertyKeyHeight, ObjC::IOSurfacePropertyKeyBytesPerRow, ObjC::IOSurfacePropertyKeyBytesPerElement, ObjC::IOSurfacePropertyKeyElementWidth, ObjC::IOSurfacePropertyKeyElementHeight, ObjC::IOSurfacePropertyKeyOffset, ObjC::IOSurfacePropertyKeyPlaneInfo, ObjC::IOSurfacePropertyKeyPlaneWidth, ObjC::IOSurfacePropertyKeyPlaneHeight, ObjC::IOSurfacePropertyKeyPlaneBytesPerRow, ObjC::IOSurfacePropertyKeyPlaneOffset, ObjC::IOSurfacePropertyKeyPlaneSize, ObjC::IOSurfacePropertyKeyPlaneBase

IOSurface IOSurfaceAPI IOSurfaceBase default
IOSurfaceRef default = bitflags
IOSurfaceTypes default = bitflags

Affects IOSurfaceRef::IOSurfaceGetID, IOSurfaceRef::IOSurfaceLookup, IOSurfaceRef::IOSurfaceLock, IOSurfaceRef::IOSurfaceUnlock

ObjC default