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
|
[package]
authors = ["overvenus@gmail.com", "siddontang@gmail.com", "vistaswx@gmail.com"]
description = "Prometheus instrumentation library for Rust applications."
documentation = "https://docs.rs/prometheus"
edition = "2018"
homepage = "https://github.com/tikv/rust-prometheus"
keywords = ["prometheus", "metrics"]
license = "Apache-2.0"
name = "prometheus"
readme = "README.md"
repository = "https://github.com/tikv/rust-prometheus"
version = "0.13.4"
[package.metadata.docs.rs]
features = ["nightly"]
[features]
default = ["protobuf"]
gen = ["protobuf-codegen-pure"]
nightly = ["libc"]
process = ["libc", "procfs"]
push = ["reqwest", "libc", "protobuf"]
[dependencies]
cfg-if = "^1.0"
fnv = "^1.0"
lazy_static = "^1.4"
libc = { version = "^0.2", optional = true }
parking_lot = "^0.12"
protobuf = { version = "^2.0", optional = true }
memchr = "^2.3"
reqwest = { version = "^0.12", features = ["blocking"], optional = true }
thiserror = "^1.0"
[target.'cfg(target_os = "linux")'.dependencies]
procfs = { version = "^0.16", optional = true, default-features = false }
[dev-dependencies]
criterion = "0.5"
getopts = "^0.2"
hyper = { version = "^0.14", features = ["server", "http1", "tcp"] }
tokio = { version = "^1.0", features = ["macros", "rt-multi-thread"] }
[build-dependencies]
protobuf-codegen-pure = { version = "^2.0", optional = true }
[workspace]
members = ["static-metric"]
[[bench]]
name = "atomic"
harness = false
[[bench]]
name = "counter"
harness = false
[[bench]]
name = "desc"
harness = false
[[bench]]
name = "gauge"
harness = false
[[bench]]
name = "histogram"
harness = false
[[bench]]
name = "text_encoder"
harness = false
[[example]]
name = "example_push"
required-features = ["push"]
[[example]]
name = "example_process_collector"
required-features = ["process"]
|