diff options
author | Randy Reddig <[email protected]> | 2024-03-04 10:26:41 -0800 |
---|---|---|
committer | Ron Evans <[email protected]> | 2024-03-27 16:01:40 +0100 |
commit | 8e8ad9004f165716e64676ec534def097594484a (patch) | |
tree | dc2c799469dad10a48bdb12de056387d6d52709a /README.md | |
parent | 62d8cdb218ff4ff37998ad91f9f9e9e146f70271 (diff) | |
download | tinygo-8e8ad9004f165716e64676ec534def097594484a.tar.gz tinygo-8e8ad9004f165716e64676ec534def097594484a.zip |
all: replace target=wasi with target=wasip1
This eliminates the 'wasi' build tag in favor of 'GOOS=wasip1', introduced in Go 1.21.
For backwards compatablity, -target=wasi is a synonym for -target=wasip1.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -41,7 +41,7 @@ tinygo flash -target arduino examples/blinky1 TinyGo is very useful for compiling programs both for use in browsers (WASM) as well as for use on servers and other edge devices (WASI). -TinyGo programs can run in Fastly Compute@Edge (https://developer.fastly.com/learning/compute/go/), Fermyon Spin (https://developer.fermyon.com/spin/go-components), wazero (https://wazero.io/languages/tinygo/) and many other WebAssembly runtimes. +TinyGo programs can run in [Fastly Compute](https://www.fastly.com/documentation/guides/compute/go/), [Fermyon Spin](https://developer.fermyon.com/spin/go-components), [wazero](https://wazero.io/languages/tinygo/) and many other WebAssembly runtimes. Here is a small TinyGo program for use by a WASI host application: @@ -54,14 +54,14 @@ func add(x, y uint32) uint32 { return x + y } -// main is required for the `wasi` target, even if it isn't used. +// main is required for the `wasip1` target, even if it isn't used. func main() {} ``` This compiles the above TinyGo program for use on any WASI runtime: ```shell -tinygo build -o main.wasm -target=wasi main.go +tinygo build -o main.wasm -target=wasip1 main.go ``` ## Installation |