cros-codecs-generic-vaapi 0.0.6-generic.2

Hardware-accelerated codecs for Linux with generic VA-API surface support
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "cros-codecs-generic-vaapi"
version = "0.0.6-generic.2"
authors = ["The ChromiumOS Authors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hardware-accelerated codecs for Linux with generic VA-API surface support"
readme = "README.md"
license = "BSD-3-Clause"
repository = "https://github.com/chojs23/cros-codecs-generic-vaapi"

[features]
backend = [
    "anyhow",
    "byteorder",
    "thiserror",
    "crc32fast",
    "nix",
    "zerocopy",
]
c2 = [
    "backend",
    "dmabuf",
]
default = []
dmabuf = [
    "gbm",
    "gbm-sys",
    "drm",
    "drm-fourcc",
]
v4l2 = [
    "v4l2r",
    "backend",
    "dmabuf",
]
vaapi = [
    "libva",
    "backend",
]

[lib]
name = "cros_codecs"
path = "src/lib.rs"

[[example]]
name = "ccdec"
path = "examples/ccdec/main.rs"
required-features = ["c2"]

[[example]]
name = "ccenc"
path = "examples/ccenc/main.rs"
required-features = ["c2"]

[[example]]
name = "perf_test"
path = "examples/perf_test.rs"
required-features = ["backend"]

[[test]]
name = "generic_vaapi_constructor"
path = "tests/generic_vaapi_constructor.rs"
required-features = ["vaapi"]

[dependencies.anyhow]
version = "1.0.75"
optional = true

[dependencies.byteorder]
version = "1.4.3"
optional = true

[dependencies.crc32fast]
version = "1.3.2"
optional = true

[dependencies.drm]
version = "0.12.0"
optional = true

[dependencies.drm-fourcc]
version = "2.2.0"
optional = true

[dependencies.gbm]
version = "0.15"
features = ["drm-support"]
optional = true
default-features = false

[dependencies.gbm-sys]
version = "0.3.1"
optional = true

[dependencies.libva]
version = "0.0.12"
optional = true
package = "cros-libva"

[dependencies.log]
version = "0"
features = ["release_max_level_debug"]

[dependencies.nix]
version = "0.28"
features = [
    "fs",
    "event",
    "poll",
    "mman",
    "ioctl",
]
optional = true

[dependencies.thiserror]
version = "1.0.58"
optional = true

[dependencies.v4l2r]
version = "0.0.5"
optional = true
package = "v4l2r"

[dependencies.zerocopy]
version = "0.8.14"
features = ["derive"]
optional = true

[dev-dependencies.argh]
version = "0.1.12"

[dev-dependencies.env_logger]
version = "0.9.3"

[dev-dependencies.serde_json]
version = "1.0.96"

[lints.rust]
mismatched_lifetime_syntaxes = "allow"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(fuzzing)"]