Cargo Features

[dependencies]
cros-codecs = { version = "0.0.5", default-features = false, features = ["vaapi", "v4l2"] }
default = vaapi

The vaapi feature is set by default whenever cros-codecs is added without default-features = false somewhere in the dependency tree.

vaapi default = libva

Affects backend::vaapi, av1::vaapi, h264::vaapi, vp9::vaapi

v4l2 = v4l2r

Affects backend::v4l2, h264::v4l2, h265::v4l2, vp8::v4l2, vp9::v4l2

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

libva vaapi

Enables cros-libva ^0.0.7

v4l2r v4l2?

Enables v4l2r ^0.0.3