| 1 | [package] |
| 2 | name = "v_frame" |
| 3 | version = "0.3.8" |
| 4 | description = "Video Frame data structures, originally part of rav1e" |
| 5 | license = "BSD-2-Clause" |
| 6 | authors = ["Luca Barbato <lu_zero@gentoo.org>" ] |
| 7 | edition = "2021" |
| 8 | repository = "https://github.com/rust-av/v_frame" |
| 9 | |
| 10 | [features] |
| 11 | serialize = ["serde" , "aligned-vec/serde" ] |
| 12 | profiling = ["dep:profiling" ] |
| 13 | tracing = ["profiling" , "dep:tracing" , "profiling/profile-with-tracing" ] |
| 14 | |
| 15 | [dependencies] |
| 16 | num-traits = "0.2" |
| 17 | serde = { version = "1.0" , features = ["derive" ], optional = true } |
| 18 | aligned-vec = "0.5.0" |
| 19 | |
| 20 | # Profiling dependencies |
| 21 | profiling = { version = "1" , optional = true } |
| 22 | tracing = { version = "0.1.40" , optional = true } |
| 23 | |
| 24 | [[bench]] |
| 25 | name = "bench" |
| 26 | harness = 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] |
| 48 | criterion = "0.5" |
| 49 | |
| 50 | [target.'cfg(target_arch = "wasm32")'.dev-dependencies] |
| 51 | criterion = { 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] |
| 55 | wasm-bindgen = "0.2" |
| 56 | |
| 57 | [target.wasm32-unknown-unknown.dev-dependencies] |
| 58 | wasm-bindgen-test = "0.3" |
| 59 | |