# 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 = "2024"
rust-version = "1.85"
name = "lvqr-transcode"
version = "0.4.2"
authors = ["Moheeb Zara <hackbuildvideo@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Server-side transcoding for LVQR (Tier 4 item 4.6)"
readme = false
keywords = [
    "lvqr",
    "streaming",
    "transcode",
    "abr",
]
categories = ["multimedia"]
license = "AGPL-3.0-or-later"
repository = "https://github.com/virgilvox/lvqr"
resolver = "2"

[features]
default = []
hw-videotoolbox = ["transcode"]
transcode = [
    "dep:gstreamer",
    "dep:gstreamer-app",
    "dep:gstreamer-video",
    "dep:glib",
]

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

[[test]]
name = "aac_opus_roundtrip"
path = "tests/aac_opus_roundtrip.rs"

[[test]]
name = "software_ladder"
path = "tests/software_ladder.rs"

[[test]]
name = "videotoolbox_ladder"
path = "tests/videotoolbox_ladder.rs"

[dependencies.bytes]
version = "1"

[dependencies.dashmap]
version = "6"

[dependencies.glib]
version = "0.20"
optional = true

[dependencies.gstreamer]
version = "0.23"
optional = true

[dependencies.gstreamer-app]
version = "0.23"
optional = true

[dependencies.gstreamer-video]
version = "0.23"
optional = true

[dependencies.lvqr-fragment]
version = "0.4.2"

[dependencies.metrics]
version = "0.24"

[dependencies.parking_lot]
version = "0.12"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "macros",
    "rt-multi-thread",
    "time",
]
