-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
55 lines (47 loc) · 1.51 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
[package]
name = "lenna_ultraface_plugin"
authors = ["Christian <[email protected]>"]
version = "0.1.0"
edition = "2021"
description = "Plugin to detect faces in images."
license = "MIT"
repository = "https://github.com/lenna-project/ultraface-plugin"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["plugin"]
python = [
"lenna_core/python",
"ndarray",
"ndarray-image",
"numpy",
"pyo3",
"pythonize",
]
plugin = []
[dependencies]
image = { version = "0.23", default-features = false, features = [
"png",
"jpeg",
] }
imageproc = { version = "0.22", default-features = false }
lenna_core = { git = "https://github.com/lenna-project/lenna-core", branch = "main" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tract-onnx = { git = "https://github.com/sonos/tract.git", branch = "main" }
pyo3 = { version = "0.14.1", features = ["extension-module"], optional = true }
ndarray = { version = "0.15.3", optional = true }
ndarray-image = { git = "https://github.com/rust-cv/ndarray-image.git", optional = true }
numpy = { version = "0.14.1", optional = true }
pythonize = { version = "0.14.0", optional = true }
[target.wasm32-unknown-unknown.dependencies]
console_error_panic_hook = "0.1"
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
[dev-dependencies]
wasm-bindgen-test = "0.3.0"
[profile.release]
opt-level = "s"
[package.metadata.wasm-pack.profile.release]
wasm-opt = true
[package.metadata.maturin]
classifiers = ["Programming Language :: Python"]