Cargo Features

[dependencies]
core-graphics2 = { version = "0.3.2", default-features = false, features = ["display", "display-stream", "event", "link", "objc", "window", "metal"] }
default = display, display-stream, event, link, window

These default features are set whenever core-graphics2 is added without default-features = false somewhere in the dependency tree.

display default display-stream

Affects core-graphics2::direct_display_metal, core-graphics2::remote_operation

display-stream default = dispatch2, display, io-surface, objc

Affects core-graphics2::display_stream

event default

Affects core-graphics2::remote_operation

Enables link of core-foundation

core-foundation:

Disable to manually link. Enabled by default.

objc display-stream = objc2

Affects core-graphics2::display_stream

window default

Affects direct_display::CGShieldingWindowID, direct_display::CGShieldingWindowLevel

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

dispatch2 display-stream
io-surface display-stream
metal implicit feature

Enables metal

metal:

Rust bindings for Metal

Affects core-graphics2::direct_display_metal

objc2 objc?