Cargo Features
zng-view has no features set by default.
[dependencies]
zng-view = { version = "0.17.7", 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_cur", "image_jpeg", "image_png", "image_pnm", "image_qoi", "image_tga", "image_tiff", "image_webp", "image_all", "image_meta_exif", "image_meta_icc", "image_fast_downscale", "audio_mp3", "audio_mp4", "audio_flac", "audio_vorbis", "audio_wav", "audio_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 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?
-
Enable BMP image decoder and encoder.
Enables kamadak-exif and lcms2 and bmp of image
on upgrade review audit.toml
- image_dds image_all?
-
Enable DDS image decoder.
Enables kamadak-exif and lcms2, dds of image
- image_exr image_all?
-
Enable EXR image decoder and encoder.
Enables kamadak-exif and lcms2, exr of image
- image_ff image_all?
-
Enable Farbfeld image decoder and encoder.
Enables kamadak-exif and lcms2, ff of image
- image_gif image_all?
-
Enable GIF image decoder and encoder.
Enables kamadak-exif and lcms2, gif of image
- image_hdr image_all?
-
Enable Radiance HDR image decoder and encoder.
Enables kamadak-exif and lcms2, hdr of image
- image_ico image_all?
-
Enable ICO image decoder and encoder.
Enables ico, kamadak-exif and lcms2, ico of image
- image_cur image_all?
-
Enable CUR image decoder and encoder.
Enables ico, kamadak-exif and lcms2, ico of image
- image_jpeg image_all?
-
Enable JPEG image decoder and encoder.
Enables kamadak-exif and lcms2, jpeg of image
- image_png image_all?
-
Enable PNG image decoder and encoder.
Enables png of image and kamadak-exif, lcms2, and png
png:
matches
imagedependency version - image_pnm image_all?
-
Enable PNM image decoder and encoder.
Enables kamadak-exif and lcms2, pnm of image
- image_qoi image_all?
-
Enable QOI image decoder and encoder.
Enables kamadak-exif and lcms2, qoi of image
- image_tga image_all?
-
Enable TGA image decoder and encoder.
Enables kamadak-exif and lcms2, tga of image
- image_tiff image_all?
-
Enable TIFF image decoder and encoder.
Enables kamadak-exif, lcms2, and tiff, tiff of image
- image_webp image_all?
-
Enable WEBP image decoder.
Enables kamadak-exif and lcms2, webp of image
- image_all = image_bmp, image_cur, 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.
- image_meta_exif
-
Enable EXIF metadata copy in images.
Note that EXIF is always used when decoding, this feature enables copying the raw blob as the "image_meta_exif" metadata. - image_meta_icc
-
Enable ICC Profile metadata copy in images.
Note that images are always color managed when decoding, this feature enabled copying the raw profile as the "image_meta_icc" metadata. - image_fast_downscale
-
Enable SIMD accelerated image downscaling.
This is much faster and produces higher quality downscaled images, but adds ~1MB of binary code.Enables fast_image_resize
- audio_mp3 audio_all?
-
Enable MP3 audio decoder and encoder.
Enables symphonia ^0.5, mp3 of rodio
- audio_mp4 audio_all?
-
Enable MP4 audio decoder and encoder.
Enables symphonia ^0.5, mp4 of rodio
- audio_flac audio_all?
-
Enable FLAC audio decoder and encoder.
Enables symphonia ^0.5, flac of rodio
- audio_vorbis audio_all?
-
Enable MP3 audio decoder and encoder.
Enables symphonia ^0.5, vorbis of rodio
- audio_wav audio_all?
-
Enable WAV audio decoder and encoder.
Enables symphonia ^0.5, wav of rodio
- audio_all = audio_flac, audio_mp3, audio_mp4, audio_vorbis, audio_wav
-
Enable all audio decoders and encoders.