-
Notifications
You must be signed in to change notification settings - Fork 10
/
Cargo.toml
132 lines (118 loc) · 3.12 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
[workspace]
members = [
"plugins/auth_basic",
"plugins/auth_none",
"plugins/motion",
"plugins/tflite",
"plugins/thumb_scale",
"src/common",
"src/csv",
"src/env",
"src/fs",
"src/handler",
"src/hls",
"src/log",
"src/monitor",
"src/mp4",
"src/plugin",
"src/recdb",
"src/recording",
"src/sentryshot",
"src/web",
"src/rust-embed",
"src/rust-embed/impl",
"src/rust-embed/utils",
]
resolver = "2"
[workspace.package]
version = "0.2.17"
edition = "2021"
rust-version = "1.75"
license = "GPL-2.0+"
[workspace.dependencies]
sentryshot_convert = "0.1.2"
sentryshot_ffmpeg_h264 = "0.2.0"
sentryshot_filter = "0.1.2"
sentryshot_padded_bytes = "0.1.0"
sentryshot_scale = "0.1.2"
sentryshot_util = "0.1.2"
retina = { git = "https://github.com/Curid/retina", branch = "sps" }
async-channel = "2.0.0"
async-trait = "0.1.64"
argon2 = "0.5.0"
axum = { version = "0.7.0", default-features = false, features = ["tokio", "http2", "json", "query", "ws"] }
bytes = "1.4.0"
bytesize = "1.2.0"
chrono = "0.4.24"
console-subscriber = "0.2.0"
criterion = { version="0.5.0", features = ["async_tokio"] }
futures = "0.3.27"
headers = "0.4.0"
http = "1.0.0"
httpdate = "1.0.2"
http-body = "1.0.0"
hyper = "0.14.23"
hyper-rustls = { version ="0.24.1", default-features = false, features = ["tokio-runtime", "webpki-roots", "http1"] }
jpeg-encoder = "0.6.0"
libloading = "0.8.2"
mime_guess = { version = "2.0.4", default-features = false }
pico-args = "0.5.0"
pin-project = "1.0.12"
pretty_assertions = "1.3.0"
pretty-hex = "0.4.0"
rand = "0.8.5"
rand_chacha = "0.3.1"
sha2 = "0.10.8"
serde = { version = "1.0.152", default-features = false, features = ["alloc"] }
serde_json = "1.0.92"
tempfile = "3.3.0"
test-case = "2.2.2"
thiserror = "1.0.38"
toml = { version = "0.8.0", default-features = false, features = ["parse"] }
tokio-util = { version = "0.7.7", features = ["io-util"] }
tower = { version = "0.4.13", default-features = false }
upon = "0.8.0"
url = { version = "2.3.1", features = ["serde"] }
[workspace.dependencies.tokio]
version = "1.29.0"
default-features = false
features = ["fs" ,"macros", "rt-multi-thread", "signal", "sync", "time"]
[workspace.lints.clippy]
pedantic = "warn"
as_conversions = "warn"
dbg_macro = "warn"
empty_structs_with_brackets = "warn"
get_unwrap = "warn"
if_then_some_else_none = "warn"
impl_trait_in_params = "warn"
negative_feature_names = "warn"
pub_without_shorthand = "warn"
rc_mutex = "warn"
redundant_feature_names = "warn"
redundant_type_annotations = "warn"
ref_patterns = "warn"
rest_pat_in_fully_bound_structs = "warn"
str_to_string = "warn"
string_to_string = "warn"
tests_outside_test_module = "warn"
unneeded_field_pattern = "warn"
unseparated_literal_suffix = "warn"
unwrap_used = "warn"
enum_glob_use = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
no_effect_underscore_binding = "allow"
similar_names = "allow"
# Strip plugins to reduce size.
[profile.release.package.auth_basic]
strip = true
[profile.release.package.auth_none]
strip = true
[profile.release.package.motion]
strip = true
[profile.release.package.tflite]
strip = true
[profile.release.package.thumb_scale]
strip = true
[profile.bench]
debug = true