#printing

app wasm-info

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

5 releases

0.1.4 Dec 29, 2020
0.1.3 Dec 29, 2020
0.1.2 Nov 28, 2020
0.1.1 Nov 28, 2020
0.1.0 Nov 28, 2020

#136 in #printing

MIT license

6KB
74 lines

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

Dependencies

~370KB
~10K SLoC

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy