Implement custom fmt::Debug for some prost_build generated structs
Currently implemented for: 1. common.Ipv4Addr 2. common.Ipv6Addr 3. common.UUID
This commit is contained in:
+2
-1
@@ -170,7 +170,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
.type_attribute("common.RpcDescriptor", "#[derive(Hash, Eq)]")
|
||||
.field_attribute(".web.NetworkConfig", "#[serde(default)]")
|
||||
.service_generator(Box::new(rpc_build::ServiceGenerator::new()))
|
||||
.btree_map(["."]);
|
||||
.btree_map(["."])
|
||||
.skip_debug(&[".common.Ipv4Addr", ".common.Ipv6Addr", ".common.UUID"]);
|
||||
|
||||
config.compile_protos(&proto_files, &["src/proto/"])?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user