From 8fdf4732e72c9172b7a939f1d506da5352bfd6f8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 18 Jan 2024 01:18:36 -0700 Subject: [PATCH] doc: add go (non-cgo), tinygo, and wasm instructions --- README.md | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1311e37..7308ad3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,34 @@ -# Build & Test +# Build & Test Go / TinyGo + +```sh +curl https://webi.sh/go | sh +source ~/.config/envman/PATH.env + +go build ./cmd/chiabls +``` + +```sh +curl https://webi.sh/tinygo | sh +source ~/.config/envman/PATH.env + +tinygo build --tags generic ./cmd/chiabls +``` + +## WASM + +```sh +curl https://webi.sh/rust | sh +curl https://webi.sh/tinygo | sh +source ~/.config/envman/PATH.env + +cargo install wasm-opt + +tinygo build --tags generic \ + -o chiabls.wasm -target=wasi \ + ./cmd/chiabls +``` + +# Build & Test CGO ```sh git submodule init