direct_play_nice 0.1.0-beta.3

CLI program that converts video files to direct-play-compatible formats.
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 = "direct_play_nice"
version = "0.1.0-beta.3"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI program that converts video files to direct-play-compatible formats."
homepage = "https://github.com/ns-mkusper/direct-play-nice"
documentation = "https://github.com/ns-mkusper/direct-play-nice"
readme = "README.md"
license = "GPL-3.0-only"
repository = "https://github.com/ns-mkusper/direct-play-nice"

[package.metadata.vcpkg]
dependencies = [
    "ffmpeg[x264,vpx,freetype,fontconfig,nvcodec,dav1d]",
    "x264[asm,core]",
]
git = "https://github.com/microsoft/vcpkg.git"
rev = "7147ac1294ef9647e8679e1183ac440a5d0a63b7"

[package.metadata.vcpkg.target.x86_64-pc-windows-msvc]
triplet = "x64-windows-static"
dependencies = [
    "ffmpeg[x264,vpx,freetype,fontconfig,nvcodec,dav1d,qsv,amf]",
    "x264[asm,core]",
]

[package.metadata.vcpkg.target.x86_64-apple-darwin]
triplet = "x64-osx"
dependencies = [
    "ffmpeg[x264,vpx,freetype,fontconfig,dav1d]",
    "x264[asm,core]",
]

[package.metadata.vcpkg.target.aarch64-apple-darwin]
triplet = "arm64-osx"
dependencies = [
    "ffmpeg[x264,vpx,freetype,fontconfig,dav1d]",
    "x264[asm,core]",
]

[features]
ffmpeg-cli-tests = []

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

[[bin]]
name = "direct_play_nice"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "ocr_benchmark"
path = "benches/ocr_benchmark.rs"
harness = false

[[bench]]
name = "transcode_benchmark"
path = "benches/transcode_benchmark.rs"
harness = false

[dependencies.anyhow]
version = "1.0.86"

[dependencies.clap]
version = "4.5.9"
features = ["derive"]

[dependencies.cstr]
version = "0.2.12"

[dependencies.env_logger]
version = "0.11.3"

[dependencies.fs2]
version = "0.4"

[dependencies.image]
version = "0.25"

[dependencies.libc]
version = "0.2"

[dependencies.log]
version = "0.4.22"

[dependencies.ort]
version = "=2.0.0-rc.10"
features = [
    "std",
    "ndarray",
    "tracing",
    "load-dynamic",
]
default-features = false

[dependencies.paddle-ocr-rs]
version = "0.6.1"
default-features = false

[dependencies.roxmltree]
version = "0.20.0"

[dependencies.rsmpeg]
version = "0.18.0"
features = [
    "ffmpeg8",
    "link_vcpkg_ffmpeg",
]
default-features = false

[dependencies.rusty_ffmpeg]
version = "0.16.7"
features = ["link_vcpkg_ffmpeg"]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.shlex]
version = "1.3"

[dependencies.strum]
version = "0.26.3"

[dependencies.strum_macros]
version = "0.26.4"

[dependencies.syslog]
version = "6.1.1"

[dependencies.toml]
version = "0.8.16"

[dependencies.ureq]
version = "2.9.7"
features = ["tls"]

[dependencies.vcpkg]
version = "0.2.15"

[dev-dependencies.assert_cmd]
version = "2.0"

[dev-dependencies.criterion]
version = "0.4"

[dev-dependencies.mockito]
version = "1.7.2"

[dev-dependencies.predicates]
version = "3.1"

[dev-dependencies.strsim]
version = "0.11"

[dev-dependencies.tempfile]
version = "3.10"

[target.'cfg(target_os = "linux")'.dependencies.ort]
version = "=2.0.0-rc.10"
features = ["cuda"]
default-features = false

[target.'cfg(target_os = "windows")'.dependencies.ort]
version = "=2.0.0-rc.10"
features = [
    "cuda",
    "directml",
]
default-features = false

[target.'cfg(target_vendor = "apple")'.dependencies.ort]
version = "=2.0.0-rc.10"
features = ["coreml"]
default-features = false

[profile.dist]
lto = "thin"
inherits = "release"