mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
Move prometheus endpoint spawner from udp to common crate
This commit is contained in:
parent
53af594b3d
commit
4ca73630c4
5 changed files with 83 additions and 62 deletions
|
|
@ -14,6 +14,7 @@ name = "aquatic_common"
|
|||
|
||||
[features]
|
||||
rustls = ["dep:rustls", "rustls-pemfile"]
|
||||
prometheus = ["dep:metrics", "dep:metrics-util", "dep:metrics-exporter-prometheus", "dep:tokio"]
|
||||
|
||||
[dependencies]
|
||||
aquatic_toml_config.workspace = true
|
||||
|
|
@ -34,8 +35,16 @@ serde = { version = "1", features = ["derive"] }
|
|||
simple_logger = { version = "4", features = ["stderr"] }
|
||||
toml = "0.5"
|
||||
|
||||
# Optional
|
||||
glommio = { version = "0.8", optional = true }
|
||||
hwloc = { version = "0.5", optional = true }
|
||||
# rustls feature
|
||||
rustls = { version = "0.22", optional = true }
|
||||
rustls-pemfile = { version = "2", optional = true }
|
||||
|
||||
# prometheus feature
|
||||
metrics = { version = "0.22", optional = true }
|
||||
metrics-util = { version = "0.16", optional = true }
|
||||
metrics-exporter-prometheus = { version = "0.13", optional = true, default-features = false, features = ["http-listener"] }
|
||||
tokio = { version = "1", optional = true, features = ["rt", "net", "time"] }
|
||||
|
||||
# other optional
|
||||
glommio = { version = "0.8", optional = true }
|
||||
hwloc = { version = "0.5", optional = true }
|
||||
Loading…
Add table
Add a link
Reference in a new issue