As a part of these steps
carton via Homebrew on macOS (you can also use the
Docker image if you prefer to run the build steps on Linux). Assuming you already have Homebrew
brew install swiftwasm/tap/carton
If you had
carton installed before this, make sure you have version 0.6.1 or greater:
mkdir SwiftWasmApp && cd SwiftWasmApp
carton init --template basic
carton devcan be kept running during development:
Hello, world!output in the console. You can edit the app source code in your favorite editor and save it,
cartonwill immediately rebuild the app and reload all browser tabs that have the app open.
You can also build your project with webpack.js and a manually installed SwiftWasm toolchain. Please see the following sections and the Example directory for more information in this more advanced use case.
Just pass a toolchain archive URL for the latest SwiftWasm 5.3 snapshot appropriate for your platform:
$ swiftenv install https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.3.0-RELEASE/swift-wasm-5.3.0-RELEASE-macos_x86_64.pkg
You can also use the
install-toolchain.sh helper script that uses a hardcoded toolchain snapshot:
$ ./scripts/install-toolchain.sh $ swift --version Swift version 5.3 (swiftlang-5.3.0) Target: x86_64-apple-darwin19.6.0
|Last commit: 4 days ago|
This is a minor patch release that includes updates to our dependencies and minor documentation tweaks.
Merged pull requests: