Cargo Features
[dependencies]
zng-view = { version = "0.7.5", default-features = false, features = ["ipc", "software", "bundle_licenses", "android_game_activity", "android_native_activity", "image_bmp", "image_dds", "image_exr", "image_ff", "image_gif", "image_hdr", "image_ico", "image_jpeg", "image_png", "image_pnm", "image_qoi", "image_tga", "image_tiff", "image_webp", "image_all"] }
- default = image_all, 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
- image_bmp image_all
-
Enable BMP image decoder and encoder.
- image_dds image_all
-
Enable DDS image decoder.
- image_exr image_all
-
Enable EXR image decoder and encoder.
- image_ff image_all
-
Enable Farbfeld image decoder and encoder.
- image_gif image_all
-
Enable GIF image decoder and encoder.
- image_hdr image_all
-
Enable Radiance HDR image decoder and encoder.
- image_ico image_all
-
Enable ICO image decoder and encoder.
- image_jpeg image_all
-
Enable JPEG image decoder and encoder.
- image_png image_all
-
Enable PNG image decoder and encoder.
- image_pnm image_all
-
Enable PNM image decoder and encoder.
- image_qoi image_all
-
Enable QOI image decoder and encoder.
- image_tga image_all
-
Enable TGA image decoder and encoder.
- image_tiff image_all
-
Enable TIFF image decoder and encoder.
- image_webp image_all
-
Enable WEBP image decoder.
- image_all default = image_bmp, image_dds, image_exr, image_ff, image_gif, image_hdr, image_ico, image_jpeg, image_png, image_pnm, image_qoi, image_tga, image_tiff, image_webp
-
Enable all image decoders and encoders.