-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
45 lines (36 loc) · 1.13 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
[package]
name = "nanodet-rs"
version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
[features]
# ncnn support
ncnn = ["dep:ncnn-rs"]
# openvino support
openvino = ["dep:openvino"]
# opencv image utilities
opencv = ["dep:opencv"]
# rust image utilities
image = ["dep:image", "dep:imageproc", "dep:rusttype"]
[dependencies]
# Used with feature "ncnn"
ncnn-rs = { git = "https://github.com/tpoisonooo/rust-ncnn", optional = true }
# Used with feature "openvino". Using a fork until #54, #55 and #56 are merged.
openvino = { git = "https://github.com/chemicstry/openvino-rs", optional = true }
# Used with feature "opencv"
opencv = { version = "0.74", optional = true }
# Used with feature "image"
image = { version = "0.24", optional = true }
imageproc = { version = "0.23", optional = true }
rusttype = { version = "0.9", optional = true }
[dev-dependencies]
show-image = { version = "0.13.0", features = ["image"] }
[[example]]
name = "ncnn_image"
required-features = ["ncnn", "image"]
[[example]]
name = "ncnn_opencv"
required-features = ["ncnn", "opencv"]
[[example]]
name = "openvino_opencv"
required-features = ["openvino", "opencv"]