# 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"
rust-version = "1.74.1"
name = "av-scenechange"
version = "0.14.1"
authors = ["Josh Holmer <jholmer.in@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Estimates frames in a video where a scenecut would be ideal"
readme = "README.md"
license = "MIT"
repository = "https://github.com/rust-av/av-scenechange"

[features]
asm = [
    "nasm-rs",
    "cc",
    "libc",
]
binary = [
    "clap",
    "serialize",
]
default = [
    "binary",
    "asm",
]
devel = [
    "console",
    "fern",
]
ffmpeg = ["ffmpeg-the-third"]
libc = ["dep:libc"]
serialize = [
    "serde",
    "serde_json",
]
tracing = [
    "tracing-subscriber",
    "tracing-chrome",
    "dep:tracing",
]

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

[[bin]]
name = "av-scenechange"
path = "src/main.rs"
required-features = ["binary"]

[dependencies.aligned]
version = "0.4.2"

[dependencies.anyhow]
version = "1.0.56"

[dependencies.arg_enum_proc_macro]
version = "0.3.4"

[dependencies.arrayvec]
version = "0.7.6"

[dependencies.clap]
version = "4.0.22"
features = ["derive"]
optional = true

[dependencies.console]
version = "0.15"
optional = true

[dependencies.fern]
version = "0.7"
optional = true

[dependencies.ffmpeg-the-third]
version = "3.0.0"
features = [
    "codec",
    "format",
]
optional = true
default-features = false

[dependencies.libc]
version = "0.2.172"
optional = true

[dependencies.log]
version = "0.4.14"

[dependencies.num-rational]
version = "0.4.2"
default-features = false

[dependencies.num-traits]
version = "0.2.19"

[dependencies.pastey]
version = "0.1.0"

[dependencies.rayon]
version = "1.10.0"

[dependencies.serde]
version = "1.0.123"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0.62"
optional = true

[dependencies.thiserror]
version = "2.0.12"

[dependencies.tracing]
version = "0.1.40"
optional = true

[dependencies.tracing-chrome]
version = "0.7.1"
optional = true

[dependencies.tracing-subscriber]
version = "0.3.18"
optional = true

[dependencies.v_frame]
version = "0.3.8"

[dependencies.vapoursynth]
version = "0.4.0"
features = [
    "vsscript-functions",
    "vapoursynth-functions",
    "vapoursynth-api-32",
    "vsscript-api-31",
]
optional = true

[dependencies.y4m]
version = "0.8.0"

[build-dependencies.cc]
version = "1.2.23"
features = ["parallel"]
optional = true

[build-dependencies.nasm-rs]
version = "0.3"
features = ["parallel"]
optional = true

[lints.clippy]
inline_always = "warn"
missing_inline_in_public_items = "warn"

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