-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathCargo.toml
47 lines (41 loc) · 1.36 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
[package]
name = "scuffle-metrics"
version = "0.1.1"
edition = "2024"
repository = "https://github.com/scufflecloud/scuffle"
authors = ["Scuffle <[email protected]>"]
readme = "README.md"
documentation = "https://docs.rs/scuffle-metrics"
license = "MIT OR Apache-2.0"
description = "Helper crate to instrument your code with metrics."
keywords = ["metrics", "prometheus", "opentelemetry"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage_nightly)'] }
[dependencies]
prometheus-client = { version = "0.23", optional = true }
opentelemetry = { version = "0.28", default-features = false, features = ["metrics"] }
opentelemetry_sdk = { version = "0.28", default-features = false, features = ["metrics"] }
scuffle-metrics-derive.workspace = true
tracing = { version = "0.1", optional = true }
parking_lot = "0.12"
scuffle-workspace-hack.workspace = true
[dev-dependencies]
insta = "1.42.0"
postcompile = { workspace = true, features = ["prettyplease"] }
[features]
internal-logs = ["dep:tracing"]
prometheus = ["dep:prometheus-client"]
default = ["prometheus"]
tracing = ["internal-logs", "dep:tracing"]
extended-numbers = []
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[package.metadata.xtask.powerset]
additive-features = [
"prometheus",
"tracing",
"extended-numbers",
"internal-logs",
"default",
]