diff --git a/bin/sozo/src/commands/build.rs b/bin/sozo/src/commands/build.rs index 84201833ba..ae5efe8afd 100644 --- a/bin/sozo/src/commands/build.rs +++ b/bin/sozo/src/commands/build.rs @@ -15,10 +15,9 @@ pub struct BuildArgs { #[arg(help = "Generate Typescript bindings.")] pub typescript: bool, - #[arg(long)] - #[arg(help = "Generate Typescript bindings.")] - pub typescript_v2: bool, - + // #[arg(long)] + // #[arg(help = "Generate Typescript bindings.")] + // pub typescript_v2: bool, #[arg(long)] #[arg(help = "Generate Unity bindings.")] pub unity: bool, @@ -44,9 +43,9 @@ impl BuildArgs { builtin_plugins.push(BuiltinPlugins::Typescript); } - if self.typescript_v2 { - builtin_plugins.push(BuiltinPlugins::TypeScriptV2); - } + // if self.typescript_v2 { + // builtin_plugins.push(BuiltinPlugins::TypeScriptV2); + // } if self.unity { builtin_plugins.push(BuiltinPlugins::Unity); @@ -131,7 +130,6 @@ mod tests { bindings_output: "generated".to_string(), typescript: true, unity: true, - typescript_v2: true, stats: true, }; let result = build_args.run(&config); diff --git a/crates/dojo-bindgen/src/lib.rs b/crates/dojo-bindgen/src/lib.rs index ca8e24cd79..5735556721 100644 --- a/crates/dojo-bindgen/src/lib.rs +++ b/crates/dojo-bindgen/src/lib.rs @@ -12,7 +12,7 @@ use error::{BindgenResult, Error}; mod plugins; use plugins::typescript::TypescriptPlugin; -use plugins::typescript_v2::TypeScriptV2Plugin; +// use plugins::typescript_v2::TypeScriptV2Plugin; use plugins::unity::UnityPlugin; use plugins::BuiltinPlugin; pub use plugins::BuiltinPlugins; @@ -86,7 +86,7 @@ impl PluginManager { let builder: Box = match plugin { BuiltinPlugins::Typescript => Box::new(TypescriptPlugin::new()), BuiltinPlugins::Unity => Box::new(UnityPlugin::new()), - BuiltinPlugins::TypeScriptV2 => Box::new(TypeScriptV2Plugin::new()), + // BuiltinPlugins::TypeScriptV2 => Box::new(TypeScriptV2Plugin::new()), }; let files = builder.generate_code(&data).await?; diff --git a/crates/dojo-bindgen/src/plugins/mod.rs b/crates/dojo-bindgen/src/plugins/mod.rs index b603262e44..c7d9a719d5 100644 --- a/crates/dojo-bindgen/src/plugins/mod.rs +++ b/crates/dojo-bindgen/src/plugins/mod.rs @@ -15,7 +15,7 @@ pub mod unity; pub enum BuiltinPlugins { Typescript, Unity, - TypeScriptV2, + // TypeScriptV2, } impl fmt::Display for BuiltinPlugins { @@ -23,7 +23,7 @@ impl fmt::Display for BuiltinPlugins { match self { BuiltinPlugins::Typescript => write!(f, "typescript"), BuiltinPlugins::Unity => write!(f, "unity"), - BuiltinPlugins::TypeScriptV2 => write!(f, "typescript_v2"), + // BuiltinPlugins::TypeScriptV2 => write!(f, "typescript_v2"), } } } diff --git a/crates/dojo-bindgen/src/plugins/typescript_v2/mod.rs b/crates/dojo-bindgen/src/plugins/typescript_v2/mod.rs index 94c046cf24..45850e18d8 100644 --- a/crates/dojo-bindgen/src/plugins/typescript_v2/mod.rs +++ b/crates/dojo-bindgen/src/plugins/typescript_v2/mod.rs @@ -12,9 +12,9 @@ use crate::{DojoContract, DojoData, DojoModel}; pub struct TypeScriptV2Plugin {} impl TypeScriptV2Plugin { - pub fn new() -> Self { - Self {} - } + // pub fn new() -> Self { + // Self {} + // } // Maps cairo types to TypeScript defined types fn map_type(type_name: &str) -> String {