File tree 3 files changed +1
-43
lines changed
3 files changed +1
-43
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,11 @@ categories = ["wasm"]
11
11
12
12
[features ]
13
13
plugin_internal = []
14
- dump_wat = [" dep:wasmprinter" ]
15
14
16
15
[dependencies ]
17
16
wizer = { workspace = true }
18
17
anyhow = { workspace = true }
19
18
brotli = " 7.0.0"
20
- wasmprinter = { version = " 0.224.0" , optional = true }
21
19
wasmtime = { workspace = true }
22
20
wasmtime-wasi = { workspace = true }
23
21
wasi-common = { workspace = true }
Original file line number Diff line number Diff line change @@ -499,8 +499,6 @@ impl Generator {
499
499
}
500
500
}
501
501
502
- // Run the calling code with the `dump_wat` feature enabled to print the WAT to stdout
503
- //
504
502
// For the example generated WAT, the `bytecode_len` is 137
505
503
// (module
506
504
// (type (;0;) (func))
@@ -582,21 +580,6 @@ impl Generator {
582
580
}
583
581
584
582
let wasm = self . postprocess ( & mut module) ?;
585
- print_wat ( & wasm) ?;
586
583
Ok ( wasm)
587
584
}
588
585
}
589
-
590
- #[ cfg( feature = "dump_wat" ) ]
591
- fn print_wat ( wasm_binary : & [ u8 ] ) -> Result < ( ) > {
592
- println ! (
593
- "Generated WAT: \n {}" ,
594
- wasmprinter:: print_bytes( wasm_binary) ?
595
- ) ;
596
- Ok ( ( ) )
597
- }
598
-
599
- #[ cfg( not( feature = "dump_wat" ) ) ]
600
- fn print_wat ( _wasm_binary : & [ u8 ] ) -> Result < ( ) > {
601
- Ok ( ( ) )
602
- }
You can’t perform that action at this time.
0 commit comments