-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
56 lines (51 loc) · 1.66 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
[package]
name = "mixtrics"
description = "One crate for all metrics."
version = "0.0.2"
edition = "2021"
repository = "https://github.com/foyer-rs/mixtrics"
homepage = "https://github.com/foyer-rs/mixtrics"
keywords = ["metric", "metrics", "prometheus", "opentelemetry", "telemetry"]
authors = ["MrCroxx <mrcroxx@outlook.com>"]
license = "Apache-2.0"
readme = "README.md"
[dependencies]
itertools = "0.14"
opentelemetry_0_26 = { package = "opentelemetry", version = "0.26", optional = true }
opentelemetry_0_27 = { package = "opentelemetry", version = "0.27", optional = true }
parking_lot = "0.12"
prometheus = { version = "0.13", optional = true }
prometheus-client_0_22 = { package = "prometheus-client", version = "0.22", optional = true }
prometheus-client_0_23 = { package = "prometheus-client", version = "0.23", optional = true }
[dev-dependencies]
[workspace.lints.rust]
missing_docs = "warn"
[features]
default = []
prometheus = ["dep:prometheus"]
prometheus-client = ["prometheus-client_0_23"]
prometheus-client_0_23 = ["dep:prometheus-client_0_23"]
prometheus-client_0_22 = ["dep:prometheus-client_0_22"]
opentelemetry = ["opentelemetry_0_27"]
opentelemetry_0_27 = ["dep:opentelemetry_0_27"]
opentelemetry_0_26 = ["dep:opentelemetry_0_26"]
test-utils = [
"prometheus",
"prometheus-client",
"prometheus-client_0_23",
"prometheus-client_0_22",
"opentelemetry",
"opentelemetry_0_27",
"opentelemetry_0_26",
]
full = ["test-utils"]
[package.metadata.docs.rs]
features = [
"prometheus",
"prometheus-client",
"prometheus-client_0_22",
"opentelemetry",
"opentelemetry_0_26",
"opentelemetry_0_27",
]
rustdoc-args = ["--cfg", "docsrs"]