-
Notifications
You must be signed in to change notification settings - Fork 17
/
Cargo.toml
60 lines (50 loc) · 1.57 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
58
59
60
[package]
name = "mediapipe-rs"
version = "0.1.0-dev"
edition = "2021"
authors = ["bo.yang@smail.nju.edu.cn"]
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
# only build for wasm32-wasi now
default-target = "wasm32-wasi"
targets = ["wasm32-wasi"]
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"] }