ff-encode 0.3.0

Video and audio encoding - the Rust way
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 = "2024"
rust-version = "1.93.0"
name = "ff-encode"
version = "0.3.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 = []

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

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

[[test]]
name = "audio_encoder_tests"
path = "tests/audio_encoder_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 = "image_encoder_tests"
path = "tests/image_encoder_tests.rs"

[[test]]
name = "progress_callback_tests"
path = "tests/progress_callback_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.3.0"

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

[dependencies.log]
version = "0.4.29"

[dependencies.thiserror]
version = "2.0.17"

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

[dev-dependencies.ff-decode]
version = "0.3.0"

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

[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