-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
63 lines (55 loc) · 1.74 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
61
62
63
[package]
name = "lenna_yolo_plugin"
version = "0.1.1"
authors = ["Christian M <[email protected]>"]
edition = "2021"
description = "Yolo object detection"
repository = "https://github.com/lenna-project/yolo-plugin"
license = "MIT"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["plugin", "yolo"]
python = [
"lenna_core/python",
"ndarray",
"ndarray-image",
"numpy",
"pyo3",
"pythonize",
]
plugin = []
yolo = ["tract-onnx"]
yolov8 = ["candle-core", "candle-nn"]
[dependencies]
candle-core = { version = "0.3.2", optional = true }
candle-nn = { version = "0.3.2", optional = true }
float-ord = "0.3.2"
image = { version = "0.24.7", default-features = false, features = [
"png",
"jpeg",
] }
imageproc = { version = "0.23", default-features = false }
kamadak-exif = "0.5"
lenna_core = { git = "https://github.com/lenna-project/lenna-core", branch = "main" }
rusttype = "0.9"
pyo3 = { version = "0.16", features = ["extension-module"], optional = true }
ndarray = { version = "0.15.6", optional = true }
ndarray-image = { git = "https://github.com/rust-cv/ndarray-image.git", optional = true }
numpy = { version = "0.16", optional = true }
pythonize = { version = "0.16", optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tract-onnx = { version = "~0.20.7", optional = true }
[target.wasm32-unknown-unknown.dependencies]
console_error_panic_hook = "0.1"
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
getrandom = { version = "0.2", features = ["js"] }
[dev-dependencies]
wasm-bindgen-test = "0.3.39"
[profile.release]
opt-level = "s"
[package.metadata.wasm-pack.profile.release]
wasm-opt = true
[package.metadata.maturin]
classifiers = ["Programming Language :: Python"]