Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with cargo --target wasm32-wasi produces very small wasm/wat file #17

Open
tpmccallum opened this issue Aug 8, 2020 · 0 comments

Comments

@tpmccallum
Copy link

Hi
If I clone and build wasm-flate using the following command and convert to wat

cargo build --target wasm32-wasi --release --features "strings"
./wasm2wat ~/wasm-flate/target/wasm32-wasi/release/wasm_flate.wasm  -o ~/wasm_flate.wat

The wat file is only about 9 lines long (as shown below).

(module
  (table (;0;) 1 1 funcref)
  (memory (;0;) 16)
  (global (;0;) (mut i32) (i32.const 1048576))
  (global (;1;) i32 (i32.const 1048576))
  (global (;2;) i32 (i32.const 1048576))
  (export "memory" (memory 0))
  (export "__data_end" (global 1))
  (export "__heap_base" (global 2)))

There did not seem to be any errors when compiling as shown below.

cargo build --target wasm32-wasi --release --features "strings"
Finished release [optimized] target(s) in 0.02s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant