From cd34b812b75f58d3c5b52921499bbd4eebeba5d2 Mon Sep 17 00:00:00 2001 From: beer-1 Date: Mon, 4 Nov 2024 17:54:22 +0900 Subject: [PATCH] minimize prebuild-go items --- tools/generate-bcs-go/src/main.rs | 60 ++++++++++++++++--------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/tools/generate-bcs-go/src/main.rs b/tools/generate-bcs-go/src/main.rs index 5fcd8054..5e307ffb 100644 --- a/tools/generate-bcs-go/src/main.rs +++ b/tools/generate-bcs-go/src/main.rs @@ -1,7 +1,7 @@ use std::{env::current_dir, fs::File}; use serde_generate::{golang::CodeGenerator, CodeGeneratorConfig, Encoding}; -use serde_reflection::{Tracer, TracerConfig}; +use serde_reflection::{Samples, Tracer, TracerConfig}; use initia_move_types::{ account::Account, @@ -23,45 +23,47 @@ use initia_move_types::{ vm_config::InitiaVMConfig, }; use move_core_types::{ - account_address::AccountAddress, identifier::Identifier, - language_storage::{ModuleId, ResourceKey, StructTag, TypeTag}, + language_storage::{ModuleId, ResourceKey, TypeTag}, }; fn main() { let mut tracer = Tracer::new(TracerConfig::default()); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::().unwrap(); - tracer.trace_simple_type::