-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCargo.toml
More file actions
53 lines (47 loc) · 1.71 KB
/
Cargo.toml
File metadata and controls
53 lines (47 loc) · 1.71 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
[package]
name = "fdbexporter"
version = "0.1.0"
edition = "2021"
authors = [ "Alexandre Burgoni <alexandre.burgoni@clever-cloud.com>" ]
description = "A monitoring tool for FoundationDB with exporting capabilities for prometheus"
keywords = ["foundationdb", "monitoring", "metrics", "exporter"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "fdbexporter"
path = "src/lib.rs"
[[bin]]
name = "fdbexporter"
path = "src/main.rs"
required-features = ["binary"]
[features]
default = ["binary", "fdb-7_3"]
binary = [
"dep:tokio",
"dep:hyper",
"dep:hyper-util",
"dep:clap",
"dep:tracing-subscriber",
"dep:http-body-util",
"dep:bytes",
]
fdb-7_1 = ["foundationdb/fdb-7_1"]
fdb-7_3 = ["foundationdb/fdb-7_3"]
[dependencies]
# Core library dependencies (always available)
prometheus = "0.13.3"
tracing = "0.1"
anyhow = "^1.0.76"
serde_json = "1.0"
serde = { version = "1.0", features = ["serde_derive", "std"]}
serde_path_to_error = "0.1"
lazy_static = "1.4.0"
foundationdb = { version = "0.10.0", features = ["embedded-fdb-include"], default-features = false }
url = {version = "2.5.8", features = ["serde"]}
# Binary-specific dependencies (only with "binary" feature)
tokio = { version = "1.35.0", features = ["macros", "rt-multi-thread", "signal", "time"], optional = true }
hyper = { version = "1.1.0", features = ["server", "http1"], optional = true }
hyper-util = { version = "0.1", features = ["full"], optional = true }
clap = { version = "4.4.11", features = ["derive", "env"], optional = true }
tracing-subscriber = { version = "0.3", optional = true }
http-body-util = { version = "0.1.0", optional = true }
bytes = { version = "1.5.0", optional = true }