zonedb / zonedb

Public Zone Database
http://zonedb.org
MIT License
228 stars 35 forks source link

WebAssembly support #953

Closed ydnar closed 6 months ago

ydnar commented 6 months ago

This PR adds support for WebAssembly targets, specifically GOARCH=wasm + GOOS=wasip1. This requires Go 1.21, and works with mainline Go as well as TinyGo. Tests are executed on the Wasmtime runner.

In addition, it adds a test matrix to ensure ZoneDB functions correctly on the trailing 3 major versions of Go, currently 1.19, 1.20, and 1.21.