Skip to content

Commit

Permalink
Fix re-export of TEXT_FORMAT to not require protobuf (tikv#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>
Signed-off-by: Jan Berktold <jberktold@roblox.com>
  • Loading branch information
teliosdev authored and JanBerktold committed Nov 12, 2022
1 parent 50371e3 commit fe0ce0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Expand Up @@ -212,7 +212,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 fe0ce0f

Please sign in to comment.