Remove duplicated tripod_id.proto
This commit is contained in:
parent
22fbe53710
commit
7a77ec87d3
3 changed files with 4 additions and 21 deletions
|
|
@ -1,9 +1,9 @@
|
|||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
tonic_prost_build::configure()
|
||||
.extern_path(".tripod_id", "::tripod_id::prost::generated")
|
||||
.extern_path(".tripod_id", "::tripod_id::prost")
|
||||
.compile_protos(
|
||||
&["proto/caretta_sync.proto", "proto/caretta_sync.common.proto"],
|
||||
&["proto"]
|
||||
&["proto", "../tripod-id/proto"]
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
syntax = "proto3";
|
||||
package tripod_id;
|
||||
|
||||
// Single size tripod id message
|
||||
message Single {
|
||||
uint32 id = 1;
|
||||
}
|
||||
|
||||
// Double size tripod id message
|
||||
message Double {
|
||||
uint32 id = 1;
|
||||
}
|
||||
|
||||
// Triple size tripod id message
|
||||
message Triple {
|
||||
uint64 id = 1;
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
pub mod generated {
|
||||
include!(concat!(env!("OUT_DIR"), "/fireturtle.tripod_id.rs"));
|
||||
include!(concat!(env!("OUT_DIR"), "/tripod_id.rs"));
|
||||
}
|
||||
|
||||
mod single;
|
||||
|
|
@ -9,7 +9,7 @@ mod triple;
|
|||
pub use generated::*;
|
||||
|
||||
use crate::TripodId;
|
||||
const PACKAGE_NAME: &'static str = "fireturtle.tripod_id";
|
||||
const PACKAGE_NAME: &'static str = "tripod_id";
|
||||
pub type SingleMessage = Single;
|
||||
pub type DoubleMessage = Double;
|
||||
pub type TripleMessage = Triple;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue