Skip to content

Commit 5f8d855

Browse files
author
Ben Sully
committed
Re-export prometheus library
1 parent 3f01cb0 commit 5f8d855

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ use rocket::{
119119
Data, Handler, Request, Response, Route,
120120
};
121121

122+
/// Re-export Prometheus so users can use it without having to explicitly
123+
/// add a specific version to their dependencies, which can result in
124+
/// mysterious compiler error messages.
125+
pub use prometheus;
126+
122127
/// Environment variable used to configure the namespace of metrics exposed
123128
/// by PrometheusMetrics.
124129
const NAMESPACE_ENV_VAR: &str = "ROCKET_PROMETHEUS_NAMESPACE";

0 commit comments

Comments
 (0)