Skip to content

Commit

Permalink
restore old readme content
Browse files Browse the repository at this point in the history
  • Loading branch information
zihehuang committed Sep 5, 2024
1 parent 9a3a085 commit 1844d68
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions sdk/move-bytecode-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,32 @@ This crate builds a WASM binary for the `move-language/move-binary-format` allow
serialization and deserialization in various environments. The main target for this package is
"web".

## Build locally

To build the binary, you need to have Rust installed and then the `wasm-pack`. The installation script [can be found here](https://rustwasm.github.io/wasm-pack/).

Building for test (nodejs) environment - required for tests.
```
pnpm build:dev
```

Building for web environment.
```
pnpm build:release
```

## Running tests

Local tests can only be run on the `dev` build. To run tests, follow these steps:

```
pnpm build:dev
pnpm test
```

## Build Artifacts
Once the build is complete, you can find the build artifacts in the `pkg` subdirectory, including the wasm file

## Applications

This package is a perfect fit for the following applications:
Expand Down

0 comments on commit 1844d68

Please sign in to comment.