[package] name = "core-graphics2" description = "Safe bindings to CoreGraphics framework, including display stream" homepage = "https://github.com/rust-media/apple-media-rs" repository = "https://github.com/rust-media/apple-media-rs" documentation = "https://docs.rs/core-graphics2" version = "0.4.1" authors = ["Zhou Wei "] license = "MIT OR Apache-2.0" categories = ["graphics", "multimedia", "os::macos-apis"] keywords = ["coregraphics", "display", "displaystream", "screencapture"] edition = "2018" [dependencies] bitflags = "2.5" block = "0.1" cfg-if = "1.0" core-foundation = { version = "0.10", default-features = false } dispatch2 = { version = "0.1", optional = true } io-surface = { version = "0.16", optional = true } libc = "0.2" metal = { version = "0.29", optional = true } objc2 = { version = "0.5", optional = true } [dev-dependencies] core-video = { version = "0.4", path = "../core-video" } [features] default = ["display", "display-stream", "event", "link", "window"] display = [] display-stream = ["dispatch2", "display", "io-surface", "objc"] event = [] link = ["core-foundation/link"] objc = ["objc2"] window = [] [[example]] name = "display_stream" [package.metadata.docs.rs] no-default-features = true features = ["display", "display-stream", "event", "objc", "window"] default-target = "x86_64-apple-darwin" targets = [ "x86_64-apple-darwin", "x86_64-apple-ios", "aarch64-apple-darwin", "aarch64-apple-ios", ]