Cargo Features
[dependencies]
core-graphics2 = { version = "0.4.1", 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
somewhere in the dependency tree.default-features = false - 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
… - link default
-
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 ^0.29
metal:
Rust bindings for Metal
Affects
core-graphics2::direct_display_metal
… - objc2 objc?