-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCargo.toml
122 lines (92 loc) · 2.39 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
[package]
name = "edgerouter-exporter"
description = "Prometheus exporter for EdgeRouter metrics"
version = "2.9.4"
edition = "2021"
authors = ["Chitoku <odango@chitoku.jp>"]
license = "MIT"
[package.metadata.deb]
name = "prometheus-edgerouter-exporter"
depends = ["libc6 (>= 2.23)", "libgcc1", "libssl1.1"]
assets = [["target/release/edgerouter-exporter", "usr/bin/", "755"]]
maintainer-scripts = "debian/"
extended-description = """
This server reads statistics from EdgeOS and exports them via HTTP or HTTPS for
consumption by Prometheus.
"""
[package.metadata.deb.systemd-units]
unit-name = "prometheus-edgerouter-exporter"
enable = false
start = false
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
[features]
default = ["tls"]
tls = ["tls-listener/openssl"]
[dependencies.anyhow]
version = "1.0.95"
[dependencies.atomic-shim]
version = "0.2.0"
[dependencies.axum]
version = "0.8.1"
features = ["http1", "http2", "tokio"]
default-features = false
[dependencies.chrono]
version = "0.4.39"
features = ["clock", "std"]
default-features = false
[dependencies.clap]
version = "4.5.26"
features = ["cargo", "derive", "env", "help", "std", "string", "suggestions", "usage"]
default-features = false
[dependencies.derive_more]
version = "1.0.0"
features = ["as_ref", "constructor", "deref", "deref_mut", "display", "from", "from_str", "into", "into_iterator"]
[dependencies.env_logger]
version = "0.11.6"
[dependencies.futures]
version = "0.3.31"
[dependencies.hyper]
version = "1.5.2"
features = ["server"]
[dependencies.hyper-util]
version = "0.1.10"
features = ["tokio"]
[dependencies.indenter]
version = "0.3.3"
[dependencies.indexmap]
version = "2.7.0"
features = ["serde"]
[dependencies.log]
version = "0.4.25"
[dependencies.nom]
version = "7.1.3"
[dependencies.notify]
version = "8.0.0"
default-features = false
[dependencies.number_prefix]
version = "0.4.0"
[dependencies.openssl]
version = "0.10.68"
[dependencies.prometheus-client]
version = "0.23.1"
[dependencies.rsvici]
version = "0.1.1"
[dependencies.serde]
version = "1.0.217"
features = ["derive"]
[dependencies.tls-listener]
version = "0.10.3"
[dependencies.tokio]
version = "1.43.0"
features = ["macros", "net", "process", "rt-multi-thread"]
[dependencies.tower-service]
version = "0.3.3"
[dev-dependencies.indoc]
version = "2.0.5"
[dev-dependencies.mockall]
version = "0.13.1"
[dev-dependencies.pretty_assertions]
version = "1.4.1"