# 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.93.0"
name = "ff-encode"
version = "0.13.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Video and audio encoding - the Rust way"
readme = "README.md"
keywords = [
    "video",
    "audio",
    "ffmpeg",
    "media",
    "encode",
]
categories = [
    "multimedia::video",
    "multimedia::audio",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/itsakeyfut/avio"
resolver = "2"

[package.metadata.docs.rs]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["hwaccel"]
gpl = []
hwaccel = []
tokio = ["dep:tokio"]

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

[[example]]
name = "gen_bench_asset"
path = "examples/gen_bench_asset.rs"

[[example]]
name = "list_encoders"
path = "examples/list_encoders.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.ff-format]
version = "0.13.0"

[dependencies.ff-sys]
version = "0.13.0"

[dependencies.log]
version = "0.4.29"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.50.0"
features = [
    "rt",
    "sync",
]
optional = true

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

[dev-dependencies.ff-probe]
version = "0.13.0"

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

[lints.clippy]
expect_used = "warn"
if_not_else = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "warn"
redundant_closure_for_method_calls = "allow"
similar_names = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unwrap_used = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "warn"

[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1
