-
Notifications
You must be signed in to change notification settings - Fork 14
/
Cargo.toml
91 lines (82 loc) · 2.79 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
[workspace]
resolver = "2"
members = [
"common/api",
"common/logger",
"common/metrics",
"common/parser",
"common/types",
"collector/common",
"collector/email",
"collector/jmespath",
"collector/json",
"engine/matcher",
"executor/common",
"executor/archive",
"executor/director",
"executor/elasticsearch",
"executor/foreach",
"executor/icinga2",
"executor/logger",
"executor/script",
"executor/smart_monitoring_check_result",
"network/common",
"network/simple",
"spike/rsyslog_collector_writer",
"spike/tornado_events_generator",
"tornado/common",
"tornado/email_collector",
"tornado/engine",
"tornado/engine_api",
"tornado/engine_api_dto",
"tornado/icinga2_collector",
"tornado/nats_json_collector",
"tornado/rsyslog_collector",
"tornado/webhook_collector",
"tornado/sms_collector",
"tornado-input-validation"
]
# Link-time optimization (LTO) is a feature that lets the optimizer run on the entire program at once
# (including all its external crates), instead of just one crate at a time. This can produce better-optimized code
# However, it can take a very long time and use a huge amount of memory during compilation, so it is disabled by default.
[profile.release]
debug = true
#lto = true
[profile.release.package.tornado-input-validation]
opt-level = "z"
debug = false
# To perform a CPU specific build, launch cargo with RUSTFLAGS='-C target-cpu=native'
# E.g.:
# > RUSTFLAGS='-C target-cpu=native' cargo bench
[profile.bench]
debug = true
# When lto is enabled the profiler results are less clear.
# It should be taken into account a performance penalty of at least the 15% without the lto.
#lto = true
[workspace.dependencies]
async-trait = "0.1"
base64 = "0.21"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
lazy_static = "1.4"
maplit = "1.0"
# reqwest features required to enable system level certificates to be used by tracing-elastic-apm
reqwest = { version = "0.11", default-features = false, features = ["json", "rustls-tls-native-roots", "stream"] }
thiserror = "1"
serde = { version = "1.0", features = ['derive'] }
serde_json = "=1.0.84"
serde_path_to_error = "0.1"
log = "0.4"
tracing = "0.1"
tracing-opentelemetry = "0.16"
opentelemetry = { version = "0.16", features = ["rt-tokio"] }
# Important: Always keep the versions of these two in sync in order to prevent
# bugs in the tornado carbon frontend. In case of update rememeber to rebuild also tornado fronted.
regex-syntax = "0.7.4"
regex = "1.9.1"
# These dependencies will probably be updated together.
actix = "0.13"
actix-web = "4.4"
actix-multipart = "0.6"
tracing-actix-web = "0.7"
tokio-util = { version = "0.7", features = ["codec", "compat"] }
tokio = { version = "1.35", features = ["full"] }