@@ -21,6 +21,7 @@ async-runtime = ["tokio", "hyper-util/tokio"]
2121http-listener = [" async-runtime" , " ipnet" , " tracing" , " _hyper-server" ]
2222uds-listener = [" http-listener" ]
2323push-gateway = [" async-runtime" , " tracing" , " _hyper-client" ]
24+ protobuf = [" mime" , " prost" , " prost-types" , " prost-build" ]
2425_hyper-server = [" http-body-util" , " hyper/server" , " hyper-util/server-auto" ]
2526_hyper-client = [
2627 " http-body-util" ,
@@ -52,12 +53,20 @@ thiserror = { workspace = true }
5253tokio = { workspace = true , optional = true }
5354tracing = { workspace = true , optional = true }
5455
56+ # Protobuf support
57+ mime = { version = " 0.3" , optional = true }
58+ prost = { workspace = true , optional = true }
59+ prost-types = { workspace = true , optional = true }
60+
5561[dev-dependencies ]
5662proptest = { workspace = true }
5763rand = { workspace = true }
5864tracing = { workspace = true }
5965tracing-subscriber = { workspace = true , features = [" fmt" ] }
6066
67+ [build-dependencies ]
68+ prost-build = { workspace = true , optional = true }
69+
6170[[example ]]
6271name = " prometheus_push_gateway"
6372required-features = [" push-gateway" ]
0 commit comments