Skip to content

Commit 8ad9687

Browse files
committed
No longer expose hex module from protobuf
1 parent 04b153c commit 8ad9687

5 files changed

Lines changed: 7 additions & 5 deletions

File tree

protobuf-test-common/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ extern crate log;
99
mod test;
1010

1111
pub mod build;
12+
pub mod hex;
1213

1314
pub use test::*;

protobuf-test-common/src/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use protobuf::hex::encode_hex;
2-
use protobuf::hex::decode_hex;
1+
use hex::encode_hex;
2+
use hex::decode_hex;
33

44
use protobuf::*;
55

protobuf-test/src/common/v2/test_basic.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
use protobuf::hex::decode_hex;
2-
31
use protobuf::*;
42

53
use protobuf_test_common::*;
4+
use protobuf_test_common::hex::decode_hex;
65

76
use super::test_basic_pb::*;
87

protobuf/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ pub mod well_known_types;
5555
pub mod ext;
5656

5757
// used by test
58-
pub mod hex;
58+
#[cfg(test)]
59+
#[path = "../../protobuf-test-common/src/hex.rs"]
60+
mod hex;
5961

6062
// used by rust-grpc
6163
pub mod descriptorx;

0 commit comments

Comments
 (0)