-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCargo.toml
171 lines (149 loc) · 2.68 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
[package]
name = "jail_exporter"
version = "0.17.0"
description = "Prometheus exporter for FreeBSD jails."
edition = "2021"
license = "MIT"
readme = "README.md"
homepage = "https://github.com/phyber/jail_exporter"
repository = "https://github.com/phyber/jail_exporter.git"
rust-version = "1.80.1"
resolver = "2"
authors = [
"David O'Rourke <[email protected]>",
]
keywords = [
"exporter",
"freebsd",
"jail",
"metrics",
"prometheus",
]
exclude = [
".cirrus.yml",
".editorconfig",
".gitignore",
".rustfmt.toml",
"Makefile",
"grafana/jail_exporter.json",
"man/jail_exporter.8",
"rc.d/jail_exporter",
]
[profile.release]
lto = true
[features]
default = [
"auth",
"bcrypt_cmd",
"rc_script",
]
# Enables HTTP basic authentication
auth = [
"base64",
"bcrypt",
"serde",
"serde_yaml",
]
# Provides a bcrypt subcommand to assist with hashing passwords for
# authentication
bcrypt_cmd = [
"bcrypt",
"dialoguer",
"rand",
]
# Adds a CLI option to dump out an rc(8) script, useful for users who install
# via `cargo install`.
rc_script = []
[dependencies]
jail = "0.3.0"
parking_lot = "0.12"
prometheus-client = "0.22"
rctl = "0.3.0"
sysctl = "0.6"
tempfile = "3.8.0"
thiserror = "1.0"
tracing = "0.1"
tracing-subscriber = "0.3"
[dependencies.askama]
version = "0.12"
default-features = false
[dependencies.axum]
version = "0.7.2"
default-features = false
features = [
"http1",
"tokio",
"tower-log",
"tracing",
]
[dependencies.base64]
version = "0.22"
default-features = false
optional = true
[dependencies.bcrypt]
version = "0.15.0"
optional = true
[dependencies.clap]
version = "4.4.0"
default-features = false
features = [
"cargo",
"env",
"std",
"wrap_help",
]
[dependencies.dialoguer]
version = "0.11.0"
default-features = false
optional = true
features = [
"password",
]
[dependencies.rand]
version = "0.8"
optional = true
[dependencies.serde]
version = "1.0"
optional = true
features = [
"derive",
]
[dependencies.serde_yaml]
version = "0.9"
optional = true
[dependencies.tokio]
version = "1.32"
features = [
"macros",
"rt-multi-thread",
]
# Features of this crate are selected in the features section above.
[dependencies.tower-http]
version = "0.6"
features = [
"trace",
]
[dependencies.uzers]
version = "0.12"
default-features = false
features = [
"cache",
]
[build-dependencies]
rustc_version = "0.4"
# Used by cargo test
[dev-dependencies]
indoc = "2.0"
once_cell = "1.18.0"
pretty_assertions = "1.4.0"
[dev-dependencies.tower]
version = "0.5"
features = [
"util",
]
[dev-dependencies.uzers]
version = "0.12"
default-features = false
features = [
"mock",
]