-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
154 lines (126 loc) · 3.42 KB
/
Cargo.toml
File metadata and controls
154 lines (126 loc) · 3.42 KB
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
144
145
146
147
148
149
150
151
152
153
154
[workspace]
resolver = "2"
members = [
"crates/camgrab-cli",
"crates/camgrab-core",
"crates/camgrab-daemon",
]
[workspace.package]
version = "1.0.1"
edition = "2021"
rust-version = "1.75"
license = "MIT"
authors = ["Justin Huang"]
repository = "https://github.com/justinhuangcode/camgrab"
homepage = "https://github.com/justinhuangcode/camgrab"
readme = "README.md"
keywords = ["camera", "rtsp", "onvif", "surveillance", "motion-detection"]
categories = ["multimedia::video", "command-line-utilities"]
description = "A modern CLI tool to capture snapshots, record clips, detect motion, and manage RTSP/ONVIF cameras"
[workspace.dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
toml = "0.8"
# CLI
clap = { version = "4", features = ["derive", "env", "wrap_help"] }
# Error handling
thiserror = "2"
anyhow = "1"
miette = { version = "7", features = ["fancy"] }
# Logging / tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# RTSP (pure Rust)
retina = "0.4"
url = "2"
# Image processing
image = "0.25"
# Cryptography / TLS
tokio-rustls = "0.26"
rustls = "0.23"
# HTTP client (for ONVIF, webhooks, S3)
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json"] }
# XML (for ONVIF SOAP)
quick-xml = { version = "0.37", features = ["serialize"] }
# Time
chrono = { version = "0.4", features = ["serde"] }
# UUID
uuid = { version = "1", features = ["v4", "serde"] }
# File system
dirs = "6"
notify = "7"
# Terminal
colored = "3"
is-terminal = "0.4"
# Base64
base64 = "0.22"
# Rand
rand = "0.8"
# MQTT
rumqttc = "0.24"
# Email
lettre = { version = "0.11", default-features = false, features = ["builder", "tokio1-rustls-tls", "smtp-transport"] }
# S3
rust-s3 = { version = "0.35", default-features = false, features = ["tokio-rustls-tls"] }
# Scheduling
cron = "0.13"
# Async streams
futures = "0.3"
# H.264 decoding
openh264 = { version = "0.9", features = ["source"] }
# Testing
proptest = "1"
[workspace.lints.clippy]
pedantic = { level = "warn", priority = -1 }
module_name_repetitions = "allow"
must_use_candidate = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
cast_possible_truncation = "allow"
cast_sign_loss = "allow"
cast_precision_loss = "allow"
cast_lossless = "allow"
cast_possible_wrap = "allow"
similar_names = "allow"
unreadable_literal = "allow"
doc_markdown = "allow"
needless_pass_by_value = "allow"
float_cmp = "allow"
case_sensitive_file_extension_comparisons = "allow"
double_ended_iterator_last = "allow"
redundant_closure_for_method_calls = "allow"
large_stack_arrays = "allow"
too_many_lines = "allow"
unnecessary_literal_bound = "allow"
needless_continue = "allow"
items_after_statements = "allow"
default_trait_access = "allow"
unnecessary_semicolon = "allow"
io_other_error = "allow"
map_unwrap_or = "allow"
unused_async = "allow"
field_reassign_with_default = "allow"
single_match_else = "allow"
ignored_unit_patterns = "allow"
match_same_arms = "allow"
to_string_in_format_args = "allow"
if_not_else = "allow"
collapsible_str_replace = "allow"
collapsible_else_if = "allow"
manual_let_else = "allow"
uninlined_format_args = "allow"
[workspace.lints.rust]
unsafe_code = "deny"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
strip = true
panic = "abort"
[profile.dev]
opt-level = 0
debug = true