@@ -4,8 +4,8 @@ use anyhow::Result;
4
4
use clap:: { Args , Parser } ;
5
5
use colored:: { ColoredString , Colorize } ;
6
6
use dojo_bindgen:: { BuiltinPlugins , PluginManager } ;
7
- use dojo_world:: local:: { ResourceLocal , WorldLocal } ;
8
7
use dojo_world:: ResourceType ;
8
+ use dojo_world:: local:: { ResourceLocal , WorldLocal } ;
9
9
use scarb:: core:: { Config , Package , TargetKind } ;
10
10
use scarb:: ops:: CompileOpts ;
11
11
use scarb_ui:: args:: { FeaturesSpec , PackagesFilter } ;
@@ -38,6 +38,10 @@ pub struct BuildArgs {
38
38
#[ arg( help = "Generate Unreal Engine bindings." ) ]
39
39
pub unrealengine : bool ,
40
40
41
+ #[ arg( long) ]
42
+ #[ arg( help = "Generate Go bindings." ) ]
43
+ pub golang : bool ,
44
+
41
45
#[ arg( long) ]
42
46
#[ arg( help = "Output directory." , default_value = "bindings" ) ]
43
47
pub bindings_output : String ,
@@ -138,6 +142,10 @@ impl BuildArgs {
138
142
builtin_plugins. push ( BuiltinPlugins :: UnrealEngine ) ;
139
143
}
140
144
145
+ if self . golang {
146
+ builtin_plugins. push ( BuiltinPlugins :: Golang ) ;
147
+ }
148
+
141
149
// Custom plugins are always empty for now.
142
150
let bindgen = PluginManager {
143
151
profile_name : ws. current_profile ( ) . expect ( "Profile expected" ) . to_string ( ) ,
@@ -223,6 +231,7 @@ impl Default for BuildArgs {
223
231
recs : false ,
224
232
unity : false ,
225
233
unrealengine : false ,
234
+ golang : false ,
226
235
bindings_output : "bindings" . to_string ( ) ,
227
236
stats : StatOptions :: default ( ) ,
228
237
packages : None ,
0 commit comments