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 default-features = false somewhere in the dependency tree.

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.

Enables bmp of image

image_dds image_all

Enable DDS image decoder.

Enables dds of image

image_exr image_all

Enable EXR image decoder and encoder.

Enables exr of image

image_ff image_all

Enable Farbfeld image decoder and encoder.

Enables ff of image

image_gif image_all

Enable GIF image decoder and encoder.

Enables gif of image

image_hdr image_all

Enable Radiance HDR image decoder and encoder.

Enables hdr of image

image_ico image_all

Enable ICO image decoder and encoder.

Enables ico of image

image_jpeg image_all

Enable JPEG image decoder and encoder.

Enables jpeg of image

image_png image_all

Enable PNG image decoder and encoder.

Enables png of image

image_pnm image_all

Enable PNM image decoder and encoder.

Enables pnm of image

image_qoi image_all

Enable QOI image decoder and encoder.

Enables qoi of image

image_tga image_all

Enable TGA image decoder and encoder.

Enables tga of image

image_tiff image_all

Enable TIFF image decoder and encoder.

Enables tiff of image

image_webp image_all

Enable WEBP image decoder.

Enables webp of image

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.