-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make protobuf actually optional (see feature flags)
- Loading branch information
1 parent
acc8f18
commit 3630ab5
Showing
4 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
pub use crate::descriptor::prelude::*; | ||
#[cfg(feature = "macros")] | ||
pub use crate::macros::*; | ||
#[cfg(feature = "protobuf")] | ||
pub use crate::protocol::protobuf::ProtobufEq; | ||
pub use crate::protocol::*; | ||
pub use crate::rw::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ | |
//! ``` | ||
pub mod per; | ||
#[cfg(feature = "protobuf")] | ||
pub mod protobuf; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
mod println; | ||
#[cfg(feature = "protobuf")] | ||
mod proto_read; | ||
#[cfg(feature = "protobuf")] | ||
mod proto_write; | ||
mod uper; | ||
|
||
pub use println::*; | ||
#[cfg(feature = "protobuf")] | ||
pub use proto_read::*; | ||
#[cfg(feature = "protobuf")] | ||
pub use proto_write::*; | ||
pub use uper::*; |