-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6105 from habitat-sh/jb/launcher-prost
Convert all of the launcher crates to use prost.
- Loading branch information
Showing
31 changed files
with
671 additions
and
2,922 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
// Inline common build protocols behavior | ||
include!("../libbuild-protocols.rs"); | ||
use prost_build; | ||
|
||
/// Automatically generate Rust code from our protobuf definitions at | ||
/// compile time. | ||
/// | ||
/// Generated code is deposited in `OUT_DIR` and automatically | ||
/// `include!`-ed in our Rust modules, per standard Prost practice. | ||
|
||
fn main() { | ||
protocols::generate_if_feature_enabled(); | ||
let mut config = prost_build::Config::new(); | ||
config.type_attribute(".", "#[derive(Serialize, Deserialize)]"); | ||
config | ||
.compile_protos( | ||
&[ | ||
"protocols/error.proto", | ||
"protocols/launcher.proto", | ||
"protocols/net.proto", | ||
"protocols/supervisor.proto", | ||
], | ||
&["protocols/"], | ||
) | ||
.unwrap() | ||
} |
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,6 @@ | ||
syntax = "proto2"; | ||
|
||
package error; | ||
package launcher.error; | ||
|
||
enum ErrCode { | ||
Unknown = 0; | ||
|
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,6 @@ | ||
syntax = "proto2"; | ||
|
||
package launcher; | ||
package launcher.launcher; | ||
|
||
message Register { | ||
optional string pipe = 1; | ||
|
Oops, something went wrong.