Skip to content

Commit

Permalink
Fix re-export of TEXT_FORMAT to not require protobuf (#416)
Browse files Browse the repository at this point in the history
A minor change, but previously the root-level re-export of
TEXT_FORMAT would require cfg(feature = "protobuf"), despite
the text export format not requiring protobufs.  Since this is
the only location where TEXT_FORMAT is made public, it should
be exported regardless of protobuf feature availability.

Signed-off-by: Jeremy Rodi <me@telios.dev>
  • Loading branch information
teliosdev committed Oct 11, 2021
1 parent fe0a284 commit 99b6064
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Expand Up @@ -211,7 +211,8 @@ pub use self::encoder::Encoder;
pub use self::encoder::ProtobufEncoder;
pub use self::encoder::TextEncoder;
#[cfg(feature = "protobuf")]
pub use self::encoder::{PROTOBUF_FORMAT, TEXT_FORMAT};
pub use self::encoder::PROTOBUF_FORMAT;
pub use self::encoder::TEXT_FORMAT;
pub use self::errors::{Error, Result};
pub use self::gauge::{Gauge, GaugeVec, IntGauge, IntGaugeVec};
pub use self::histogram::DEFAULT_BUCKETS;
Expand Down

0 comments on commit 99b6064

Please sign in to comment.