This repository has been archived by the owner on Jul 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
57 lines (46 loc) · 1.53 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 = ["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-safe = "^0"
flatbuffers = "^23"
image = { version = "^0", default-features = false, optional = true }
imageproc = { version = "^0", default-features = false, optional = true }
regex = { version = "^1", optional = true }
lazy_static = { version = "^1", optional = true }
symphonia-core = { version = "^0", optional = true }
ffmpeg-next = { version = "^6", features = ["static"], optional = true }
[features]
# default is all task types
default = ["audio", "vision", "text"]
audio = ["symphonia-core"]
vision = ["image", "imageproc"]
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"] }
[patch."crates-io"]
ffmpeg-next = { git = "https://github.com/yanghaku/rust-ffmpeg.git", branch = "wasm32-wasi" }