Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.27 KB

INSTALL.md

File metadata and controls

63 lines (43 loc) · 1.27 KB

Steps to Follow

Installation

* create project

```sh
cargo new --lib hello-wasm && cd hello-wasm
```

* edit `Cargo.toml`:

```toml
[lib]
crate-type = ["cdylib"]

[dependencies]
wasm-bindgen = "0.2"
pico-args = "0.3"
libc = "0.2"
```

* install `wasm-pack`:

```sh
cargo install wasm-pack
```

Publish Compiled WASM Code

pnpm version patch && pnpm publish --access public && git push