@@ -21,6 +21,7 @@ async-runtime = ["tokio", "hyper-util/tokio"]
21
21
http-listener = [" async-runtime" , " ipnet" , " tracing" , " _hyper-server" ]
22
22
uds-listener = [" http-listener" ]
23
23
push-gateway = [" async-runtime" , " tracing" , " _hyper-client" ]
24
+ protobuf = [" mime" , " prost" , " prost-types" , " prost-build" ]
24
25
_hyper-server = [" http-body-util" , " hyper/server" , " hyper-util/server-auto" ]
25
26
_hyper-client = [
26
27
" http-body-util" ,
@@ -52,12 +53,20 @@ thiserror = { workspace = true }
52
53
tokio = { workspace = true , optional = true }
53
54
tracing = { workspace = true , optional = true }
54
55
56
+ # Protobuf support
57
+ mime = { version = " 0.3" , optional = true }
58
+ prost = { workspace = true , optional = true }
59
+ prost-types = { workspace = true , optional = true }
60
+
55
61
[dev-dependencies ]
56
62
proptest = { workspace = true }
57
63
rand = { workspace = true }
58
64
tracing = { workspace = true }
59
65
tracing-subscriber = { workspace = true , features = [" fmt" ] }
60
66
67
+ [build-dependencies ]
68
+ prost-build = { workspace = true , optional = true }
69
+
61
70
[[example ]]
62
71
name = " prometheus_push_gateway"
63
72
required-features = [" push-gateway" ]
0 commit comments