File tree 2 files changed +11
-2
lines changed
application/apps/indexer/wasm_plugin/host
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
- use std:: { collections:: VecDeque , path:: Path , usize } ;
1
+ use std:: { collections:: VecDeque , path:: Path } ;
2
2
3
3
use parsers:: Parser ;
4
4
use wasmtime:: {
@@ -130,6 +130,15 @@ impl WasmParser {
130
130
131
131
let component = Component :: from_file ( & engine, wasm_path) ?;
132
132
133
+ let component_types = component. component_type ( ) ;
134
+
135
+ println ! ( "Printing component exports info:" ) ;
136
+ for export_infos in component_types. exports ( & engine) {
137
+ dbg ! ( export_infos) ;
138
+ }
139
+
140
+ println ! ( "----------------------------------------" ) ;
141
+
133
142
let mut linker = Linker :: new ( & engine) ;
134
143
wasmtime_wasi:: add_to_linker_async ( & mut linker) ?;
135
144
Original file line number Diff line number Diff line change 1
- package host : indexer ;
1
+ package host : indexer @ 0.1.0 ;
2
2
3
3
// *** PARSER ***
4
4
// Types definitions and methods provided be the host.
You can’t perform that action at this time.
0 commit comments