-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
143 lines (129 loc) · 3.72 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[package]
name = "ornithology-pi"
version = "0.10.0"
edition = "2021"
authors = ["Christian <chriamue@gmail.com>"]
description = "Capture birds in your garden, running on raspberry pi."
license = "MIT"
readme = "README.md"
repository = "https://github.com/chriamue/ornithology-pi"
build = "build.rs"
[features]
default = ["server", "camera", "yolo", "bt-server"]
full = ["bt-server", "camera", "detect", "hotspot", "server"]
pi = ["bt-server", "camera", "detect", "server"]
bluetooth = ["base64"]
bt-server = ["bluetooth", "bluer"]
webcam = ["camera"]
camera = ["nokhwa/input-native"]
hotspot = ["wifi-rs"]
server = ["axum", "base64", "tower", "tower-http", "webcam"]
window = ["show-image/image"]
detect = [
"camera",
"lenna_core",
"lenna_core",
"lenna_birds_plugin",
"lenna_yolo_plugin",
]
yolo = ["lenna_yolo_plugin?/yolo"]
yolov8 = ["lenna_yolo_plugin?/yolov8"]
[dependencies]
async-trait = "0.1"
atoi = "1.0.0"
base64 = { version = "0.13.1", optional = true }
bluer = { version = "0.16.1", features = ["full"], optional = true }
bytes = "1.5.0"
chrono = "0.4"
figment = { version = "0.10.10", features = ["env", "toml"] }
format-bytes = "0.1"
futures = "0.3"
hyper = "0.14.27"
image = { version = "0.24.7", default-features = false, features = [
"png",
"jpeg",
] }
imageproc = { version = "0.23", default-features = false }
lenna_core = { git = "https://github.com/lenna-project/lenna-core", branch = "main", optional = true }
lenna_birds_plugin = { git = "https://github.com/lenna-project/birds-plugin", branch = "main", optional = true }
lenna_yolo_plugin = { git = "https://github.com/lenna-project/yolo-plugin", branch = "main", default-features = false, optional = true }
log = "0.4"
mime = "0.3.17"
nokhwa = { git = "https://github.com/l1npengtul/nokhwa", branch = "0.10", features = ["output-threaded"], optional = true}
rand = "0.8"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
show-image = { version = "0.10.1", optional = true }
structopt = { version = "0.3" }
uuid = { version = "1", features = ["serde", "v4"] }
pnet = "0.29.0"
pretty_env_logger = "0.5"
axum = { version = "0.6.20", optional = true }
tokio = { version = "1.32", features = ["full"] }
tokio-serde = { version = "0.8", features = [
"bincode",
"cbor",
"json",
"messagepack",
] }
tokio-util = { version = "0.7.9", features = ["io"] }
tower = { version = "0.4", features = ["util"], optional = true }
tower-http = { version = "0.4.4", features = [
"fs",
"trace",
"cors",
], optional = true }
wifi-rs = { git = "https://github.com/tnkemdilim/wifi-rs.git", optional = true }
[package.metadata.deb]
section = "utils"
license-file = ["LICENSE"]
depends = "libc6,libgstreamer-plugins-base1.0-0,gstreamer1.0-plugins-good,$auto"
assets = [
[
"target/release/ornithology-pi",
"usr/bin/",
"755",
],
[
"README.md",
"usr/share/doc/ornithology-pi/README",
"644",
],
[
"ornithology-pi.toml",
"etc/ornithology-pi.toml",
"644",
],
[
"sightings/.gitkeep",
"var/ornithology-pi/sightings/.gitkeep",
"644",
],
]
maintainer-scripts = "debian/"
systemd-units = { enable = false }
############# Examples ####
[[example]]
name = "window"
required-features = ["detect", "window"]
[[example]]
name = "label"
required-features = ["detect"]
[[example]]
name = "crop"
required-features = ["detect"]
[[example]]
name = "bluetooth"
required-features = ["bluetooth"]
[[example]]
name = "bt_gatt_srv"
required-features = ["bluetooth"]
[[example]]
name = "bt_rfcomm_srv"
required-features = ["bluetooth"]
[[example]]
name = "bt_rfcomm_client"
required-features = ["bluetooth"]
[[example]]
name = "hotspot"
required-features = ["hotspot"]