Skip to content

udtrokia/wasm-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasm-info

wasm-info crate downloads LICENSE

This package is a wrapper of the info example of parity-wasm, it's really easy to use.

Example

For example, we write a simple hello, world example in hello_world.rs.

//! A hello world example in rust 
#[no_mangle]
pub fn _start() {
    println!("Hello, world!");
}

Compile and wasm-info it!

$ rustc hello_world.rs --target wasm32-unknown-unknown --crate-type=cdylib
$ wasm-info hello_world.wasm
Module sections: 19
  Types: 17
  Functions: 193
  Tables: 1
  Memories: 1
  Globals: 3
  Exports: 4
    memory
    _start
    __data_end
    __heap_base
  Data size: 5945

LICENSE

MIT

About

A wrapper of parity-wasm for printing information of WASM binary

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages