@@ -66,8 +66,6 @@ pub struct CompilerTest {
66
66
entrypoint : Option < FunctionIdent > ,
67
67
/// The compiled Wasm component/module
68
68
pub wasm_bytes : Vec < u8 > ,
69
- /// The WIT Rust bindings generated by the wit-bindgen (if Wasm component is compiled)
70
- pub wit_bind : Option < String > ,
71
69
/// The compiled IR
72
70
pub hir : Option < Box < miden_hir:: Program > > ,
73
71
/// The compiled MASM
@@ -147,26 +145,6 @@ impl CompilerTest {
147
145
. to_str ( )
148
146
. unwrap ( )
149
147
. to_string ( ) ;
150
- let wasm_comp_filename = wasm_comp_path
151
- . file_stem ( )
152
- . unwrap ( )
153
- . to_str ( )
154
- . unwrap ( )
155
- . to_string ( ) ;
156
- let target_dir = & wasm_comp_path
157
- . parent ( ) // remove file
158
- . unwrap ( )
159
- . parent ( ) // remove release
160
- . unwrap ( )
161
- . parent ( ) // remove wasm32-wasi (target)
162
- . unwrap ( ) ;
163
- let crate_name_dashed = wasm_comp_filename. replace ( "_" , "-" ) ;
164
- let wit_bind_path = target_dir
165
- . join ( "bindings" )
166
- . join ( crate_name_dashed)
167
- . join ( "bindings.rs" ) ;
168
- dbg ! ( & wit_bind_path) ;
169
- // let wit_bind_str = String::from_utf8(std::fs::read(wit_bind_path).unwrap()).unwrap();
170
148
Self {
171
149
session : default_session ( ) ,
172
150
source : CompilerTestSource :: RustCargo {
@@ -175,7 +153,6 @@ impl CompilerTest {
175
153
} ,
176
154
entrypoint : None ,
177
155
wasm_bytes : fs:: read ( wasm_artifacts. first ( ) . unwrap ( ) ) . unwrap ( ) ,
178
- wit_bind : None ,
179
156
hir : None ,
180
157
ir_masm : None ,
181
158
}
@@ -244,7 +221,6 @@ impl CompilerTest {
244
221
entrypoint : Some ( entrypoint) ,
245
222
hir : None ,
246
223
ir_masm : None ,
247
- wit_bind : None ,
248
224
}
249
225
}
250
226
@@ -259,7 +235,6 @@ impl CompilerTest {
259
235
entrypoint : None ,
260
236
hir : None ,
261
237
ir_masm : None ,
262
- wit_bind : None ,
263
238
}
264
239
}
265
240
@@ -300,7 +275,6 @@ impl CompilerTest {
300
275
entrypoint : Some ( entrypoint) ,
301
276
hir : None ,
302
277
ir_masm : None ,
303
- wit_bind : None ,
304
278
}
305
279
}
306
280
0 commit comments