forked from WasmEdge/mediapipe-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
57 lines (47 loc) · 1.48 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[package]
name = "mediapipe-rs"
version = "0.1.0-dev"
edition = "2021"
authors = ["[email protected]"]
categories = ["Webassembly"]
keywords = ["Webassembly", "wasm", "neural-network", "inference"]
license-file = "LICENSE"
readme = "README.md"
build = "src/build.rs"
documentation = "https://docs.rs/mediapipe-rs"
repository = "https://github.com/WasmEdge/mediapipe-rs"
description = "A Rust library for mediapipe tasks"
publish = true
[package.metadata.docs.rs]
all-features = true
include = [
"LICENSE",
"README.md",
"Cargo.toml",
"/src",
]
[dependencies]
wasi-nn = "0.4.0"
thiserror = "1"
flatbuffers = "^23"
image = { version = "^0", default-features = false, optional = true }
imageproc = { version = "^0", default-features = false, optional = true }
ab_glyph = { version = "^0", optional = true }
regex = { version = "^1", optional = true }
lazy_static = { version = "^1", optional = true }
symphonia-core = { version = "^0", optional = true }
[dependencies.ffmpeg-next]
features = ["static"]
optional = true
git = "https://github.com/yanghaku/rust-ffmpeg.git"
branch = "wasm32-wasi"
[features]
# default is all task types
default = ["audio", "vision", "text"]
audio = ["symphonia-core"]
vision = ["image", "imageproc", "lazy_static", "ab_glyph"]
text = ["regex", "lazy_static"]
ffmpeg = ["ffmpeg-next"]
[dev-dependencies]
image = { version = "^0", default-features = false, features = ["jpeg"] }
symphonia = { version = "^0", default-features = false, features = ["wav", "pcm"] }