Cargo Features
[dependencies]
zng-view = { version = "0.6.5", default-features = false, features = ["ipc", "software", "bundle_licenses", "android_game_activity", "android_native_activity"] }
- default = ipc, software
-
These default features are set whenever
zng-view
is added without
somewhere in the dependency tree.default-features = false - ipc default
-
Enables pre-build and init as view-process.
If this is enabled all communication with the view is serialized/deserialized, even in same-process mode.
Only enables in
cfg(not(target_os = "android"))
builds.Enables ipc of zng-view-api
- software default
-
Enables software renderer fallback.
If enabled and a native OpenGL 3.2 driver is not available the
swgl
software renderer is used.Enables softbuffer and zng-swgl
- bundle_licenses
-
Bundle third party licenses.
Needs
cargo-about
and Internet connection during build.Not enabled by default. Note that
"view_prebuilt"
always bundles licenses.Enables bundle of zng-tp-licenses
- android_game_activity
-
Standard Android backend that requires a build system that can compile Java or Kotlin and fetch Android dependencies.
See
https://docs.rs/winit/latest/winit/platform/android/
for more details.Enables android-game-activity of winit
- android_native_activity
-
Basic Android backend that does not require Java.
See
https://docs.rs/winit/latest/winit/platform/android/
for more details.Enables android-native-activity of winit