[package]
edition = "2024"
rust-version = "1.93.0"
name = "ff-preview"
version = "0.15.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Real-time video/audio preview and proxy workflow"
readme = "README.md"
keywords = [
"video",
"audio",
"ffmpeg",
"preview",
"playback",
]
categories = [
"multimedia::video",
"multimedia::audio",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/itsakeyfut/avio"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
proxy = [
"dep:ff-encode",
"dep:ff-filter",
"dep:ff-pipeline",
]
timeline = ["dep:ff-pipeline"]
tokio = ["dep:tokio"]
[lib]
name = "ff_preview"
path = "src/lib.rs"
[[test]]
name = "av_sync_test"
path = "tests/av_sync_test.rs"
[[test]]
name = "proxy_test"
path = "tests/proxy_test.rs"
required-features = ["proxy"]
[[test]]
name = "rgba_sink_test"
path = "tests/rgba_sink_test.rs"
[[test]]
name = "seek_exact_test"
path = "tests/seek_exact_test.rs"
[[bench]]
name = "preview_bench"
path = "benches/preview_bench.rs"
harness = false
[dependencies.ff-decode]
version = "0.15.0"
[dependencies.ff-encode]
version = "0.15.0"
optional = true
[dependencies.ff-filter]
version = "0.15.0"
optional = true
[dependencies.ff-format]
version = "0.15.0"
[dependencies.ff-pipeline]
version = "0.15.0"
optional = true
[dependencies.ff-probe]
version = "0.15.0"
[dependencies.ff-sys]
version = "0.15.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.15.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