Cargo Features
zng-view has no features set by default.
[dependencies]
zng-view = { version = "0.15.4", features = ["ipc", "software", "hardware", "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_any", "image_all"] }
- ipc
-
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
-
Enables software renderer.
Recommended for all apps. The software renderer is used as fallback in case the hardware renderer stops working.Enables softbuffer and zng-swgl
- hardware
-
Enables GPU renderer.
Requires OpenGL 3.2 driver. Recommended for most apps. Uses ~20MB more RAM.Enables glutin
- bundle_licenses
-
Bundle third party licenses.
Needs
cargo-aboutand 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? = image_any
-
Enable BMP image decoder and encoder.
on upgrade review audit.toml
- image_dds image_all? = image_any
-
Enable DDS image decoder.
- image_exr image_all? = image_any
-
Enable EXR image decoder and encoder.
- image_ff image_all? = image_any
-
Enable Farbfeld image decoder and encoder.
- image_gif image_all? = image_any
-
Enable GIF image decoder and encoder.
- image_hdr image_all? = image_any
-
Enable Radiance HDR image decoder and encoder.
- image_ico image_all? = image_any
-
Enable ICO image decoder and encoder.
- image_jpeg image_all? = image_any
-
Enable JPEG image decoder and encoder.
- image_png image_all? = image_any
-
Enable PNG image decoder and encoder.
matches
imagedependency version - image_pnm image_all? = image_any
-
Enable PNM image decoder and encoder.
- image_qoi image_all? = image_any
-
Enable QOI image decoder and encoder.
- image_tga image_all? = image_any
-
Enable TGA image decoder and encoder.
- image_tiff image_all? = image_any
-
Enable TIFF image decoder and encoder.
Enables tiff ^0.10.3, tiff of image
- image_webp image_all? = image_any
-
Enable WEBP image decoder.
- image_any 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?
-
If any image format feature is enabled.
Enables kamadak-exif and lcms2
- image_all = 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.