@@ -100,12 +100,30 @@ fn compile_protos(out_dir: &Path, tmp_dir: &Path) {
100100 let mut config = prost_build:: Config :: default ( ) ;
101101 config. out_dir ( tmp_dir) ;
102102 config
103- . type_attribute ( "ScheduledCorkProposal" , "#[derive(serde::Deserialize, serde::Serialize)]" )
104- . type_attribute ( "AxelarScheduledCorkProposal" , "#[derive(serde::Deserialize, serde::Serialize)]" )
105- . type_attribute ( "AddPublisherProposal" , "#[derive(serde::Deserialize, serde::Serialize)]" )
106- . type_attribute ( "AddManagedCellarIDsProposalWithDeposit" , "#[derive(serde::Deserialize, serde::Serialize)]" )
107- . type_attribute ( "AddAxelarManagedCellarIDsProposalWithDeposit" , "#[derive(serde::Deserialize, serde::Serialize)]" )
108- . type_attribute ( "axelar_cork::CellarIdSet" , "#[derive(serde::Deserialize, serde::Serialize)]" )
103+ . type_attribute (
104+ "ScheduledCorkProposal" ,
105+ "#[derive(serde::Deserialize, serde::Serialize)]" ,
106+ )
107+ . type_attribute (
108+ "AxelarScheduledCorkProposal" ,
109+ "#[derive(serde::Deserialize, serde::Serialize)]" ,
110+ )
111+ . type_attribute (
112+ "AddPublisherProposal" ,
113+ "#[derive(serde::Deserialize, serde::Serialize)]" ,
114+ )
115+ . type_attribute (
116+ "AddManagedCellarIDsProposalWithDeposit" ,
117+ "#[derive(serde::Deserialize, serde::Serialize)]" ,
118+ )
119+ . type_attribute (
120+ "AddAxelarManagedCellarIDsProposalWithDeposit" ,
121+ "#[derive(serde::Deserialize, serde::Serialize)]" ,
122+ )
123+ . type_attribute (
124+ "axelar_cork::CellarIdSet" ,
125+ "#[derive(serde::Deserialize, serde::Serialize)]" ,
126+ )
109127 . compile_protos ( & protos, & proto_include_paths)
110128 . unwrap ( ) ;
111129
@@ -114,9 +132,8 @@ fn compile_protos(out_dir: &Path, tmp_dir: &Path) {
114132 tonic_build:: configure ( )
115133 . build_client ( true )
116134 . build_server ( false )
117- . format ( true )
118135 . out_dir ( tmp_dir)
119- . compile_with_config ( config, & protos, & proto_include_paths)
136+ . compile_protos_with_config ( config, & protos, & proto_include_paths)
120137 . unwrap ( ) ;
121138
122139 copy_generated_files ( tmp_dir, out_dir) ;
0 commit comments