1[package]
2name = "v_frame"
3version = "0.3.8"
4description = "Video Frame data structures, originally part of rav1e"
5license = "BSD-2-Clause"
6authors = ["Luca Barbato <lu_zero@gentoo.org>"]
7edition = "2021"
8repository = "https://github.com/rust-av/v_frame"
9
10[features]
11serialize = ["serde", "aligned-vec/serde"]
12profiling = ["dep:profiling"]
13tracing = ["profiling", "dep:tracing", "profiling/profile-with-tracing"]
14
15[dependencies]
16num-traits = "0.2"
17serde = { version = "1.0", features = ["derive"], optional = true }
18aligned-vec = "0.5.0"
19
20# Profiling dependencies
21profiling = { version = "1", optional = true }
22tracing = { version = "0.1.40", optional = true }
23
24[[bench]]
25name = "bench"
26harness = false
27
28#
29# WebAssembly/wasm32 target support below
30#
31# There are two main WASM targets:
32# - wasm32-unknown-unknown: Base WebAssembly standard, used in browsers
33# - wasm32-wasi: Newer extension/standard, comes with basic std library,
34# not supported in browsers (yet)
35#
36# Some things work in all WASM configurations, some work only on one of these two,
37# some things don't work on wasm32 at all.
38#
39# wasm32-unknown-unknown requires wasm_bindgen and wasm_bindgen_test to work,
40# but these can cause problems on wasm32-wasi. So we use either
41# - target_arch = "wasm32" for things that (don't) work on all WebAssembly targets or
42# - explicit targetting for wasm32-unknown-unknown or wasm32-wasi.
43# In Cargo.toml, this is done via [target.<target-triple>.dependencies]
44# In code, this is done via cfg(all(target_arch = "wasm32", target_os = "wasi"/"unknown"))
45
46# The rayon feature does not work on any wasm32 target
47[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
48criterion = "0.5"
49
50[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
51criterion = { version = "0.5", default-features = false }
52
53# wasm-bindgen is only needed for wasm32-unknown-unknown and not other wasm32 targets
54[target.wasm32-unknown-unknown.dependencies]
55wasm-bindgen = "0.2"
56
57[target.wasm32-unknown-unknown.dev-dependencies]
58wasm-bindgen-test = "0.3"
59