-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
67 additions
and
48 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
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,2 +1,37 @@ | ||
pub mod google; | ||
mod protobuf; | ||
mod rpc; | ||
pub mod serde; | ||
|
||
/// Includes generated protobuf code. | ||
/// Base path is specified with OUT_DIR environment variable. | ||
#[macro_export] | ||
macro_rules! include_proto { | ||
($package: tt) => { | ||
include!(concat!(env!("OUT_DIR"), concat!("/", $package, ".rs"))); | ||
}; | ||
} | ||
|
||
/// Includes generated protobuf file descriptor set. | ||
#[macro_export] | ||
macro_rules! include_file_descriptor_set { | ||
() => { | ||
include_file_descriptor_set!("fd"); | ||
}; | ||
($name:tt) => { | ||
include_bytes!(concat!(env!("OUT_DIR"), concat!("/", $name, ".fd"))); | ||
}; | ||
} | ||
|
||
#[allow(unused_qualifications)] | ||
pub mod google { | ||
pub mod protobuf { | ||
pub use super::super::protobuf::*; | ||
crate::include_proto!("google.protobuf"); | ||
crate::include_proto!("google.protobuf.plus"); | ||
} | ||
pub mod rpc { | ||
pub use super::super::rpc::*; | ||
crate::include_proto!("google.rpc"); | ||
crate::include_proto!("google.rpc.plus"); | ||
} | ||
} |
4 changes: 1 addition & 3 deletions
4
bomboni_proto/src/google/protobuf/any.rs → bomboni_proto/src/protobuf/any.rs
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
4 changes: 1 addition & 3 deletions
4
bomboni_proto/src/google/protobuf/empty.rs → bomboni_proto/src/protobuf/empty.rs
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
2 changes: 1 addition & 1 deletion
2
...i_proto/src/google/protobuf/field_mask.rs → bomboni_proto/src/protobuf/field_mask.rs
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
mod any; | ||
mod duration; | ||
mod empty; | ||
mod field_mask; | ||
mod timestamp; | ||
mod wrappers; |
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod status; |
2 changes: 1 addition & 1 deletion
2
bomboni_proto/src/google/rpc/status.rs → bomboni_proto/src/rpc/status.rs
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
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 was deleted.
Oops, something went wrong.