diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index bc3df268..c33b4dd6 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -443,7 +443,7 @@ jobs: - if: ${{ runner.os == 'Windows' }} name: Run standard library tests - # Ack failures on Windows. https://github.com/tetratelabs/wazero/issues/1410 + # Ack failures on Windows. https://github.com/wasilibs/wazerox/issues/1410 continue-on-error: true run: | GOOS=$(go env GOOS) diff --git a/Makefile b/Makefile index 9917a6b9..671c1e21 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ main_packages := $(sort $(foreach f,$(dir $(main_sources)),$(if $(findstring ./, go_test_options ?= -timeout 300s -ensureCompilerFastest := -ldflags '-X github.com/tetratelabs/wazero/internal/integration_test/vs.ensureCompilerFastest=true' +ensureCompilerFastest := -ldflags '-X github.com/wasilibs/wazerox/internal/integration_test/vs.ensureCompilerFastest=true' .PHONY: bench bench: @go test -run=NONE -benchmem -bench=. ./internal/engine/compiler/... @@ -320,7 +320,7 @@ define go-build @echo "building $1" @# $(go:go=) removes the trailing 'go', so we can insert cross-build variables @$(go:go=) CGO_ENABLED=0 GOOS=$(call go-os,$1) GOARCH=$(call go-arch,$1) go build \ - -ldflags "-s -w -X github.com/tetratelabs/wazero/internal/version.version=$(VERSION)" \ + -ldflags "-s -w -X github.com/wasilibs/wazerox/internal/version.version=$(VERSION)" \ -o $1 $2 ./cmd/wazero @echo build "ok" endef diff --git a/README.md b/README.md index 0f5549e0..d3f90381 100644 --- a/README.md +++ b/README.md @@ -1,124 +1,29 @@ -This repository contains experimental changes to try with wasilibs code. -Do not use it outside the wasilibs organization. +# wazerox: wazero extended with bleeding-edge features and likely bugs -# wazero: the zero dependency WebAssembly runtime for Go developers +[![WebAssembly Core Specification Test](https://github.com/wasilibs/wazerox/actions/workflows/spectest.yaml/badge.svg)](https://github.com/wasilibs/wazerox/actions/workflows/spectest.yaml) [![Go Reference](https://pkg.go.dev/badge/github.com/wasilibs/wazerox.svg)](https://pkg.go.dev/github.com/wasilibs/wazerox) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![WebAssembly Core Specification Test](https://github.com/tetratelabs/wazero/actions/workflows/spectest.yaml/badge.svg)](https://github.com/tetratelabs/wazero/actions/workflows/spectest.yaml) [![Go Reference](https://pkg.go.dev/badge/github.com/tetratelabs/wazero.svg)](https://pkg.go.dev/github.com/tetratelabs/wazero) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[wazero][18] is a wonderful WebAssembly runtime for Go developers with a priority +on stability. This often means it can take time to add new incubating WebAssembly +features or completely non-standard ones - there is only so much a project can +take on. -WebAssembly is a way to safely run code compiled in other languages. Runtimes -execute WebAssembly Modules (Wasm), which are most often binaries with a `.wasm` -extension. +wazerox is a fork with a priority on running code for the wasilibs organization. +The reality is much existing code out there requires features that are not +supported by current WebAssembly or WASI specifications. wazerox allows wasilibs +to continue to provide wrappers with zero usage of cgo. -wazero is a WebAssembly Core Specification [1.0][1] and [2.0][2] compliant -runtime written in Go. It has *zero dependencies*, and doesn't rely on CGO. -This means you can run applications in other languages and still keep cross -compilation. +The additions to wazero should be considered mostly be an implementation detail +of wasilibs libraries. If you have code that requires these extensions to execute, +it is OK to try wazerox, but do expect bugs and best-effort or non-existing support. +It is never a good idea to try this library before trying wazero and see if it +supports your binary, if it does, use wazero. -Import wazero and extend your Go application with code written in any language! +Current extensions include: -## Example +- [WebAssembly Threads][19] +- Stack checkpoint/restore for [wasix][20] exception handling -The best way to learn wazero is by trying one of our [examples](examples/README.md). The -most [basic example](examples/basic) extends a Go application with an addition -function defined in WebAssembly. - -## Runtime - -There are two runtime configurations supported in wazero: _Compiler_ is default: - -By default, ex `wazero.NewRuntime(ctx)`, the Compiler is used if supported. You -can also force the interpreter like so: -```go -r := wazero.NewRuntimeWithConfig(ctx, wazero.NewRuntimeConfigInterpreter()) -``` - -### Interpreter -Interpreter is a naive interpreter-based implementation of Wasm virtual -machine. Its implementation doesn't have any platform (GOARCH, GOOS) specific -code, therefore _interpreter_ can be used for any compilation target available -for Go (such as `riscv64`). - -### Compiler -Compiler compiles WebAssembly modules into machine code ahead of time (AOT), -during `Runtime.CompileModule`. This means your WebAssembly functions execute -natively at runtime. Compiler is faster than Interpreter, often by order of -magnitude (10x) or more. This is done without host-specific dependencies. - -If interested, check out the [RATIONALE.md][8] and help us optimize further! - -### Conformance - -Both runtimes pass WebAssembly Core [1.0][7] and [2.0][14] specification tests -on supported platforms: - -| Runtime | Usage | amd64 | arm64 | others | -|:-----------:|:--------------------------------------:|:-----:|:-----:|:------:| -| Interpreter | `wazero.NewRuntimeConfigInterpreter()` | ✅ | ✅ | ✅ | -| Compiler | `wazero.NewRuntimeConfigCompiler()` | ✅ | ✅ | ❌ | - -## Support Policy - -The below support policy focuses on compatability concerns of those embedding -wazero into their Go applications. - -### wazero - -wazero's [1.0 release][15] happened in March 2023, and is [in use][16] by many -projects and production sites. - -We offer an API stability promise with semantic versioning. In other words, we -promise to not break any exported function signature without incrementing the -major version. This does not mean no innovation: New features and behaviors -happen with a minor version increment, e.g. 1.0.11 to 1.2.0. We also fix bugs -or change internal details with a patch version, e.g. 1.0.0 to 1.0.1. - -You can get the latest version of wazero like this. -```bash -go get github.com/tetratelabs/wazero@latest -``` - -Please give us a [star][17] if you end up using wazero! - -### Go - -wazero has no dependencies except Go, so the only source of conflict in your -project's use of wazero is the Go version. - -wazero follows the same version policy as Go's [Release Policy][10]: two -versions. wazero will ensure these versions work and bugs are valid if there's -an issue with a current Go version. - -Additionally, wazero intentionally delays usage of language or standard library -features one additional version. For example, when Go 1.29 is released, wazero -can use language features or standard libraries added in 1.27. This is a -convenience for embedders who have a slower version policy than Go. However, -only supported Go versions may be used to raise support issues. - -### Platform - -wazero has two runtime modes: Interpreter and Compiler. The only supported operating -systems are ones we test, but that doesn't necessarily mean other operating -system versions won't work. - -We currently test Linux (Ubuntu and scratch), MacOS and Windows as packaged by -[GitHub Actions][11], as well compilation of 32-bit Linux and 64-bit FreeBSD. - -* Interpreter - * Linux is tested on amd64 (native) as well arm64 and riscv64 via emulation. - * MacOS and Windows are only tested on amd64. -* Compiler - * Linux is tested on amd64 (native) as well arm64 via emulation. - * MacOS and Windows are only tested on amd64. - -wazero has no dependencies and doesn't require CGO. This means it can also be -embedded in an application that doesn't use an operating system. This is a main -differentiator between wazero and alternatives. - -We verify zero dependencies by running tests in Docker's [scratch image][12]. -This approach ensures compatibility with any parent image. - ------ -wazero is a registered trademark of Tetrate.io, Inc. in the United States and/or other countries +For further details on the runtime, read about [wazero][18]. [1]: https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/ [2]: https://www.w3.org/TR/2022/WD-wasm-core-2-20220419/ @@ -127,7 +32,7 @@ wazero is a registered trademark of Tetrate.io, Inc. in the United States and/or [6]: https://pkg.go.dev/golang.org/x/sys/unix [7]: https://github.com/WebAssembly/spec/tree/wg-1.0/test/core [8]: internal/engine/compiler/RATIONALE.md -[9]: https://github.com/tetratelabs/wazero/issues/506 +[9]: https://github.com/wasilibs/wazerox/issues/506 [10]: https://go.dev/doc/devel/release [11]: https://github.com/actions/virtual-environments [12]: https://docs.docker.com/develop/develop-images/baseimages/#create-a-simple-parent-image-using-scratch @@ -135,4 +40,7 @@ wazero is a registered trademark of Tetrate.io, Inc. in the United States and/or [14]: https://github.com/WebAssembly/spec/tree/d39195773112a22b245ffbe864bab6d1182ccb06/test/core [15]: https://tetrate.io/blog/introducing-wazero-from-tetrate/ [16]: https://wazero.io/community/users/ -[17]: https://github.com/tetratelabs/wazero/stargazers +[17]: https://github.com/wasilibs/wazerox/stargazers +[18]: https://github.com/testratelabs/wazero +[19]: https://github.com/WebAssembly/threads +[20]: https://wasix.org/ diff --git a/api/features_test.go b/api/features_test.go index fbcbf623..f50a4c53 100644 --- a/api/features_test.go +++ b/api/features_test.go @@ -3,7 +3,7 @@ package api import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) // TestCoreFeatures_ZeroIsInvalid reminds maintainers that a bitset cannot use zero as a flag! diff --git a/api/wasm.go b/api/wasm.go index f611d3ea..f8d5c387 100644 --- a/api/wasm.go +++ b/api/wasm.go @@ -6,7 +6,7 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/internal/internalapi" + "github.com/wasilibs/wazerox/internal/internalapi" ) // ExternType classifies imports and exports with their respective types. diff --git a/api/wasm_test.go b/api/wasm_test.go index ad2c4254..b6bd8d82 100644 --- a/api/wasm_test.go +++ b/api/wasm_test.go @@ -6,7 +6,7 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestExternTypeName(t *testing.T) { diff --git a/builder.go b/builder.go index f64afabd..155f9cee 100644 --- a/builder.go +++ b/builder.go @@ -3,8 +3,8 @@ package wazero import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasm" ) // HostFunctionBuilder defines a host function (in Go), so that a diff --git a/builder_test.go b/builder_test.go index 2e80fe48..6c81e032 100644 --- a/builder_test.go +++ b/builder_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) // TestNewHostModuleBuilder_Compile only covers a few scenarios to avoid duplicating tests in internal/wasm/host_test.go diff --git a/cache.go b/cache.go index 2d1b4e3b..4a778971 100644 --- a/cache.go +++ b/cache.go @@ -10,10 +10,10 @@ import ( goruntime "runtime" "sync" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/version" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/version" + "github.com/wasilibs/wazerox/internal/wasm" ) // CompilationCache reduces time spent compiling (Runtime.CompileModule) the same wasm module. diff --git a/cache_example_test.go b/cache_example_test.go index e40754cc..f727bbc8 100644 --- a/cache_example_test.go +++ b/cache_example_test.go @@ -6,7 +6,7 @@ import ( "log" "os" - "github.com/tetratelabs/wazero" + "github.com/wasilibs/wazerox" ) // This is a basic example of using the file system compilation cache via wazero.NewCompilationCacheWithDir. diff --git a/cache_test.go b/cache_test.go index 628adff9..de05145c 100644 --- a/cache_test.go +++ b/cache_test.go @@ -9,9 +9,9 @@ import ( goruntime "runtime" "testing" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) //go:embed internal/integration_test/vs/testdata/fac.wasm diff --git a/cmd/wazero/Dockerfile b/cmd/wazero/Dockerfile index 7b695ee2..6c472285 100644 --- a/cmd/wazero/Dockerfile +++ b/cmd/wazero/Dockerfile @@ -6,7 +6,7 @@ RUN apk add --no-cache git WORKDIR /build # wazero doesn't publish a Docker image or binary, yet, so build on on demand. -RUN git clone --depth 1 https://github.com/tetratelabs/wazero.git \ +RUN git clone --depth 1 https://github.com/wasilibs/wazerox.git \ && (cd wazero; go build -o wazero -ldflags "-w -s" ./cmd/wazero) # wazero has no dependencies, so it can run on scratch diff --git a/cmd/wazero/README.md b/cmd/wazero/README.md index 483170c9..aa47732c 100644 --- a/cmd/wazero/README.md +++ b/cmd/wazero/README.md @@ -5,7 +5,7 @@ The wazero CLI can be used to execute a standalone WebAssembly binary. ### Installation ```bash -$ go install github.com/tetratelabs/wazero/cmd/wazero@latest +$ go install github.com/wasilibs/wazerox/cmd/wazero@latest ``` ### Usage diff --git a/cmd/wazero/wazero.go b/cmd/wazero/wazero.go index b92a910a..3c4f2209 100644 --- a/cmd/wazero/wazero.go +++ b/cmd/wazero/wazero.go @@ -15,18 +15,18 @@ import ( "strings" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/gojs" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/experimental/sock" - "github.com/tetratelabs/wazero/experimental/sysfs" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/platform" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/version" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/gojs" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/experimental/sock" + "github.com/wasilibs/wazerox/experimental/sysfs" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/platform" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/version" + "github.com/wasilibs/wazerox/sys" ) func main() { diff --git a/cmd/wazero/wazero_test.go b/cmd/wazero/wazero_test.go index c57799de..2dcb07b1 100644 --- a/cmd/wazero/wazero_test.go +++ b/cmd/wazero/wazero_test.go @@ -14,14 +14,14 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/version" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/version" + "github.com/wasilibs/wazerox/sys" ) //go:embed testdata/infinite_loop.wasm diff --git a/config.go b/config.go index 70219b05..a2d45c1a 100644 --- a/config.go +++ b/config.go @@ -10,17 +10,17 @@ import ( "net" "time" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/engine/compiler" - "github.com/tetratelabs/wazero/internal/engine/interpreter" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/platform" - internalsock "github.com/tetratelabs/wazero/internal/sock" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/engine/compiler" + "github.com/wasilibs/wazerox/internal/engine/interpreter" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/platform" + internalsock "github.com/wasilibs/wazerox/internal/sock" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) // RuntimeConfig controls runtime behavior, with the default implementation as @@ -135,7 +135,7 @@ type RuntimeConfig interface { // However, if you use this in tests of a package not named as `main`, then wazero cannot obtain the correct // version of wazero due to the known issue of debug.BuildInfo function: https://github.com/golang/go/issues/33976. // As a consequence, your cache won't contain the correct version information and always be treated as `dev` version. - // To avoid this issue, you can pass -ldflags "-X github.com/tetratelabs/wazero/internal/version.version=foo" when running tests. + // To avoid this issue, you can pass -ldflags "-X github.com/wasilibs/wazerox/internal/version.version=foo" when running tests. WithCompilationCache(CompilationCache) RuntimeConfig // WithCustomSections toggles parsing of "custom sections". Defaults to false. diff --git a/config_example_test.go b/config_example_test.go index c93cef89..55003839 100644 --- a/config_example_test.go +++ b/config_example_test.go @@ -5,8 +5,8 @@ import ( _ "embed" "log" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" ) // This is a basic example of retrieving custom sections using RuntimeConfig.WithCustomSections. diff --git a/config_test.go b/config_test.go index 8b73dd7d..ac26877a 100644 --- a/config_test.go +++ b/config_test.go @@ -7,16 +7,16 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/platform" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/sysfs" - testfs "github.com/tetratelabs/wazero/internal/testing/fs" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/platform" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/sysfs" + testfs "github.com/wasilibs/wazerox/internal/testing/fs" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) func TestRuntimeConfig(t *testing.T) { diff --git a/context_done_example_test.go b/context_done_example_test.go index 76a33847..bc8f801b 100644 --- a/context_done_example_test.go +++ b/context_done_example_test.go @@ -7,7 +7,7 @@ import ( "log" "time" - "github.com/tetratelabs/wazero" + "github.com/wasilibs/wazerox" ) // infiniteLoopWasm exports a function named "infinite_loop" that never exits. diff --git a/example_test.go b/example_test.go index 033e4947..f2fcb222 100644 --- a/example_test.go +++ b/example_test.go @@ -6,8 +6,8 @@ import ( "fmt" "log" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" ) // addWasm was generated by the following: @@ -24,7 +24,7 @@ var addWasm []byte // WASI host imports. // // A complete project that does the same as this is available here: -// https://github.com/tetratelabs/wazero/tree/main/examples/basic +// https://github.com/wasilibs/wazerox/tree/main/examples/basic func Example() { // Choose the context to use for function calls. ctx := context.Background() diff --git a/examples/README.md b/examples/README.md index 5e1d0b43..924623f6 100644 --- a/examples/README.md +++ b/examples/README.md @@ -16,5 +16,5 @@ The following example projects can help you practice WebAssembly with wazero: * [wasi](../imports/wasi_snapshot_preview1/example) - how to use I/O in your WebAssembly modules using WASI (WebAssembly System Interface). -Please [open an issue](https://github.com/tetratelabs/wazero/issues/new) if you +Please [open an issue](https://github.com/wasilibs/wazerox/issues/new) if you would like to see another example. diff --git a/examples/allocation/rust/greet.go b/examples/allocation/rust/greet.go index 3d19eec3..a5cd443e 100644 --- a/examples/allocation/rust/greet.go +++ b/examples/allocation/rust/greet.go @@ -7,8 +7,8 @@ import ( "log" "os" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" ) // greetWasm was compiled using `cargo build --release --target wasm32-unknown-unknown` diff --git a/examples/allocation/rust/greet_test.go b/examples/allocation/rust/greet_test.go index 4a944c86..1164e296 100644 --- a/examples/allocation/rust/greet_test.go +++ b/examples/allocation/rust/greet_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/examples/allocation/tinygo/greet.go b/examples/allocation/tinygo/greet.go index 22d76d64..4d80fadd 100644 --- a/examples/allocation/tinygo/greet.go +++ b/examples/allocation/tinygo/greet.go @@ -7,9 +7,9 @@ import ( "log" "os" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" ) // greetWasm was compiled using `tinygo build -o greet.wasm -scheduler=none --no-debug -target=wasi greet.go` diff --git a/examples/allocation/tinygo/greet_test.go b/examples/allocation/tinygo/greet_test.go index 4a944c86..1164e296 100644 --- a/examples/allocation/tinygo/greet_test.go +++ b/examples/allocation/tinygo/greet_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/examples/allocation/zig/greet.go b/examples/allocation/zig/greet.go index 467dc8e0..ed5072a8 100644 --- a/examples/allocation/zig/greet.go +++ b/examples/allocation/zig/greet.go @@ -8,8 +8,8 @@ import ( "log" "os" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" ) // greetWasm was compiled using `zig build` diff --git a/examples/allocation/zig/greet_test.go b/examples/allocation/zig/greet_test.go index 4a944c86..1164e296 100644 --- a/examples/allocation/zig/greet_test.go +++ b/examples/allocation/zig/greet_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/examples/basic/add.go b/examples/basic/add.go index 93658e9a..1ce84709 100644 --- a/examples/basic/add.go +++ b/examples/basic/add.go @@ -9,8 +9,8 @@ import ( "log" "strconv" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" ) // addWasm was generated by the following: diff --git a/examples/basic/add_test.go b/examples/basic/add_test.go index 49607db8..69ea364c 100644 --- a/examples/basic/add_test.go +++ b/examples/basic/add_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/examples/cli/README.md b/examples/cli/README.md index 0dee07d0..3f7943f8 100644 --- a/examples/cli/README.md +++ b/examples/cli/README.md @@ -4,7 +4,7 @@ This example shows a simple CLI application compiled to WebAssembly and executed with the wazero CLI. ```bash -$ go run github.com/tetratelabs/wazero/cmd/wazero run testdata/cli.wasm 3 4 +$ go run github.com/wasilibs/wazerox/cmd/wazero run testdata/cli.wasm 3 4 ``` The wazero CLI can run stand-alone Wasm binaries, providing access to any diff --git a/examples/cli/cli_test.go b/examples/cli/cli_test.go index fde2c345..c51c66d5 100644 --- a/examples/cli/cli_test.go +++ b/examples/cli/cli_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) //go:embed testdata/cli.wasm diff --git a/examples/concurrent-instantiation/main.go b/examples/concurrent-instantiation/main.go index ee0baa9a..659927ec 100644 --- a/examples/concurrent-instantiation/main.go +++ b/examples/concurrent-instantiation/main.go @@ -7,7 +7,7 @@ import ( "log" "sync" - "github.com/tetratelabs/wazero" + "github.com/wasilibs/wazerox" ) // addWasm was generated by the following: diff --git a/examples/concurrent-instantiation/main_test.go b/examples/concurrent-instantiation/main_test.go index 87eda718..6511abd8 100644 --- a/examples/concurrent-instantiation/main_test.go +++ b/examples/concurrent-instantiation/main_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/examples/import-go/README.md b/examples/import-go/README.md index 1221fb20..e1f7c140 100644 --- a/examples/import-go/README.md +++ b/examples/import-go/README.md @@ -14,7 +14,7 @@ log_i32 >> 21 WebAssembly has neither a mechanism to get the current year, nor one to print to the console, so we define these in Go. Similar to Go, WebAssembly functions are namespaced, into modules instead of packages. Just like Go, only exported functions can be imported into another module. What you'll learn in [age-calculator.go](age-calculator.go), is how to -export functions using [HostModuleBuilder](https://pkg.go.dev/github.com/tetratelabs/wazero#HostModuleBuilder) and how a +export functions using [HostModuleBuilder](https://pkg.go.dev/github.com/wasilibs/wazerox#HostModuleBuilder) and how a WebAssembly module defined in its [text format](https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/#text-format%E2%91%A0) imports it. This only uses the text format for demonstration purposes, to show you what's going on. It is likely, you will use another language to compile a Wasm (WebAssembly Module) binary, such as TinyGo. Regardless of how wasm is @@ -29,4 +29,4 @@ The following examples continue the path of learning about importing and exporti This uses an ad-hoc Go-defined function to print to the console. There is an emerging specification to standardize system calls (similar to Go's [x/sys](https://pkg.go.dev/golang.org/x/sys/unix)) called WebAssembly System Interface [(WASI)](https://github.com/WebAssembly/WASI). While this is not yet a W3C standard, wazero includes a -[wasi package](https://pkg.go.dev/github.com/tetratelabs/wazero/wasi). +[wasi package](https://pkg.go.dev/github.com/wasilibs/wazerox/wasi). diff --git a/examples/import-go/age-calculator.go b/examples/import-go/age-calculator.go index d5bbf0cf..5581f562 100644 --- a/examples/import-go/age-calculator.go +++ b/examples/import-go/age-calculator.go @@ -9,7 +9,7 @@ import ( "strconv" "time" - "github.com/tetratelabs/wazero" + "github.com/wasilibs/wazerox" ) // ageCalculatorWasm was generated by the following: diff --git a/examples/import-go/age-calculator_test.go b/examples/import-go/age-calculator_test.go index 60bb635b..a82ecfb4 100644 --- a/examples/import-go/age-calculator_test.go +++ b/examples/import-go/age-calculator_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/examples/multiple-results/multiple-results.go b/examples/multiple-results/multiple-results.go index 91b9a969..7a828d89 100644 --- a/examples/multiple-results/multiple-results.go +++ b/examples/multiple-results/multiple-results.go @@ -6,8 +6,8 @@ import ( "fmt" "log" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" ) // main implements functions with multiple returns values, using both an diff --git a/examples/multiple-results/multiple-results_test.go b/examples/multiple-results/multiple-results_test.go index 8f4a4bf0..d0a16ada 100644 --- a/examples/multiple-results/multiple-results_test.go +++ b/examples/multiple-results/multiple-results_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/examples/multiple-runtimes/counter.go b/examples/multiple-runtimes/counter.go index 3bfafdee..a57e5f38 100644 --- a/examples/multiple-runtimes/counter.go +++ b/examples/multiple-runtimes/counter.go @@ -7,8 +7,8 @@ import ( "log" "os" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" ) // counterWasm was generated by the following: diff --git a/examples/multiple-runtimes/counter_test.go b/examples/multiple-runtimes/counter_test.go index 19909401..f3a175b3 100644 --- a/examples/multiple-runtimes/counter_test.go +++ b/examples/multiple-runtimes/counter_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/experimental/close.go b/experimental/close.go index 1c37e8c0..bd43b65d 100644 --- a/experimental/close.go +++ b/experimental/close.go @@ -3,7 +3,7 @@ package experimental import ( "context" - "github.com/tetratelabs/wazero/internal/close" + "github.com/wasilibs/wazerox/internal/close" ) // CloseNotifier is a notification hook, invoked when a module is closed. diff --git a/experimental/close_example_test.go b/experimental/close_example_test.go index 59eb08e8..56c54521 100644 --- a/experimental/close_example_test.go +++ b/experimental/close_example_test.go @@ -3,7 +3,7 @@ package experimental_test import ( "context" - "github.com/tetratelabs/wazero/experimental" + "github.com/wasilibs/wazerox/experimental" ) var ctx context.Context diff --git a/experimental/close_test.go b/experimental/close_test.go index 1fe9d8e3..ef3f0751 100644 --- a/experimental/close_test.go +++ b/experimental/close_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/close" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/close" + "github.com/wasilibs/wazerox/internal/testing/require" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/experimental/experimental.go b/experimental/experimental.go index 63fd564d..890b3ea2 100644 --- a/experimental/experimental.go +++ b/experimental/experimental.go @@ -4,7 +4,7 @@ package experimental import ( - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox/api" ) // InternalModule is an api.Module that exposes additional diff --git a/experimental/features.go b/experimental/features.go index 964c201b..87403ab2 100644 --- a/experimental/features.go +++ b/experimental/features.go @@ -1,6 +1,6 @@ package experimental -import "github.com/tetratelabs/wazero/api" +import "github.com/wasilibs/wazerox/api" // CoreFeaturesThreads enables threads instructions ("threads"). // diff --git a/experimental/features_example_test.go b/experimental/features_example_test.go index a720741c..553f1306 100644 --- a/experimental/features_example_test.go +++ b/experimental/features_example_test.go @@ -8,10 +8,10 @@ import ( "runtime" "sync/atomic" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" ) // pthreadWasm was generated by the following: diff --git a/experimental/gojs/README.md b/experimental/gojs/README.md index 0cab3a4c..c8271a16 100644 --- a/experimental/gojs/README.md +++ b/experimental/gojs/README.md @@ -3,7 +3,7 @@ When `GOOS=js` and `GOARCH=wasm`, Go's compiler targets WebAssembly Binary format (%.wasm). -Wazero's "github.com/tetratelabs/wazero/experimental/gojs" package allows you to run +Wazero's "github.com/wasilibs/wazerox/experimental/gojs" package allows you to run a `%.wasm` file compiled by Go. This is similar to what is implemented in [wasm_exec.js][1]. See https://wazero.io/languages/go/ for more. diff --git a/experimental/gojs/example/cat.go b/experimental/gojs/example/cat.go index fbed5f40..2a65cd86 100644 --- a/experimental/gojs/example/cat.go +++ b/experimental/gojs/example/cat.go @@ -8,8 +8,8 @@ import ( "testing/fstest" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/experimental/gojs" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/experimental/gojs" ) // main invokes Wasm compiled via `GOOS=js GOARCH=wasm`, which writes an input diff --git a/experimental/gojs/example/cat_test.go b/experimental/gojs/example/cat_test.go index 76668aff..d2b60df4 100644 --- a/experimental/gojs/example/cat_test.go +++ b/experimental/gojs/example/cat_test.go @@ -7,8 +7,8 @@ import ( "os/exec" "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/experimental/gojs/gojs.go b/experimental/gojs/gojs.go index 4bbef6aa..130efef4 100644 --- a/experimental/gojs/gojs.go +++ b/experimental/gojs/gojs.go @@ -17,12 +17,12 @@ import ( "context" "errors" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs" - internalconfig "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/gojs/run" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs" + internalconfig "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/gojs/run" + "github.com/wasilibs/wazerox/internal/wasm" ) // MustInstantiate calls Instantiate or panics on error. diff --git a/experimental/listener.go b/experimental/listener.go index 64d98e90..ad68c116 100644 --- a/experimental/listener.go +++ b/experimental/listener.go @@ -3,7 +3,7 @@ package experimental import ( "context" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox/api" ) // StackIterator allows iterating on each function of the call stack, starting @@ -25,7 +25,7 @@ type StackIterator interface { // FunctionListenerFactoryKey is a context.Context Value key. Its associated value should be a FunctionListenerFactory. // -// See https://github.com/tetratelabs/wazero/issues/451 +// See https://github.com/wasilibs/wazerox/issues/451 type FunctionListenerFactoryKey struct{} // FunctionListenerFactory returns FunctionListeners to be notified when a diff --git a/experimental/listener_example_test.go b/experimental/listener_example_test.go index 57d346cc..347d0b74 100644 --- a/experimental/listener_example_test.go +++ b/experimental/listener_example_test.go @@ -7,11 +7,10 @@ import ( "log" "sort" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/wasm" ) // listenerWasm was generated by the following: diff --git a/experimental/listener_test.go b/experimental/listener_test.go index c634451b..bee432e5 100644 --- a/experimental/listener_test.go +++ b/experimental/listener_test.go @@ -5,13 +5,13 @@ import ( _ "embed" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/wazerotest" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/wazerotest" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) // compile-time check to ensure recorder implements FunctionListenerFactory diff --git a/experimental/logging/log_listener.go b/experimental/logging/log_listener.go index 04e6d7a4..bcd9a148 100644 --- a/experimental/logging/log_listener.go +++ b/experimental/logging/log_listener.go @@ -5,13 +5,13 @@ import ( "context" "io" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - aslogging "github.com/tetratelabs/wazero/internal/assemblyscript/logging" - gologging "github.com/tetratelabs/wazero/internal/gojs/logging" - "github.com/tetratelabs/wazero/internal/logging" - "github.com/tetratelabs/wazero/internal/wasip1" - wasilogging "github.com/tetratelabs/wazero/internal/wasip1/logging" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + aslogging "github.com/wasilibs/wazerox/internal/assemblyscript/logging" + gologging "github.com/wasilibs/wazerox/internal/gojs/logging" + "github.com/wasilibs/wazerox/internal/logging" + "github.com/wasilibs/wazerox/internal/wasip1" + wasilogging "github.com/wasilibs/wazerox/internal/wasip1/logging" ) type Writer interface { diff --git a/experimental/logging/log_listener_example_test.go b/experimental/logging/log_listener_example_test.go index 5109c15e..ec9a9b41 100644 --- a/experimental/logging/log_listener_example_test.go +++ b/experimental/logging/log_listener_example_test.go @@ -6,10 +6,10 @@ import ( "log" "os" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" ) // listenerWasm was generated by the following: diff --git a/experimental/logging/log_listener_test.go b/experimental/logging/log_listener_test.go index 284cbb94..3144813a 100644 --- a/experimental/logging/log_listener_test.go +++ b/experimental/logging/log_listener_test.go @@ -6,13 +6,13 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/experimental/wazerotest" - "github.com/tetratelabs/wazero/internal/testing/require" - wasi "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/experimental/wazerotest" + "github.com/wasilibs/wazerox/internal/testing/require" + wasi "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/experimental/sock/sock.go b/experimental/sock/sock.go index b39c8891..0b8395e4 100644 --- a/experimental/sock/sock.go +++ b/experimental/sock/sock.go @@ -3,7 +3,7 @@ package sock import ( "context" - "github.com/tetratelabs/wazero/internal/sock" + "github.com/wasilibs/wazerox/internal/sock" ) // Config configures the host to open TCP sockets and allows guest access to diff --git a/experimental/sock/sock_test.go b/experimental/sock/sock_test.go index d81be2d3..9dde9ed0 100644 --- a/experimental/sock/sock_test.go +++ b/experimental/sock/sock_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/experimental/sock" - internalsock "github.com/tetratelabs/wazero/internal/sock" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sock" + internalsock "github.com/wasilibs/wazerox/internal/sock" + "github.com/wasilibs/wazerox/internal/testing/require" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/experimental/sys/dir.go b/experimental/sys/dir.go index 0b997cb8..965ac9e2 100644 --- a/experimental/sys/dir.go +++ b/experimental/sys/dir.go @@ -4,7 +4,7 @@ import ( "fmt" "io/fs" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/sys" ) // FileType is fs.FileMode masked on fs.ModeType. For example, zero is a diff --git a/experimental/sys/file.go b/experimental/sys/file.go index f8f2e5b1..838a4f4a 100644 --- a/experimental/sys/file.go +++ b/experimental/sys/file.go @@ -1,6 +1,6 @@ package sys -import "github.com/tetratelabs/wazero/sys" +import "github.com/wasilibs/wazerox/sys" // File is a writeable fs.File bridge backed by syscall functions needed for ABI // including WASI and runtime.GOOS=js. diff --git a/experimental/sys/fs.go b/experimental/sys/fs.go index 1ce99cef..f9fa5063 100644 --- a/experimental/sys/fs.go +++ b/experimental/sys/fs.go @@ -3,7 +3,7 @@ package sys import ( "io/fs" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/sys" ) // FS is a writeable fs.FS bridge backed by syscall functions needed for ABI diff --git a/experimental/sys/unimplemented.go b/experimental/sys/unimplemented.go index d853d9e8..383beba8 100644 --- a/experimental/sys/unimplemented.go +++ b/experimental/sys/unimplemented.go @@ -3,7 +3,7 @@ package sys import ( "io/fs" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/sys" ) // UnimplementedFS is an FS that returns ENOSYS for all functions, diff --git a/experimental/sysfs/config.go b/experimental/sysfs/config.go index a1609119..b746b4c7 100644 --- a/experimental/sysfs/config.go +++ b/experimental/sysfs/config.go @@ -1,8 +1,8 @@ package sysfs import ( - "github.com/tetratelabs/wazero" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" ) // FSConfig extends wazero.FSConfig, allowing access to the experimental diff --git a/experimental/sysfs/config_example_test.go b/experimental/sysfs/config_example_test.go index 6c54a449..ec1b6f70 100644 --- a/experimental/sysfs/config_example_test.go +++ b/experimental/sysfs/config_example_test.go @@ -4,8 +4,8 @@ import ( "io/fs" "testing/fstest" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/experimental/sysfs" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/experimental/sysfs" ) var moduleConfig wazero.ModuleConfig diff --git a/experimental/sysfs/sysfs.go b/experimental/sysfs/sysfs.go index a5d90f7e..35e7182c 100644 --- a/experimental/sysfs/sysfs.go +++ b/experimental/sysfs/sysfs.go @@ -4,12 +4,12 @@ // The name sysfs was chosen because wazero's public API has a "sys" package, // which was named after https://github.com/golang/sys. // -// This tracked in https://github.com/tetratelabs/wazero/issues/1013 +// This tracked in https://github.com/wasilibs/wazerox/issues/1013 package sysfs import ( - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/sysfs" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/sysfs" ) // AdaptFS adapts the input to sys.FS. Use DirFS instead of adapting an diff --git a/experimental/table/lookup.go b/experimental/table/lookup.go index 7f144401..5c5f5485 100644 --- a/experimental/table/lookup.go +++ b/experimental/table/lookup.go @@ -1,8 +1,8 @@ package table import ( - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasm" ) // LookupFunction tries to get an api.Function from the table instance specified by `tableIndex` and `tableOffset` in the diff --git a/experimental/table/lookup_test.go b/experimental/table/lookup_test.go index 26825ef5..9bae16f7 100644 --- a/experimental/table/lookup_test.go +++ b/experimental/table/lookup_test.go @@ -4,12 +4,12 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/table" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/table" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestLookupFunction(t *testing.T) { diff --git a/experimental/wazerotest/wazerotest.go b/experimental/wazerotest/wazerotest.go index bfbddf78..3ea1f8d2 100644 --- a/experimental/wazerotest/wazerotest.go +++ b/experimental/wazerotest/wazerotest.go @@ -11,9 +11,9 @@ import ( "sync" "sync/atomic" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/sys" ) const ( diff --git a/experimental/wazerotest/wazerotest_test.go b/experimental/wazerotest/wazerotest_test.go index 39f280aa..141fc338 100644 --- a/experimental/wazerotest/wazerotest_test.go +++ b/experimental/wazerotest/wazerotest_test.go @@ -6,7 +6,7 @@ import ( "reflect" "testing" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox/api" ) func TestNewFunction(t *testing.T) { diff --git a/fsconfig.go b/fsconfig.go index c28909e1..3055c62b 100644 --- a/fsconfig.go +++ b/fsconfig.go @@ -3,9 +3,9 @@ package wazero import ( "io/fs" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/sysfs" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/sysfs" ) // FSConfig configures filesystem paths the embedding host allows the wasm diff --git a/fsconfig_example_test.go b/fsconfig_example_test.go index 882e152b..969587e8 100644 --- a/fsconfig_example_test.go +++ b/fsconfig_example_test.go @@ -4,8 +4,6 @@ import ( "embed" "io/fs" "log" - - "github.com/tetratelabs/wazero" ) //go:embed testdata/index.html diff --git a/fsconfig_test.go b/fsconfig_test.go index d4b6c767..a17b9746 100644 --- a/fsconfig_test.go +++ b/fsconfig_test.go @@ -3,10 +3,10 @@ package wazero import ( "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/sysfs" - testfs "github.com/tetratelabs/wazero/internal/testing/fs" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/sysfs" + testfs "github.com/wasilibs/wazerox/internal/testing/fs" + "github.com/wasilibs/wazerox/internal/testing/require" ) // TestFSConfig only tests the cases that change the inputs to sysfs.ValidatePreopens. diff --git a/go.mod b/go.mod index 685fca63..d337137d 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/tetratelabs/wazero +module github.com/wasilibs/wazerox // Floor Go version of wazero (current - 2) go 1.19 diff --git a/imports/README.md b/imports/README.md index b9da880d..cb208266 100644 --- a/imports/README.md +++ b/imports/README.md @@ -10,7 +10,7 @@ languages or shared compiler toolchains. Note: You may not see a language listed here because it either works without host imports, or it uses WASI. Refer to https://wazero.io/languages/ for more. -Please [open an issue](https://github.com/tetratelabs/wazero/issues/new) if you +Please [open an issue](https://github.com/wasilibs/wazerox/issues/new) if you would like to see support for another compiled language or toolchain. ## Overview diff --git a/imports/assemblyscript/assemblyscript.go b/imports/assemblyscript/assemblyscript.go index 5cbe605b..bbadbfdd 100644 --- a/imports/assemblyscript/assemblyscript.go +++ b/imports/assemblyscript/assemblyscript.go @@ -33,13 +33,13 @@ import ( "strings" "unicode/utf16" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - . "github.com/tetratelabs/wazero/internal/assemblyscript" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + . "github.com/wasilibs/wazerox/internal/assemblyscript" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) const ( diff --git a/imports/assemblyscript/assemblyscript_example_test.go b/imports/assemblyscript/assemblyscript_example_test.go index 119a8cbd..f711e671 100644 --- a/imports/assemblyscript/assemblyscript_example_test.go +++ b/imports/assemblyscript/assemblyscript_example_test.go @@ -4,8 +4,8 @@ import ( "context" _ "embed" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/assemblyscript" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/assemblyscript" ) // This shows how to instantiate AssemblyScript's special imports. diff --git a/imports/assemblyscript/assemblyscript_test.go b/imports/assemblyscript/assemblyscript_test.go index f72a7aa7..03d35ae5 100644 --- a/imports/assemblyscript/assemblyscript_test.go +++ b/imports/assemblyscript/assemblyscript_test.go @@ -12,16 +12,16 @@ import ( "testing/iotest" "unicode/utf16" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - . "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - . "github.com/tetratelabs/wazero/internal/assemblyscript" - "github.com/tetratelabs/wazero/internal/testing/proxy" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/u64" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + . "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + . "github.com/wasilibs/wazerox/internal/assemblyscript" + "github.com/wasilibs/wazerox/internal/testing/proxy" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/u64" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/imports/assemblyscript/example/assemblyscript.go b/imports/assemblyscript/example/assemblyscript.go index 20bdd40c..1a10e74e 100644 --- a/imports/assemblyscript/example/assemblyscript.go +++ b/imports/assemblyscript/example/assemblyscript.go @@ -8,8 +8,8 @@ import ( "os" "strconv" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/assemblyscript" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/assemblyscript" ) // asWasm compiled using `npm install && npm run build` diff --git a/imports/assemblyscript/example/assemblyscript_test.go b/imports/assemblyscript/example/assemblyscript_test.go index b8d729c4..acf0f9d0 100644 --- a/imports/assemblyscript/example/assemblyscript_test.go +++ b/imports/assemblyscript/example/assemblyscript_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/imports/emscripten/emscripten.go b/imports/emscripten/emscripten.go index 0e1d1f17..86521aa7 100644 --- a/imports/emscripten/emscripten.go +++ b/imports/emscripten/emscripten.go @@ -16,10 +16,10 @@ import ( "context" "strings" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - internal "github.com/tetratelabs/wazero/internal/emscripten" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + internal "github.com/wasilibs/wazerox/internal/emscripten" + "github.com/wasilibs/wazerox/internal/wasm" ) const i32 = wasm.ValueTypeI32 diff --git a/imports/emscripten/emscripten_example_test.go b/imports/emscripten/emscripten_example_test.go index af322fb9..99668a49 100644 --- a/imports/emscripten/emscripten_example_test.go +++ b/imports/emscripten/emscripten_example_test.go @@ -4,9 +4,9 @@ import ( "context" _ "embed" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/emscripten" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/emscripten" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" ) //go:embed testdata/invoke.wasm diff --git a/imports/emscripten/emscripten_test.go b/imports/emscripten/emscripten_test.go index 8a5e9bfb..ed19fef1 100644 --- a/imports/emscripten/emscripten_test.go +++ b/imports/emscripten/emscripten_test.go @@ -6,15 +6,14 @@ import ( _ "embed" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - internal "github.com/tetratelabs/wazero/internal/emscripten" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + internal "github.com/wasilibs/wazerox/internal/emscripten" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) const ( diff --git a/imports/wasi_snapshot_preview1/args.go b/imports/wasi_snapshot_preview1/args.go index 4c82e95e..6675b1e6 100644 --- a/imports/wasi_snapshot_preview1/args.go +++ b/imports/wasi_snapshot_preview1/args.go @@ -3,10 +3,10 @@ package wasi_snapshot_preview1 import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // argsGet is the WASI function named ArgsGetName that reads command-line diff --git a/imports/wasi_snapshot_preview1/args_test.go b/imports/wasi_snapshot_preview1/args_test.go index fb30640f..95f98dd6 100644 --- a/imports/wasi_snapshot_preview1/args_test.go +++ b/imports/wasi_snapshot_preview1/args_test.go @@ -3,9 +3,9 @@ package wasi_snapshot_preview1_test import ( "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" ) func Test_argsGet(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/clock.go b/imports/wasi_snapshot_preview1/clock.go index 31af9107..5950b022 100644 --- a/imports/wasi_snapshot_preview1/clock.go +++ b/imports/wasi_snapshot_preview1/clock.go @@ -3,10 +3,10 @@ package wasi_snapshot_preview1 import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // clockResGet is the WASI function named ClockResGetName that returns the diff --git a/imports/wasi_snapshot_preview1/clock_test.go b/imports/wasi_snapshot_preview1/clock_test.go index 87879da3..7c5ea61d 100644 --- a/imports/wasi_snapshot_preview1/clock_test.go +++ b/imports/wasi_snapshot_preview1/clock_test.go @@ -4,9 +4,8 @@ import ( _ "embed" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" ) func Test_clockResGet(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/environ.go b/imports/wasi_snapshot_preview1/environ.go index ec8df708..d9c185cd 100644 --- a/imports/wasi_snapshot_preview1/environ.go +++ b/imports/wasi_snapshot_preview1/environ.go @@ -3,10 +3,10 @@ package wasi_snapshot_preview1 import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // environGet is the WASI function named EnvironGetName that reads diff --git a/imports/wasi_snapshot_preview1/environ_test.go b/imports/wasi_snapshot_preview1/environ_test.go index 0ba8efae..bab080cf 100644 --- a/imports/wasi_snapshot_preview1/environ_test.go +++ b/imports/wasi_snapshot_preview1/environ_test.go @@ -3,9 +3,9 @@ package wasi_snapshot_preview1_test import ( "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" ) func Test_environGet(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/example/cat.go b/imports/wasi_snapshot_preview1/example/cat.go index d4bab06c..c3467f5b 100644 --- a/imports/wasi_snapshot_preview1/example/cat.go +++ b/imports/wasi_snapshot_preview1/example/cat.go @@ -8,9 +8,9 @@ import ( "log" "os" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/sys" ) // catFS is an embedded filesystem limited to test.txt diff --git a/imports/wasi_snapshot_preview1/example/cat_test.go b/imports/wasi_snapshot_preview1/example/cat_test.go index 5e68587d..28c01420 100644 --- a/imports/wasi_snapshot_preview1/example/cat_test.go +++ b/imports/wasi_snapshot_preview1/example/cat_test.go @@ -10,8 +10,8 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: @@ -31,7 +31,7 @@ func Test_main(t *testing.T) { // Test_cli ensures the following will work: // -// go run github.com/tetratelabs/wazero/cmd/wazero run -mount=testdata:/ cat.wasm /test.txt +// go run github.com/wasilibs/wazerox/cmd/wazero run -mount=testdata:/ cat.wasm /test.txt func Test_cli(t *testing.T) { tests := []struct { toolchain string diff --git a/imports/wasi_snapshot_preview1/example_test.go b/imports/wasi_snapshot_preview1/example_test.go index 3677a105..15c61c3e 100644 --- a/imports/wasi_snapshot_preview1/example_test.go +++ b/imports/wasi_snapshot_preview1/example_test.go @@ -6,9 +6,9 @@ import ( "fmt" "os" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/sys" ) // exitOnStartWasm was generated by the following: @@ -20,7 +20,7 @@ var exitOnStartWasm []byte // This is an example of how to use WebAssembly System Interface (WASI) with its simplest function: "proc_exit". // -// See https://github.com/tetratelabs/wazero/tree/main/examples/wasi for another example. +// See https://github.com/wasilibs/wazerox/tree/main/examples/wasi for another example. func Example() { // Choose the context to use for function calls. ctx := context.Background() diff --git a/imports/wasi_snapshot_preview1/fs.go b/imports/wasi_snapshot_preview1/fs.go index 9d28ae17..1c90c744 100644 --- a/imports/wasi_snapshot_preview1/fs.go +++ b/imports/wasi_snapshot_preview1/fs.go @@ -9,13 +9,13 @@ import ( "strings" "unsafe" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - socketapi "github.com/tetratelabs/wazero/internal/sock" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" - sysapi "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + socketapi "github.com/wasilibs/wazerox/internal/sock" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" + sysapi "github.com/wasilibs/wazerox/sys" ) // fdAdvise is the WASI function named FdAdviseName which provides file diff --git a/imports/wasi_snapshot_preview1/fs_test.go b/imports/wasi_snapshot_preview1/fs_test.go index fc23e897..2cfe8abd 100644 --- a/imports/wasi_snapshot_preview1/fs_test.go +++ b/imports/wasi_snapshot_preview1/fs_test.go @@ -14,19 +14,19 @@ import ( gofstest "testing/fstest" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/sysfs" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/u64" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" - sysapi "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/sysfs" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/u64" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" + sysapi "github.com/wasilibs/wazerox/sys" ) func Test_fdAdvise(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/fs_unit_test.go b/imports/wasi_snapshot_preview1/fs_unit_test.go index cea9e729..7de41a47 100644 --- a/imports/wasi_snapshot_preview1/fs_unit_test.go +++ b/imports/wasi_snapshot_preview1/fs_unit_test.go @@ -4,12 +4,12 @@ import ( "os" "testing" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/sysfs" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/sysfs" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" ) func Test_maxDirents(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/poll.go b/imports/wasi_snapshot_preview1/poll.go index d09f3024..6d7c3d36 100644 --- a/imports/wasi_snapshot_preview1/poll.go +++ b/imports/wasi_snapshot_preview1/poll.go @@ -4,12 +4,12 @@ import ( "context" "time" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // pollOneoff is the WASI function named PollOneoffName that concurrently diff --git a/imports/wasi_snapshot_preview1/poll_test.go b/imports/wasi_snapshot_preview1/poll_test.go index a5357e79..78589370 100644 --- a/imports/wasi_snapshot_preview1/poll_test.go +++ b/imports/wasi_snapshot_preview1/poll_test.go @@ -7,15 +7,15 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" - sysapi "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" + sysapi "github.com/wasilibs/wazerox/sys" ) func Test_pollOneoff(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/proc.go b/imports/wasi_snapshot_preview1/proc.go index cb0ab487..db11608d 100644 --- a/imports/wasi_snapshot_preview1/proc.go +++ b/imports/wasi_snapshot_preview1/proc.go @@ -3,10 +3,10 @@ package wasi_snapshot_preview1 import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) // procExit is the WASI function named ProcExitName that terminates the diff --git a/imports/wasi_snapshot_preview1/proc_test.go b/imports/wasi_snapshot_preview1/proc_test.go index 074c091e..624a5593 100644 --- a/imports/wasi_snapshot_preview1/proc_test.go +++ b/imports/wasi_snapshot_preview1/proc_test.go @@ -3,10 +3,10 @@ package wasi_snapshot_preview1_test import ( "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/sys" ) func Test_procExit(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/random.go b/imports/wasi_snapshot_preview1/random.go index e4d7ccee..700d7111 100644 --- a/imports/wasi_snapshot_preview1/random.go +++ b/imports/wasi_snapshot_preview1/random.go @@ -4,10 +4,10 @@ import ( "context" "io" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // randomGet is the WASI function named RandomGetName which writes random diff --git a/imports/wasi_snapshot_preview1/random_test.go b/imports/wasi_snapshot_preview1/random_test.go index 46170a94..872aa801 100644 --- a/imports/wasi_snapshot_preview1/random_test.go +++ b/imports/wasi_snapshot_preview1/random_test.go @@ -7,9 +7,9 @@ import ( "testing" "testing/iotest" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" ) func Test_randomGet(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/sched.go b/imports/wasi_snapshot_preview1/sched.go index 86748e6d..36e4506e 100644 --- a/imports/wasi_snapshot_preview1/sched.go +++ b/imports/wasi_snapshot_preview1/sched.go @@ -3,10 +3,10 @@ package wasi_snapshot_preview1 import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // schedYield is the WASI function named SchedYieldName which temporarily diff --git a/imports/wasi_snapshot_preview1/sched_test.go b/imports/wasi_snapshot_preview1/sched_test.go index 5c983546..0f46c3ff 100644 --- a/imports/wasi_snapshot_preview1/sched_test.go +++ b/imports/wasi_snapshot_preview1/sched_test.go @@ -3,9 +3,9 @@ package wasi_snapshot_preview1_test import ( "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" ) func Test_schedYield(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/sock.go b/imports/wasi_snapshot_preview1/sock.go index 756c0d39..95ecae6c 100644 --- a/imports/wasi_snapshot_preview1/sock.go +++ b/imports/wasi_snapshot_preview1/sock.go @@ -3,12 +3,12 @@ package wasi_snapshot_preview1 import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - socketapi "github.com/tetratelabs/wazero/internal/sock" - "github.com/tetratelabs/wazero/internal/sysfs" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + socketapi "github.com/wasilibs/wazerox/internal/sock" + "github.com/wasilibs/wazerox/internal/sysfs" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // sockAccept is the WASI function named SockAcceptName which accepts a new diff --git a/imports/wasi_snapshot_preview1/sock_test.go b/imports/wasi_snapshot_preview1/sock_test.go index 2bafbd37..9bb856f9 100644 --- a/imports/wasi_snapshot_preview1/sock_test.go +++ b/imports/wasi_snapshot_preview1/sock_test.go @@ -7,13 +7,13 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - experimentalsock "github.com/tetratelabs/wazero/experimental/sock" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + experimentalsock "github.com/wasilibs/wazerox/experimental/sock" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_sockAccept(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/sock_unit_test.go b/imports/wasi_snapshot_preview1/sock_unit_test.go index 12f14bf5..4dd4334b 100644 --- a/imports/wasi_snapshot_preview1/sock_unit_test.go +++ b/imports/wasi_snapshot_preview1/sock_unit_test.go @@ -4,10 +4,10 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/sock" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/sock" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" ) func Test_getExtendedWasiFiletype(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/testdata/gotip/wasi.go b/imports/wasi_snapshot_preview1/testdata/gotip/wasi.go index 78fd70ce..734e800b 100644 --- a/imports/wasi_snapshot_preview1/testdata/gotip/wasi.go +++ b/imports/wasi_snapshot_preview1/testdata/gotip/wasi.go @@ -246,7 +246,7 @@ func (e echoOnce) ServeHTTP(w http.ResponseWriter, r *http.Request) { close(e.ch) } -// Reproducer for https://github.com/tetratelabs/wazero/issues/1538 +// Reproducer for https://github.com/wasilibs/wazerox/issues/1538 func mainStdin() error { go func() { time.Sleep(1 * time.Second) diff --git a/imports/wasi_snapshot_preview1/usage_test.go b/imports/wasi_snapshot_preview1/usage_test.go index 88e25e87..63496fa1 100644 --- a/imports/wasi_snapshot_preview1/usage_test.go +++ b/imports/wasi_snapshot_preview1/usage_test.go @@ -6,10 +6,10 @@ import ( _ "embed" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/testing/require" ) // pringArgsWasm was compiled from testdata/wasi_arg.wat diff --git a/imports/wasi_snapshot_preview1/wasi.go b/imports/wasi_snapshot_preview1/wasi.go index 4ef41d50..dc0e2b9a 100644 --- a/imports/wasi_snapshot_preview1/wasi.go +++ b/imports/wasi_snapshot_preview1/wasi.go @@ -20,11 +20,10 @@ import ( "context" "encoding/binary" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // ModuleName is the module name WASI functions are exported into. diff --git a/imports/wasi_snapshot_preview1/wasi_bench_test.go b/imports/wasi_snapshot_preview1/wasi_bench_test.go index ac8ce748..bf61bd1c 100644 --- a/imports/wasi_snapshot_preview1/wasi_bench_test.go +++ b/imports/wasi_snapshot_preview1/wasi_bench_test.go @@ -6,14 +6,14 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/testing/proxy" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/testing/proxy" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // configArgsEnviron ensures the result data are the same between args and ENV. diff --git a/imports/wasi_snapshot_preview1/wasi_stdlib_test.go b/imports/wasi_snapshot_preview1/wasi_stdlib_test.go index 93ac1a56..306aafbf 100644 --- a/imports/wasi_snapshot_preview1/wasi_stdlib_test.go +++ b/imports/wasi_snapshot_preview1/wasi_stdlib_test.go @@ -17,15 +17,15 @@ import ( gofstest "testing/fstest" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - experimentalsock "github.com/tetratelabs/wazero/experimental/sock" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/internal/fstest" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + experimentalsock "github.com/wasilibs/wazerox/experimental/sock" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/internal/fstest" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) // sleepALittle directly slows down test execution. So, use this sparingly and diff --git a/imports/wasi_snapshot_preview1/wasi_stdlib_unix_test.go b/imports/wasi_snapshot_preview1/wasi_stdlib_unix_test.go index 53195d5a..36f16b7b 100644 --- a/imports/wasi_snapshot_preview1/wasi_stdlib_unix_test.go +++ b/imports/wasi_snapshot_preview1/wasi_stdlib_unix_test.go @@ -14,11 +14,11 @@ import ( "syscall" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) func Test_NonblockingFile(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/wasi_test.go b/imports/wasi_snapshot_preview1/wasi_test.go index 5cc50ba9..92719e4b 100644 --- a/imports/wasi_snapshot_preview1/wasi_test.go +++ b/imports/wasi_snapshot_preview1/wasi_test.go @@ -7,15 +7,15 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/testing/proxy" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/testing/proxy" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/sys" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/internal/asm/amd64/assembler.go b/internal/asm/amd64/assembler.go index 015f3eee..88acf07f 100644 --- a/internal/asm/amd64/assembler.go +++ b/internal/asm/amd64/assembler.go @@ -1,7 +1,7 @@ package amd64 import ( - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) // Assembler is the interface used by amd64 compiler. diff --git a/internal/asm/amd64/consts.go b/internal/asm/amd64/consts.go index b196c88e..2451d95d 100644 --- a/internal/asm/amd64/consts.go +++ b/internal/asm/amd64/consts.go @@ -3,7 +3,7 @@ package amd64 import ( "fmt" - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) // AMD64-specific conditional register states. diff --git a/internal/asm/amd64/consts_test.go b/internal/asm/amd64/consts_test.go index 6d9964b3..6553a504 100644 --- a/internal/asm/amd64/consts_test.go +++ b/internal/asm/amd64/consts_test.go @@ -3,8 +3,8 @@ package amd64 import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) // TestInstructionName ensures that all the instruction's name is defined. diff --git a/internal/asm/amd64/impl.go b/internal/asm/amd64/impl.go index 0c81f8c8..abc20cd5 100644 --- a/internal/asm/amd64/impl.go +++ b/internal/asm/amd64/impl.go @@ -6,7 +6,7 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) // nodeImpl implements asm.Node for amd64. diff --git a/internal/asm/amd64/impl_1_test.go b/internal/asm/amd64/impl_1_test.go index b577bd32..735dbdfb 100644 --- a/internal/asm/amd64/impl_1_test.go +++ b/internal/asm/amd64/impl_1_test.go @@ -4,8 +4,8 @@ import ( "strconv" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestNodePool_allocNode(t *testing.T) { diff --git a/internal/asm/amd64/impl_2_test.go b/internal/asm/amd64/impl_2_test.go index 8cb49a33..384efbe7 100644 --- a/internal/asm/amd64/impl_2_test.go +++ b/internal/asm/amd64/impl_2_test.go @@ -3,8 +3,8 @@ package amd64 import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_EncodeNoneToRegister(t *testing.T) { diff --git a/internal/asm/amd64/impl_3_test.go b/internal/asm/amd64/impl_3_test.go index d0db3c86..187344f1 100644 --- a/internal/asm/amd64/impl_3_test.go +++ b/internal/asm/amd64/impl_3_test.go @@ -3,8 +3,8 @@ package amd64 import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_EncodeRegisterToMemory(t *testing.T) { diff --git a/internal/asm/amd64/impl_4_test.go b/internal/asm/amd64/impl_4_test.go index a056e4c3..2e09905b 100644 --- a/internal/asm/amd64/impl_4_test.go +++ b/internal/asm/amd64/impl_4_test.go @@ -4,8 +4,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_encodeConstToRegister(t *testing.T) { diff --git a/internal/asm/amd64/impl_5_test.go b/internal/asm/amd64/impl_5_test.go index bac98753..6cdcfdb0 100644 --- a/internal/asm/amd64/impl_5_test.go +++ b/internal/asm/amd64/impl_5_test.go @@ -5,8 +5,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_EncodeConstToMemory(t *testing.T) { diff --git a/internal/asm/amd64/impl_6_test.go b/internal/asm/amd64/impl_6_test.go index 97dd049a..360452b2 100644 --- a/internal/asm/amd64/impl_6_test.go +++ b/internal/asm/amd64/impl_6_test.go @@ -5,8 +5,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_Assemble_NOPPadding(t *testing.T) { diff --git a/internal/asm/amd64/impl_7_test.go b/internal/asm/amd64/impl_7_test.go index ed012fcb..addca4f6 100644 --- a/internal/asm/amd64/impl_7_test.go +++ b/internal/asm/amd64/impl_7_test.go @@ -5,8 +5,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_Assemble_NOPPadding_fusedJumps(t *testing.T) { diff --git a/internal/asm/amd64/impl_memorylocation_test.go b/internal/asm/amd64/impl_memorylocation_test.go index d7acd3ef..db4530ff 100644 --- a/internal/asm/amd64/impl_memorylocation_test.go +++ b/internal/asm/amd64/impl_memorylocation_test.go @@ -4,8 +4,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestNodeImpl_GetMemoryLocation_errors(t *testing.T) { diff --git a/internal/asm/amd64/impl_staticconst.go b/internal/asm/amd64/impl_staticconst.go index 17a7f228..1f1fc393 100644 --- a/internal/asm/amd64/impl_staticconst.go +++ b/internal/asm/amd64/impl_staticconst.go @@ -4,7 +4,7 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) // defaultMaxDisplacementForConstantPool is the maximum displacement allowed for literal move instructions which access diff --git a/internal/asm/amd64/impl_staticconst_test.go b/internal/asm/amd64/impl_staticconst_test.go index d253d9aa..64dd4ad2 100644 --- a/internal/asm/amd64/impl_staticconst_test.go +++ b/internal/asm/amd64/impl_staticconst_test.go @@ -4,8 +4,8 @@ import ( "encoding/hex" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_CompileStaticConstToRegister(t *testing.T) { diff --git a/internal/asm/arm64/assembler.go b/internal/asm/arm64/assembler.go index b83c8b99..12468b69 100644 --- a/internal/asm/arm64/assembler.go +++ b/internal/asm/arm64/assembler.go @@ -1,7 +1,7 @@ package arm64 import ( - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) // Assembler is the interface for arm64 specific assembler. diff --git a/internal/asm/arm64/consts.go b/internal/asm/arm64/consts.go index 3a9e3cf2..837cbccb 100644 --- a/internal/asm/arm64/consts.go +++ b/internal/asm/arm64/consts.go @@ -3,7 +3,7 @@ package arm64 import ( "fmt" - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) // Arm64-specific register states. diff --git a/internal/asm/arm64/consts_test.go b/internal/asm/arm64/consts_test.go index 93410f38..c4f7215d 100644 --- a/internal/asm/arm64/consts_test.go +++ b/internal/asm/arm64/consts_test.go @@ -3,8 +3,8 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) // TestInstructionName ensures that all the instruction's name is defined. diff --git a/internal/asm/arm64/impl.go b/internal/asm/arm64/impl.go index 874dd17e..360955ac 100644 --- a/internal/asm/arm64/impl.go +++ b/internal/asm/arm64/impl.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) type nodeImpl struct { diff --git a/internal/asm/arm64/impl_1_test.go b/internal/asm/arm64/impl_1_test.go index 982444be..6f8c3fe3 100644 --- a/internal/asm/arm64/impl_1_test.go +++ b/internal/asm/arm64/impl_1_test.go @@ -4,8 +4,8 @@ import ( "encoding/hex" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestNodePool_allocNode(t *testing.T) { diff --git a/internal/asm/arm64/impl_2_test.go b/internal/asm/arm64/impl_2_test.go index 96771503..dd9d7d37 100644 --- a/internal/asm/arm64/impl_2_test.go +++ b/internal/asm/arm64/impl_2_test.go @@ -4,8 +4,8 @@ import ( "encoding/hex" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_EncodeConstToRegister(t *testing.T) { diff --git a/internal/asm/arm64/impl_3_test.go b/internal/asm/arm64/impl_3_test.go index eefbfbc9..bae3ede9 100644 --- a/internal/asm/arm64/impl_3_test.go +++ b/internal/asm/arm64/impl_3_test.go @@ -4,8 +4,8 @@ import ( "encoding/hex" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_EncodeTwoRegistersToRegister(t *testing.T) { diff --git a/internal/asm/arm64/impl_4_test.go b/internal/asm/arm64/impl_4_test.go index cffb0f99..1a992bc6 100644 --- a/internal/asm/arm64/impl_4_test.go +++ b/internal/asm/arm64/impl_4_test.go @@ -6,8 +6,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_encodeJumpToRegister(t *testing.T) { diff --git a/internal/asm/arm64/impl_5_test.go b/internal/asm/arm64/impl_5_test.go index 74161a82..7fbb4c49 100644 --- a/internal/asm/arm64/impl_5_test.go +++ b/internal/asm/arm64/impl_5_test.go @@ -3,8 +3,8 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_EncodeRegisterToMemory(t *testing.T) { diff --git a/internal/asm/arm64/impl_6_test.go b/internal/asm/arm64/impl_6_test.go index 3157af10..7223292b 100644 --- a/internal/asm/arm64/impl_6_test.go +++ b/internal/asm/arm64/impl_6_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_EncodeRelativeJump(t *testing.T) { diff --git a/internal/asm/assembler_test.go b/internal/asm/assembler_test.go index 77993767..d156b3fc 100644 --- a/internal/asm/assembler_test.go +++ b/internal/asm/assembler_test.go @@ -3,7 +3,7 @@ package asm import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestNewStaticConstPool(t *testing.T) { diff --git a/internal/asm/buffer.go b/internal/asm/buffer.go index 0476c380..6dd69b1c 100644 --- a/internal/asm/buffer.go +++ b/internal/asm/buffer.go @@ -5,7 +5,7 @@ import ( "fmt" "unsafe" - "github.com/tetratelabs/wazero/internal/platform" + "github.com/wasilibs/wazerox/internal/platform" ) var zero [16]byte diff --git a/internal/asm/buffer_test.go b/internal/asm/buffer_test.go index 153101b8..e555bf1d 100644 --- a/internal/asm/buffer_test.go +++ b/internal/asm/buffer_test.go @@ -4,8 +4,8 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestCodeSegmentZeroValue(t *testing.T) { diff --git a/internal/assemblyscript/logging/logging.go b/internal/assemblyscript/logging/logging.go index ca59e7af..1130a374 100644 --- a/internal/assemblyscript/logging/logging.go +++ b/internal/assemblyscript/logging/logging.go @@ -1,9 +1,9 @@ package logging import ( - "github.com/tetratelabs/wazero/api" - . "github.com/tetratelabs/wazero/internal/assemblyscript" - "github.com/tetratelabs/wazero/internal/logging" + "github.com/wasilibs/wazerox/api" + . "github.com/wasilibs/wazerox/internal/assemblyscript" + "github.com/wasilibs/wazerox/internal/logging" ) func isProcFunction(fnd api.FunctionDefinition) bool { diff --git a/internal/assemblyscript/logging/logging_test.go b/internal/assemblyscript/logging/logging_test.go index eee82172..420a551d 100644 --- a/internal/assemblyscript/logging/logging_test.go +++ b/internal/assemblyscript/logging/logging_test.go @@ -3,11 +3,11 @@ package logging import ( "testing" - "github.com/tetratelabs/wazero/api" - . "github.com/tetratelabs/wazero/internal/assemblyscript" - "github.com/tetratelabs/wazero/internal/logging" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + . "github.com/wasilibs/wazerox/internal/assemblyscript" + "github.com/wasilibs/wazerox/internal/logging" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) type testFunctionDefinition struct { diff --git a/internal/bitpack/offset_array_test.go b/internal/bitpack/offset_array_test.go index f1d187e3..d7a5172c 100644 --- a/internal/bitpack/offset_array_test.go +++ b/internal/bitpack/offset_array_test.go @@ -5,8 +5,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/bitpack" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/bitpack" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestOffsetArray(t *testing.T) { diff --git a/internal/descriptor/table_test.go b/internal/descriptor/table_test.go index 9713a27a..ec5dc45d 100644 --- a/internal/descriptor/table_test.go +++ b/internal/descriptor/table_test.go @@ -3,8 +3,8 @@ package descriptor_test import ( "testing" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestFileTable(t *testing.T) { diff --git a/internal/emscripten/emscripten.go b/internal/emscripten/emscripten.go index 4492df58..bd19c03d 100644 --- a/internal/emscripten/emscripten.go +++ b/internal/emscripten/emscripten.go @@ -6,9 +6,9 @@ import ( "fmt" "strconv" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) const FunctionNotifyMemoryGrowth = "emscripten_notify_memory_growth" @@ -162,7 +162,7 @@ func (v *InvokeFunc) Call(ctx context.Context, mod api.Module, stack []uint64) { // This ensures if the given name is exported before calling it. In other words, this explicitly checks if an api.Function // returned by api.Module.ExportedFunction is not nil. This is necessary because directly calling a method which is // potentially nil interface can be fatal on some platforms due to a bug? in Go/QEMU. -// See https://github.com/tetratelabs/wazero/issues/1621 +// See https://github.com/wasilibs/wazerox/issues/1621 func callOrPanic(ctx context.Context, m api.Module, name string, stack []uint64) { if f := m.ExportedFunction(name); f != nil { err := f.CallWithStack(ctx, stack) diff --git a/internal/emscripten/emscripten_test.go b/internal/emscripten/emscripten_test.go index daea7b37..a779dd04 100644 --- a/internal/emscripten/emscripten_test.go +++ b/internal/emscripten/emscripten_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/wazerotest" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/wazerotest" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_callOnPanic(t *testing.T) { diff --git a/internal/engine/compiler/RATIONALE.md b/internal/engine/compiler/RATIONALE.md index 9cb7513e..509b3c8e 100644 --- a/internal/engine/compiler/RATIONALE.md +++ b/internal/engine/compiler/RATIONALE.md @@ -28,7 +28,7 @@ Before this, wazero used [`twitchyliquid64/golang-asm`](https://github.com/twitc However, this was not only a dependency (one of our goals is to have zero dependencies), but also a large one (several megabytes added to the binary). Moreover, any copy of golang-asm is not thread-safe, so can't be used for -concurrent compilation (See [#233](https://github.com/tetratelabs/wazero/issues/233)). +concurrent compilation (See [#233](https://github.com/wasilibs/wazerox/issues/233)). The assembled native codes are represented as `[]byte` and the slice region is marked as executable via mmap system call. @@ -78,7 +78,7 @@ that trampoline function. Therefore, runtime-generated machine code is also corr ## Why context cancellation is handled in Go code rather than native code -Since [wazero v1.0.0-pre.9](https://github.com/tetratelabs/wazero/releases/tag/v1.0.0-pre.9), the runtime +Since [wazero v1.0.0-pre.9](https://github.com/wasilibs/wazerox/releases/tag/v1.0.0-pre.9), the runtime supports integration with Go contexts to interrupt execution after a timeout, or in response to explicit cancellation. This support is internally implemented as a special opcode `builtinFunctionCheckExitCode` that triggers the execution of a Go function (`ModuleInstance.FailIfClosed`) that atomically checks a sentinel value at strategic points in the code @@ -89,8 +89,8 @@ however, because native code never preempts (see section above), this may lead t never get the chance to run, and thus never get the chance to set the sentinel value; effectively preventing cancellation from taking place. -[checkexitcode_loop]: https://github.com/tetratelabs/wazero/blob/86444c67a37dbf9e693ae5b365901f64968d9025/internal/wazeroir/compiler.go#L467-L476 -[native_check]: https://github.com/tetratelabs/wazero/issues/1409 +[checkexitcode_loop]: https://github.com/wasilibs/wazerox/blob/86444c67a37dbf9e693ae5b365901f64968d9025/internal/wazeroir/compiler.go#L467-L476 +[native_check]: https://github.com/wasilibs/wazerox/issues/1409 ## Source Offset Mapping diff --git a/internal/engine/compiler/arch.go b/internal/engine/compiler/arch.go index 81b9efc3..96a945e8 100644 --- a/internal/engine/compiler/arch.go +++ b/internal/engine/compiler/arch.go @@ -1,8 +1,8 @@ package compiler import ( - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/wasm" ) // newArchContext returns a new archContext which is architecture-specific type to be embedded in callEngine. diff --git a/internal/engine/compiler/arch_amd64.go b/internal/engine/compiler/arch_amd64.go index b09a1cab..3114b332 100644 --- a/internal/engine/compiler/arch_amd64.go +++ b/internal/engine/compiler/arch_amd64.go @@ -1,8 +1,8 @@ package compiler import ( - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/amd64" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/amd64" ) // init initializes variables for the amd64 architecture diff --git a/internal/engine/compiler/arch_arm64.go b/internal/engine/compiler/arch_arm64.go index 4262da61..9f9025c7 100644 --- a/internal/engine/compiler/arch_arm64.go +++ b/internal/engine/compiler/arch_arm64.go @@ -3,8 +3,8 @@ package compiler import ( "math" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/arm64" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/arm64" ) // init initializes variables for the arm64 architecture diff --git a/internal/engine/compiler/arch_arm64_test.go b/internal/engine/compiler/arch_arm64_test.go index 170ace64..6f4fc2dd 100644 --- a/internal/engine/compiler/arch_arm64_test.go +++ b/internal/engine/compiler/arch_arm64_test.go @@ -4,7 +4,7 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestArchContextOffsetInArm64Engine(t *testing.T) { diff --git a/internal/engine/compiler/arch_other.go b/internal/engine/compiler/arch_other.go index e53ac8df..1b4c2028 100644 --- a/internal/engine/compiler/arch_other.go +++ b/internal/engine/compiler/arch_other.go @@ -6,7 +6,7 @@ import ( "fmt" "runtime" - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) // archContext is empty on an unsupported architecture. diff --git a/internal/engine/compiler/compiler.go b/internal/engine/compiler/compiler.go index 3593df7b..7f2adc60 100644 --- a/internal/engine/compiler/compiler.go +++ b/internal/engine/compiler/compiler.go @@ -1,9 +1,9 @@ package compiler import ( - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // compiler is the interface of architecture-specific native code compiler, diff --git a/internal/engine/compiler/compiler_bench_test.go b/internal/engine/compiler/compiler_bench_test.go index 03c7b793..7296f125 100644 --- a/internal/engine/compiler/compiler_bench_test.go +++ b/internal/engine/compiler/compiler_bench_test.go @@ -6,10 +6,10 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func BenchmarkCompiler_compileMemoryCopy(b *testing.B) { diff --git a/internal/engine/compiler/compiler_conditional_save_test.go b/internal/engine/compiler/compiler_conditional_save_test.go index 94869ae8..5c213ba9 100644 --- a/internal/engine/compiler/compiler_conditional_save_test.go +++ b/internal/engine/compiler/compiler_conditional_save_test.go @@ -3,10 +3,10 @@ package compiler import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // TestCompiler_conditional_value_saving ensure that saving conditional register works correctly even if there's diff --git a/internal/engine/compiler/compiler_controlflow_test.go b/internal/engine/compiler/compiler_controlflow_test.go index 132a25ec..fa3a1e2b 100644 --- a/internal/engine/compiler/compiler_controlflow_test.go +++ b/internal/engine/compiler/compiler_controlflow_test.go @@ -5,10 +5,10 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileHostFunction(t *testing.T) { diff --git a/internal/engine/compiler/compiler_conversion_test.go b/internal/engine/compiler/compiler_conversion_test.go index 265f3f32..0908a405 100644 --- a/internal/engine/compiler/compiler_conversion_test.go +++ b/internal/engine/compiler/compiler_conversion_test.go @@ -5,10 +5,10 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileReinterpret(t *testing.T) { diff --git a/internal/engine/compiler/compiler_drop.go b/internal/engine/compiler/compiler_drop.go index 342cee0e..4558eec8 100644 --- a/internal/engine/compiler/compiler_drop.go +++ b/internal/engine/compiler/compiler_drop.go @@ -1,8 +1,8 @@ package compiler import ( - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // compileDropRange adds instruction to drop the values on the target range diff --git a/internal/engine/compiler/compiler_drop_test.go b/internal/engine/compiler/compiler_drop_test.go index 8ebbc5e9..cb48a022 100644 --- a/internal/engine/compiler/compiler_drop_test.go +++ b/internal/engine/compiler/compiler_drop_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func Test_compileDropRange(t *testing.T) { diff --git a/internal/engine/compiler/compiler_global_test.go b/internal/engine/compiler/compiler_global_test.go index 2729c5e6..a7df394d 100644 --- a/internal/engine/compiler/compiler_global_test.go +++ b/internal/engine/compiler/compiler_global_test.go @@ -3,10 +3,10 @@ package compiler import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileGlobalGet(t *testing.T) { diff --git a/internal/engine/compiler/compiler_initialization_test.go b/internal/engine/compiler/compiler_initialization_test.go index d213c51f..b0d39ec8 100644 --- a/internal/engine/compiler/compiler_initialization_test.go +++ b/internal/engine/compiler/compiler_initialization_test.go @@ -6,10 +6,10 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileModuleContextInitialization(t *testing.T) { diff --git a/internal/engine/compiler/compiler_memory_test.go b/internal/engine/compiler/compiler_memory_test.go index ccd440a5..780241b9 100644 --- a/internal/engine/compiler/compiler_memory_test.go +++ b/internal/engine/compiler/compiler_memory_test.go @@ -6,10 +6,10 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileMemoryGrow(t *testing.T) { diff --git a/internal/engine/compiler/compiler_numeric_test.go b/internal/engine/compiler/compiler_numeric_test.go index 34688b45..4e720a32 100644 --- a/internal/engine/compiler/compiler_numeric_test.go +++ b/internal/engine/compiler/compiler_numeric_test.go @@ -6,11 +6,11 @@ import ( "math/bits" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/moremath" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/moremath" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileConsts(t *testing.T) { diff --git a/internal/engine/compiler/compiler_post1_0_test.go b/internal/engine/compiler/compiler_post1_0_test.go index 7632b354..63dc1c02 100644 --- a/internal/engine/compiler/compiler_post1_0_test.go +++ b/internal/engine/compiler/compiler_post1_0_test.go @@ -6,10 +6,10 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileSignExtend(t *testing.T) { diff --git a/internal/engine/compiler/compiler_stack_test.go b/internal/engine/compiler/compiler_stack_test.go index 8c8a4394..b0eab616 100644 --- a/internal/engine/compiler/compiler_stack_test.go +++ b/internal/engine/compiler/compiler_stack_test.go @@ -5,10 +5,10 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_releaseRegisterToStack(t *testing.T) { diff --git a/internal/engine/compiler/compiler_test.go b/internal/engine/compiler/compiler_test.go index 653a23d0..2bfd14c5 100644 --- a/internal/engine/compiler/compiler_test.go +++ b/internal/engine/compiler/compiler_test.go @@ -8,10 +8,10 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestMain(m *testing.M) { @@ -280,7 +280,7 @@ func requireRuntimeLocationStackPointerEqual(t *testing.T, expSP uint64, c compi require.Equal(t, expSP, c.runtimeValueLocationStack().sp-callFrameDataSizeInUint64) } -// TestCompileI32WrapFromI64 is the regression test for https://github.com/tetratelabs/wazero/issues/1008 +// TestCompileI32WrapFromI64 is the regression test for https://github.com/wasilibs/wazerox/issues/1008 func TestCompileI32WrapFromI64(t *testing.T) { c := newCompiler() c.Init(&wasm.FunctionType{}, nil, false) diff --git a/internal/engine/compiler/compiler_value_location.go b/internal/engine/compiler/compiler_value_location.go index 30036fed..3c54152e 100644 --- a/internal/engine/compiler/compiler_value_location.go +++ b/internal/engine/compiler/compiler_value_location.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/wasm" ) var ( diff --git a/internal/engine/compiler/compiler_value_location_test.go b/internal/engine/compiler/compiler_value_location_test.go index 64710467..4ff78b96 100644 --- a/internal/engine/compiler/compiler_value_location_test.go +++ b/internal/engine/compiler/compiler_value_location_test.go @@ -3,9 +3,9 @@ package compiler import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_isIntRegister(t *testing.T) { diff --git a/internal/engine/compiler/compiler_vec_test.go b/internal/engine/compiler/compiler_vec_test.go index 946f104b..46c0ecb6 100644 --- a/internal/engine/compiler/compiler_vec_test.go +++ b/internal/engine/compiler/compiler_vec_test.go @@ -5,11 +5,11 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/moremath" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/moremath" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileV128Add(t *testing.T) { diff --git a/internal/engine/compiler/engine.go b/internal/engine/compiler/engine.go index bcf6fb27..492a0468 100644 --- a/internal/engine/compiler/engine.go +++ b/internal/engine/compiler/engine.go @@ -11,18 +11,18 @@ import ( "sync/atomic" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/bitpack" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/version" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasmdebug" - "github.com/tetratelabs/wazero/internal/wasmruntime" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/bitpack" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/version" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasmdebug" + "github.com/wasilibs/wazerox/internal/wasmruntime" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // NOTE: The offset of many of the struct fields defined here are referenced from diff --git a/internal/engine/compiler/engine_bench_test.go b/internal/engine/compiler/engine_bench_test.go index 39bac99e..6511f515 100644 --- a/internal/engine/compiler/engine_bench_test.go +++ b/internal/engine/compiler/engine_bench_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/wasm" ) func BenchmarkCallEngine_builtinFunctionFunctionListener(b *testing.B) { diff --git a/internal/engine/compiler/engine_cache.go b/internal/engine/compiler/engine_cache.go index 204eb1b8..68a3993b 100644 --- a/internal/engine/compiler/engine_cache.go +++ b/internal/engine/compiler/engine_cache.go @@ -7,11 +7,11 @@ import ( "io" "runtime" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/u32" - "github.com/tetratelabs/wazero/internal/u64" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/u32" + "github.com/wasilibs/wazerox/internal/u64" + "github.com/wasilibs/wazerox/internal/wasm" ) func (e *engine) deleteCompiledModule(module *wasm.Module) { diff --git a/internal/engine/compiler/engine_cache_test.go b/internal/engine/compiler/engine_cache_test.go index c26433a3..fc467865 100644 --- a/internal/engine/compiler/engine_cache_test.go +++ b/internal/engine/compiler/engine_cache_test.go @@ -10,12 +10,12 @@ import ( "testing" "testing/iotest" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/u32" - "github.com/tetratelabs/wazero/internal/u64" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/u32" + "github.com/wasilibs/wazerox/internal/u64" + "github.com/wasilibs/wazerox/internal/wasm" ) var testVersion = "" diff --git a/internal/engine/compiler/engine_test.go b/internal/engine/compiler/engine_test.go index c68a0586..3ae59fdd 100644 --- a/internal/engine/compiler/engine_test.go +++ b/internal/engine/compiler/engine_test.go @@ -8,12 +8,12 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/bitpack" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/bitpack" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/internal/engine/compiler/impl_amd64.go b/internal/engine/compiler/impl_amd64.go index d2fefde4..fd447e8c 100644 --- a/internal/engine/compiler/impl_amd64.go +++ b/internal/engine/compiler/impl_amd64.go @@ -8,13 +8,13 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/amd64" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/u32" - "github.com/tetratelabs/wazero/internal/u64" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/amd64" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/u32" + "github.com/wasilibs/wazerox/internal/u64" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) var ( diff --git a/internal/engine/compiler/impl_amd64_test.go b/internal/engine/compiler/impl_amd64_test.go index 316bfceb..acac9465 100644 --- a/internal/engine/compiler/impl_amd64_test.go +++ b/internal/engine/compiler/impl_amd64_test.go @@ -5,12 +5,12 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/amd64" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/amd64" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // TestAmd64Compiler_indirectCallWithTargetOnCallingConvReg is the regression test for #526. diff --git a/internal/engine/compiler/impl_arm64.go b/internal/engine/compiler/impl_arm64.go index 26ee0e6b..88aaca02 100644 --- a/internal/engine/compiler/impl_arm64.go +++ b/internal/engine/compiler/impl_arm64.go @@ -9,10 +9,10 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/arm64" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/arm64" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) type arm64Compiler struct { diff --git a/internal/engine/compiler/impl_arm64_test.go b/internal/engine/compiler/impl_arm64_test.go index da59b58f..0c6874ac 100644 --- a/internal/engine/compiler/impl_arm64_test.go +++ b/internal/engine/compiler/impl_arm64_test.go @@ -4,11 +4,11 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/asm" - arm64 "github.com/tetratelabs/wazero/internal/asm/arm64" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + arm64 "github.com/wasilibs/wazerox/internal/asm/arm64" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // TestArm64Compiler_indirectCallWithTargetOnCallingConvReg is the regression test for #526. @@ -236,7 +236,7 @@ func TestArm64Compiler_getSavedTemporaryLocationStack(t *testing.T) { }) } -// https://github.com/tetratelabs/wazero/issues/1522 +// https://github.com/wasilibs/wazerox/issues/1522 func TestArm64Compiler_LargeTrapOffsets(t *testing.T) { env := newCompilerEnvironment() compiler := env.requireNewCompiler(t, &wasm.FunctionType{}, newCompiler, &wazeroir.CompilationResult{ diff --git a/internal/engine/compiler/impl_vec_amd64.go b/internal/engine/compiler/impl_vec_amd64.go index d6c111db..c12c53b5 100644 --- a/internal/engine/compiler/impl_vec_amd64.go +++ b/internal/engine/compiler/impl_vec_amd64.go @@ -3,9 +3,9 @@ package compiler import ( "errors" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/amd64" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/amd64" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // compileV128Const implements compiler.compileV128Const for amd64 architecture. diff --git a/internal/engine/compiler/impl_vec_amd64_test.go b/internal/engine/compiler/impl_vec_amd64_test.go index 34b387bf..cb778826 100644 --- a/internal/engine/compiler/impl_vec_amd64_test.go +++ b/internal/engine/compiler/impl_vec_amd64_test.go @@ -5,11 +5,11 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/amd64" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/amd64" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // TestAmd64Compiler_V128Shuffle_ConstTable_MiddleOfFunction ensures that flushing constant table in the middle of diff --git a/internal/engine/compiler/impl_vec_arm64.go b/internal/engine/compiler/impl_vec_arm64.go index 70aa4a01..83a41171 100644 --- a/internal/engine/compiler/impl_vec_arm64.go +++ b/internal/engine/compiler/impl_vec_arm64.go @@ -1,9 +1,9 @@ package compiler import ( - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/arm64" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/arm64" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // compileV128Const implements compiler.compileV128Const for arm64. diff --git a/internal/engine/compiler/impl_vec_arm64_test.go b/internal/engine/compiler/impl_vec_arm64_test.go index bb600752..ceeb6255 100644 --- a/internal/engine/compiler/impl_vec_arm64_test.go +++ b/internal/engine/compiler/impl_vec_arm64_test.go @@ -4,11 +4,11 @@ import ( "encoding/binary" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/arm64" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/arm64" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // TestArm64Compiler_V128Shuffle_ConstTable_MiddleOfFunction ensures that flushing constant table in the middle of diff --git a/internal/engine/interpreter/interpreter.go b/internal/engine/interpreter/interpreter.go index 4281499f..2feee100 100644 --- a/internal/engine/interpreter/interpreter.go +++ b/internal/engine/interpreter/interpreter.go @@ -10,15 +10,15 @@ import ( "sync" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/moremath" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasmdebug" - "github.com/tetratelabs/wazero/internal/wasmruntime" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/moremath" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasmdebug" + "github.com/wasilibs/wazerox/internal/wasmruntime" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // callStackCeiling is the maximum WebAssembly call frame stack height. This allows wazero to raise diff --git a/internal/engine/interpreter/interpreter_test.go b/internal/engine/interpreter/interpreter_test.go index 13f47af7..82795fed 100644 --- a/internal/engine/interpreter/interpreter_test.go +++ b/internal/engine/interpreter/interpreter_test.go @@ -7,10 +7,10 @@ import ( "strconv" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/internal/engine/wazevo/README.md b/internal/engine/wazevo/README.md index 4ec94a3e..fc11b125 100644 --- a/internal/engine/wazevo/README.md +++ b/internal/engine/wazevo/README.md @@ -1,2 +1,2 @@ wazevo is the new optimizing compiler backend under active development and it's not usable yet. -Please refer to https://github.com/tetratelabs/wazero/issues/1496 +Please refer to https://github.com/wasilibs/wazerox/issues/1496 diff --git a/internal/engine/wazevo/backend/abi.go b/internal/engine/wazevo/backend/abi.go index 0d1eb4cb..519c9d04 100644 --- a/internal/engine/wazevo/backend/abi.go +++ b/internal/engine/wazevo/backend/abi.go @@ -3,8 +3,8 @@ package backend import ( "fmt" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) // FunctionABI represents an ABI for the specific target combined with the function signature. diff --git a/internal/engine/wazevo/backend/backend_test.go b/internal/engine/wazevo/backend/backend_test.go index 592e20a8..1267d2e0 100644 --- a/internal/engine/wazevo/backend/backend_test.go +++ b/internal/engine/wazevo/backend/backend_test.go @@ -7,14 +7,14 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64" - "github.com/tetratelabs/wazero/internal/engine/wazevo/frontend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/testcases" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/isa/arm64" + "github.com/wasilibs/wazerox/internal/engine/wazevo/frontend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/testcases" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestMain(m *testing.M) { diff --git a/internal/engine/wazevo/backend/compiler.go b/internal/engine/wazevo/backend/compiler.go index 0dd9cc2a..0eb705c6 100644 --- a/internal/engine/wazevo/backend/compiler.go +++ b/internal/engine/wazevo/backend/compiler.go @@ -5,9 +5,9 @@ import ( "encoding/hex" "fmt" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // NewCompiler returns a new Compiler that can generate a machine code. diff --git a/internal/engine/wazevo/backend/compiler_lower.go b/internal/engine/wazevo/backend/compiler_lower.go index 8f513423..777aa320 100644 --- a/internal/engine/wazevo/backend/compiler_lower.go +++ b/internal/engine/wazevo/backend/compiler_lower.go @@ -1,8 +1,8 @@ package backend import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) // Lower implements Compiler.Lower. diff --git a/internal/engine/wazevo/backend/compiler_lower_test.go b/internal/engine/wazevo/backend/compiler_lower_test.go index bfdc8747..c4643227 100644 --- a/internal/engine/wazevo/backend/compiler_lower_test.go +++ b/internal/engine/wazevo/backend/compiler_lower_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestCompiler_lowerBlockArguments(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/abi.go b/internal/engine/wazevo/backend/isa/arm64/abi.go index f75aa55b..8f61511a 100644 --- a/internal/engine/wazevo/backend/isa/arm64/abi.go +++ b/internal/engine/wazevo/backend/isa/arm64/abi.go @@ -1,9 +1,9 @@ package arm64 import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) // References: diff --git a/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble.go b/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble.go index 0cec5cf5..326b20d0 100644 --- a/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble.go +++ b/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble.go @@ -1,10 +1,10 @@ package arm64 import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // CompileEntryPreamble implements backend.Machine. This assumes `entrypoint` function (in abi_go_entry_arm64.s) passes: diff --git a/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble_test.go b/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble_test.go index 3c95d9b1..4a35c2d5 100644 --- a/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble_test.go @@ -3,9 +3,9 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAbiImpl_constructEntryPreamble(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/abi_go_call.go b/internal/engine/wazevo/backend/isa/arm64/abi_go_call.go index e09abea5..26fcbe74 100644 --- a/internal/engine/wazevo/backend/isa/arm64/abi_go_call.go +++ b/internal/engine/wazevo/backend/isa/arm64/abi_go_call.go @@ -1,10 +1,10 @@ package arm64 import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) var calleeSavedRegistersSorted = []regalloc.VReg{ diff --git a/internal/engine/wazevo/backend/isa/arm64/abi_go_call_test.go b/internal/engine/wazevo/backend/isa/arm64/abi_go_call_test.go index 23fc2bf0..161fbda3 100644 --- a/internal/engine/wazevo/backend/isa/arm64/abi_go_call_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/abi_go_call_test.go @@ -4,11 +4,11 @@ import ( "sort" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_calleeSavedRegistersSorted(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/abi_test.go b/internal/engine/wazevo/backend/isa/arm64/abi_test.go index a917a67a..1b5c95b0 100644 --- a/internal/engine/wazevo/backend/isa/arm64/abi_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/abi_test.go @@ -3,10 +3,10 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAbiImpl_init(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/cond.go b/internal/engine/wazevo/backend/isa/arm64/cond.go index 6f6cdd1b..bd8626af 100644 --- a/internal/engine/wazevo/backend/isa/arm64/cond.go +++ b/internal/engine/wazevo/backend/isa/arm64/cond.go @@ -3,8 +3,8 @@ package arm64 import ( "strconv" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) type ( diff --git a/internal/engine/wazevo/backend/isa/arm64/instr.go b/internal/engine/wazevo/backend/isa/arm64/instr.go index 3f5a33ec..fa9b8387 100644 --- a/internal/engine/wazevo/backend/isa/arm64/instr.go +++ b/internal/engine/wazevo/backend/isa/arm64/instr.go @@ -5,8 +5,8 @@ import ( "math" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) type ( diff --git a/internal/engine/wazevo/backend/isa/arm64/instr_encoding.go b/internal/engine/wazevo/backend/isa/arm64/instr_encoding.go index 80a8f1ef..23f39370 100644 --- a/internal/engine/wazevo/backend/isa/arm64/instr_encoding.go +++ b/internal/engine/wazevo/backend/isa/arm64/instr_encoding.go @@ -3,9 +3,9 @@ package arm64 import ( "fmt" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // Encode implements backend.Machine Encode. diff --git a/internal/engine/wazevo/backend/isa/arm64/instr_encoding_test.go b/internal/engine/wazevo/backend/isa/arm64/instr_encoding_test.go index 58242bf6..ba5c25c7 100644 --- a/internal/engine/wazevo/backend/isa/arm64/instr_encoding_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/instr_encoding_test.go @@ -7,9 +7,9 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_dummy(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/instr_test.go b/internal/engine/wazevo/backend/isa/arm64/instr_test.go index 6e4ec7ce..6e091b7b 100644 --- a/internal/engine/wazevo/backend/isa/arm64/instr_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/instr_test.go @@ -4,8 +4,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestInstruction_String(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_constant.go b/internal/engine/wazevo/backend/isa/arm64/lower_constant.go index 5500d4cb..49149f80 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_constant.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_constant.go @@ -1,8 +1,8 @@ package arm64 import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) // lowerConstant allocates a new VReg and inserts the instruction to load the constant value. @@ -52,7 +52,7 @@ func (m *machine) InsertLoadConstant(instr *ssa.Instruction, vr regalloc.VReg) { } // The following logics are based on the old asm/arm64 package. -// https://github.com/tetratelabs/wazero/blob/39f2ff23a6d609e10c82b9cc0b981f6de5b87a9c/internal/asm/arm64/impl.go +// https://github.com/wasilibs/wazerox/blob/39f2ff23a6d609e10c82b9cc0b981f6de5b87a9c/internal/asm/arm64/impl.go func (m *machine) lowerConstantI32(dst regalloc.VReg, c int32) { // Following the logic here: diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_constant_test.go b/internal/engine/wazevo/backend/isa/arm64/lower_constant_test.go index 34383c81..f56571cd 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_constant_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_constant_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestMachine_lowerConstant(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_instr.go b/internal/engine/wazevo/backend/isa/arm64/lower_instr.go index 74484d1d..c049a8c9 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_instr.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_instr.go @@ -10,9 +10,9 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // LowerSingleBranch implements backend.Machine. diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands.go b/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands.go index d9fbf178..1fb1290e 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands.go @@ -7,9 +7,9 @@ package arm64 import ( "fmt" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) type ( diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands_test.go b/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands_test.go index 914d256b..1db17d92 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands_test.go @@ -4,10 +4,10 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_asImm12(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_instr_test.go b/internal/engine/wazevo/backend/isa/arm64/lower_instr_test.go index e3f97023..eb8e4dbe 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_instr_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_instr_test.go @@ -6,11 +6,11 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestMachine_LowerConditionalBranch(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_mem.go b/internal/engine/wazevo/backend/isa/arm64/lower_mem.go index a2484929..47a4e4d4 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_mem.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_mem.go @@ -3,8 +3,8 @@ package arm64 import ( "fmt" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) type ( diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_mem_test.go b/internal/engine/wazevo/backend/isa/arm64/lower_mem_test.go index 14a2b55f..aac54a18 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_mem_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_mem_test.go @@ -7,10 +7,10 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAddressMode_format(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/machine.go b/internal/engine/wazevo/backend/isa/arm64/machine.go index 59d60e29..a6af31c8 100644 --- a/internal/engine/wazevo/backend/isa/arm64/machine.go +++ b/internal/engine/wazevo/backend/isa/arm64/machine.go @@ -5,10 +5,10 @@ import ( "math" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) type ( diff --git a/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue.go b/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue.go index 62b4e0ec..61ac2822 100644 --- a/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue.go +++ b/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue.go @@ -3,8 +3,8 @@ package arm64 import ( "fmt" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // SetupPrologue implements backend.Machine. diff --git a/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue_test.go b/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue_test.go index bc174a47..b06975b3 100644 --- a/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue_test.go @@ -3,8 +3,8 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestMachine_SetupPrologue(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/machine_regalloc.go b/internal/engine/wazevo/backend/isa/arm64/machine_regalloc.go index 881d0975..9744a533 100644 --- a/internal/engine/wazevo/backend/isa/arm64/machine_regalloc.go +++ b/internal/engine/wazevo/backend/isa/arm64/machine_regalloc.go @@ -3,8 +3,8 @@ package arm64 // This file implements the interfaces required for register allocations. See regalloc/api.go. import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) type ( diff --git a/internal/engine/wazevo/backend/isa/arm64/machine_regalloc_test.go b/internal/engine/wazevo/backend/isa/arm64/machine_regalloc_test.go index 0b7e53ff..3f6eaa1f 100644 --- a/internal/engine/wazevo/backend/isa/arm64/machine_regalloc_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/machine_regalloc_test.go @@ -3,9 +3,9 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestRegAllocFunctionImpl_addBlock(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/machine_relocation.go b/internal/engine/wazevo/backend/isa/arm64/machine_relocation.go index 37d72667..98b92b88 100644 --- a/internal/engine/wazevo/backend/isa/arm64/machine_relocation.go +++ b/internal/engine/wazevo/backend/isa/arm64/machine_relocation.go @@ -1,8 +1,8 @@ package arm64 import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) // ResolveRelocations implements backend.Machine ResolveRelocations. diff --git a/internal/engine/wazevo/backend/isa/arm64/machine_test.go b/internal/engine/wazevo/backend/isa/arm64/machine_test.go index da4227c7..f48c1ca8 100644 --- a/internal/engine/wazevo/backend/isa/arm64/machine_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/machine_test.go @@ -3,9 +3,9 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestMachine_insertAtHead(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/reg.go b/internal/engine/wazevo/backend/isa/arm64/reg.go index 45737516..56953696 100644 --- a/internal/engine/wazevo/backend/isa/arm64/reg.go +++ b/internal/engine/wazevo/backend/isa/arm64/reg.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" ) // Arm64-specific registers. diff --git a/internal/engine/wazevo/backend/isa/arm64/reg_test.go b/internal/engine/wazevo/backend/isa/arm64/reg_test.go index 5ba77f32..3bf07d6a 100644 --- a/internal/engine/wazevo/backend/isa/arm64/reg_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/reg_test.go @@ -3,8 +3,8 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_regs(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/unwind_stack_test.go b/internal/engine/wazevo/backend/isa/arm64/unwind_stack_test.go index 136c8222..4e9905d2 100644 --- a/internal/engine/wazevo/backend/isa/arm64/unwind_stack_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/unwind_stack_test.go @@ -5,7 +5,7 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestUnwindStack(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/util_test.go b/internal/engine/wazevo/backend/isa/arm64/util_test.go index 77f51de1..5d1d1d2d 100644 --- a/internal/engine/wazevo/backend/isa/arm64/util_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/util_test.go @@ -4,9 +4,9 @@ import ( "context" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) func getPendingInstr(m *machine) *instruction { diff --git a/internal/engine/wazevo/backend/machine.go b/internal/engine/wazevo/backend/machine.go index 8f492bb2..eef68247 100644 --- a/internal/engine/wazevo/backend/machine.go +++ b/internal/engine/wazevo/backend/machine.go @@ -1,9 +1,9 @@ package backend import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) type ( diff --git a/internal/engine/wazevo/backend/machine_test.go b/internal/engine/wazevo/backend/machine_test.go index d831b74d..17e87540 100644 --- a/internal/engine/wazevo/backend/machine_test.go +++ b/internal/engine/wazevo/backend/machine_test.go @@ -1,9 +1,9 @@ package backend import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // mockMachine implements Machine for testing. diff --git a/internal/engine/wazevo/backend/regalloc/reg.go b/internal/engine/wazevo/backend/regalloc/reg.go index e365936b..acacab69 100644 --- a/internal/engine/wazevo/backend/regalloc/reg.go +++ b/internal/engine/wazevo/backend/regalloc/reg.go @@ -3,7 +3,7 @@ package regalloc import ( "fmt" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) // VReg represents a register which is assigned to an SSA value. This is used to represent a register in the backend. diff --git a/internal/engine/wazevo/backend/regalloc/reg_test.go b/internal/engine/wazevo/backend/regalloc/reg_test.go index 7c48200a..16704af7 100644 --- a/internal/engine/wazevo/backend/regalloc/reg_test.go +++ b/internal/engine/wazevo/backend/regalloc/reg_test.go @@ -3,8 +3,8 @@ package regalloc import ( "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestRegTypeOf(t *testing.T) { diff --git a/internal/engine/wazevo/backend/regalloc/regalloc.go b/internal/engine/wazevo/backend/regalloc/regalloc.go index 59630b1f..f8c184e9 100644 --- a/internal/engine/wazevo/backend/regalloc/regalloc.go +++ b/internal/engine/wazevo/backend/regalloc/regalloc.go @@ -13,7 +13,7 @@ import ( "math" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // NewAllocator returns a new Allocator. diff --git a/internal/engine/wazevo/backend/regalloc/regalloc_test.go b/internal/engine/wazevo/backend/regalloc/regalloc_test.go index 37d01b80..d2635dc2 100644 --- a/internal/engine/wazevo/backend/regalloc/regalloc_test.go +++ b/internal/engine/wazevo/backend/regalloc/regalloc_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAllocator_livenessAnalysis(t *testing.T) { diff --git a/internal/engine/wazevo/backend/vdef.go b/internal/engine/wazevo/backend/vdef.go index edfa962b..746d4cb4 100644 --- a/internal/engine/wazevo/backend/vdef.go +++ b/internal/engine/wazevo/backend/vdef.go @@ -1,8 +1,8 @@ package backend import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) // SSAValueDefinition represents a definition of an SSA value. diff --git a/internal/engine/wazevo/call_engine.go b/internal/engine/wazevo/call_engine.go index 85515de4..d0d09167 100644 --- a/internal/engine/wazevo/call_engine.go +++ b/internal/engine/wazevo/call_engine.go @@ -7,13 +7,13 @@ import ( "reflect" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasmdebug" - "github.com/tetratelabs/wazero/internal/wasmruntime" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasmdebug" + "github.com/wasilibs/wazerox/internal/wasmruntime" ) type ( diff --git a/internal/engine/wazevo/call_engine_test.go b/internal/engine/wazevo/call_engine_test.go index b1fd19b7..06dfeb56 100644 --- a/internal/engine/wazevo/call_engine_test.go +++ b/internal/engine/wazevo/call_engine_test.go @@ -5,7 +5,7 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestCallEngine_init(t *testing.T) { diff --git a/internal/engine/wazevo/config.go b/internal/engine/wazevo/config.go index 7b009c64..4da3ff64 100644 --- a/internal/engine/wazevo/config.go +++ b/internal/engine/wazevo/config.go @@ -4,10 +4,10 @@ import ( "context" "unsafe" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/wasm" ) // ConfigureWazevo modifies wazero.RuntimeConfig and sets the wazevo implementation. diff --git a/internal/engine/wazevo/e2e_test.go b/internal/engine/wazevo/e2e_test.go index 7b057851..82942ae5 100644 --- a/internal/engine/wazevo/e2e_test.go +++ b/internal/engine/wazevo/e2e_test.go @@ -8,17 +8,17 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/engine/wazevo/testcases" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/dwarftestdata" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/engine/wazevo/testcases" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/dwarftestdata" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) const ( diff --git a/internal/engine/wazevo/engine.go b/internal/engine/wazevo/engine.go index aaabf9ef..125c4c0e 100644 --- a/internal/engine/wazevo/engine.go +++ b/internal/engine/wazevo/engine.go @@ -10,16 +10,16 @@ import ( "sync" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/frontend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/version" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/frontend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/version" + "github.com/wasilibs/wazerox/internal/wasm" ) type ( diff --git a/internal/engine/wazevo/engine_cache.go b/internal/engine/wazevo/engine_cache.go index fedc4d05..3c3cc8d4 100644 --- a/internal/engine/wazevo/engine_cache.go +++ b/internal/engine/wazevo/engine_cache.go @@ -10,15 +10,15 @@ import ( "runtime" "unsafe" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/u32" - "github.com/tetratelabs/wazero/internal/u64" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/u32" + "github.com/wasilibs/wazerox/internal/u64" + "github.com/wasilibs/wazerox/internal/wasm" ) // fileCacheKey returns a key for the file cache. diff --git a/internal/engine/wazevo/engine_cache_test.go b/internal/engine/wazevo/engine_cache_test.go index 8402f301..50cb3a2b 100644 --- a/internal/engine/wazevo/engine_cache_test.go +++ b/internal/engine/wazevo/engine_cache_test.go @@ -6,10 +6,10 @@ import ( "io" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/u32" - "github.com/tetratelabs/wazero/internal/u64" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/u32" + "github.com/wasilibs/wazerox/internal/u64" + "github.com/wasilibs/wazerox/internal/wasm" ) var testVersion = "0.0.1" diff --git a/internal/engine/wazevo/engine_test.go b/internal/engine/wazevo/engine_test.go index 853da938..9bb1d91f 100644 --- a/internal/engine/wazevo/engine_test.go +++ b/internal/engine/wazevo/engine_test.go @@ -7,9 +7,9 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_sharedFunctionsFinalizer(t *testing.T) { diff --git a/internal/engine/wazevo/entrypoint_arm64.go b/internal/engine/wazevo/entrypoint_arm64.go index 95ceeff5..56c5048b 100644 --- a/internal/engine/wazevo/entrypoint_arm64.go +++ b/internal/engine/wazevo/entrypoint_arm64.go @@ -4,10 +4,10 @@ import _ "unsafe" // entrypoint is implemented by the backend. // -//go:linkname entrypoint github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64.entrypoint +//go:linkname entrypoint github.com/wasilibs/wazerox/internal/engine/wazevo/backend/isa/arm64.entrypoint func entrypoint(preambleExecutable, functionExecutable *byte, executionContextPtr uintptr, moduleContextPtr *byte, paramResultStackPtr *uint64, goAllocatedStackSlicePtr uintptr) // entrypoint is implemented by the backend. // -//go:linkname afterGoFunctionCallEntrypoint github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64.afterGoFunctionCallEntrypoint +//go:linkname afterGoFunctionCallEntrypoint github.com/wasilibs/wazerox/internal/engine/wazevo/backend/isa/arm64.afterGoFunctionCallEntrypoint func afterGoFunctionCallEntrypoint(executable *byte, executionContextPtr uintptr, stackPointer uintptr) diff --git a/internal/engine/wazevo/frontend/frontend.go b/internal/engine/wazevo/frontend/frontend.go index 1c54c8b4..b275d67a 100644 --- a/internal/engine/wazevo/frontend/frontend.go +++ b/internal/engine/wazevo/frontend/frontend.go @@ -4,9 +4,9 @@ package frontend import ( "bytes" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/wasm" ) // Compiler is in charge of lowering Wasm to SSA IR, and does the optimization diff --git a/internal/engine/wazevo/frontend/frontend_test.go b/internal/engine/wazevo/frontend/frontend_test.go index f50d3218..1bf82915 100644 --- a/internal/engine/wazevo/frontend/frontend_test.go +++ b/internal/engine/wazevo/frontend/frontend_test.go @@ -3,12 +3,12 @@ package frontend import ( "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/testcases" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/testcases" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestCompiler_LowerToSSA(t *testing.T) { diff --git a/internal/engine/wazevo/frontend/lower.go b/internal/engine/wazevo/frontend/lower.go index 0816910e..8a8fa09c 100644 --- a/internal/engine/wazevo/frontend/lower.go +++ b/internal/engine/wazevo/frontend/lower.go @@ -6,11 +6,11 @@ import ( "math" "strings" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) type ( diff --git a/internal/engine/wazevo/frontend/lower_test.go b/internal/engine/wazevo/frontend/lower_test.go index 0bb8fe9a..f436f909 100644 --- a/internal/engine/wazevo/frontend/lower_test.go +++ b/internal/engine/wazevo/frontend/lower_test.go @@ -4,8 +4,8 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_Offsets(t *testing.T) { diff --git a/internal/engine/wazevo/frontend/misc.go b/internal/engine/wazevo/frontend/misc.go index 2db2b892..6929b011 100644 --- a/internal/engine/wazevo/frontend/misc.go +++ b/internal/engine/wazevo/frontend/misc.go @@ -1,8 +1,8 @@ package frontend import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/wasm" ) func FunctionIndexToFuncRef(idx wasm.Index) ssa.FuncRef { diff --git a/internal/engine/wazevo/hostmodule.go b/internal/engine/wazevo/hostmodule.go index 3ce9850f..f9cabd9c 100644 --- a/internal/engine/wazevo/hostmodule.go +++ b/internal/engine/wazevo/hostmodule.go @@ -5,8 +5,8 @@ import ( "reflect" "unsafe" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/wasm" ) func buildHostModuleOpaque(m *wasm.Module, listeners []experimental.FunctionListener) moduleContextOpaque { diff --git a/internal/engine/wazevo/hostmodule_test.go b/internal/engine/wazevo/hostmodule_test.go index 768fe9b6..7a07312e 100644 --- a/internal/engine/wazevo/hostmodule_test.go +++ b/internal/engine/wazevo/hostmodule_test.go @@ -5,10 +5,10 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_writeIface_readIface(t *testing.T) { diff --git a/internal/engine/wazevo/machine.go b/internal/engine/wazevo/machine.go index 0ad347b5..b8aece42 100644 --- a/internal/engine/wazevo/machine.go +++ b/internal/engine/wazevo/machine.go @@ -3,8 +3,8 @@ package wazevo import ( "runtime" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/isa/arm64" ) func newMachine() backend.Machine { diff --git a/internal/engine/wazevo/module_engine.go b/internal/engine/wazevo/module_engine.go index 7d202c77..28311a00 100644 --- a/internal/engine/wazevo/module_engine.go +++ b/internal/engine/wazevo/module_engine.go @@ -4,11 +4,11 @@ import ( "encoding/binary" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasmruntime" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasmruntime" ) type ( diff --git a/internal/engine/wazevo/module_engine_test.go b/internal/engine/wazevo/module_engine_test.go index 86c1461d..3acfbd21 100644 --- a/internal/engine/wazevo/module_engine_test.go +++ b/internal/engine/wazevo/module_engine_test.go @@ -7,9 +7,9 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestModuleEngine_setupOpaque(t *testing.T) { diff --git a/internal/engine/wazevo/ssa/builder.go b/internal/engine/wazevo/ssa/builder.go index 90a83853..99593d0f 100644 --- a/internal/engine/wazevo/ssa/builder.go +++ b/internal/engine/wazevo/ssa/builder.go @@ -5,7 +5,7 @@ import ( "sort" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // Builder is used to builds SSA consisting of Basic Blocks per function. diff --git a/internal/engine/wazevo/ssa/builder_test.go b/internal/engine/wazevo/ssa/builder_test.go index 04355295..c806fe12 100644 --- a/internal/engine/wazevo/ssa/builder_test.go +++ b/internal/engine/wazevo/ssa/builder_test.go @@ -3,7 +3,7 @@ package ssa import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_maybeInvertBranch(t *testing.T) { diff --git a/internal/engine/wazevo/ssa/instructions.go b/internal/engine/wazevo/ssa/instructions.go index 4dbe0883..11611e86 100644 --- a/internal/engine/wazevo/ssa/instructions.go +++ b/internal/engine/wazevo/ssa/instructions.go @@ -5,7 +5,7 @@ import ( "math" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // Opcode represents a SSA instruction. diff --git a/internal/engine/wazevo/ssa/instructions_test.go b/internal/engine/wazevo/ssa/instructions_test.go index 20b0371f..d82107be 100644 --- a/internal/engine/wazevo/ssa/instructions_test.go +++ b/internal/engine/wazevo/ssa/instructions_test.go @@ -3,7 +3,7 @@ package ssa import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestInstruction_InvertConditionalBrx(t *testing.T) { diff --git a/internal/engine/wazevo/ssa/pass.go b/internal/engine/wazevo/ssa/pass.go index 17c8486f..58c6b597 100644 --- a/internal/engine/wazevo/ssa/pass.go +++ b/internal/engine/wazevo/ssa/pass.go @@ -4,7 +4,7 @@ import ( "fmt" "sort" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // RunPasses implements Builder.RunPasses. diff --git a/internal/engine/wazevo/ssa/pass_cfg.go b/internal/engine/wazevo/ssa/pass_cfg.go index c39a75b5..d6526737 100644 --- a/internal/engine/wazevo/ssa/pass_cfg.go +++ b/internal/engine/wazevo/ssa/pass_cfg.go @@ -5,7 +5,7 @@ import ( "math" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // passCalculateImmediateDominators calculates immediate dominators for each basic block. diff --git a/internal/engine/wazevo/ssa/pass_cfg_test.go b/internal/engine/wazevo/ssa/pass_cfg_test.go index 014428ed..b083a330 100644 --- a/internal/engine/wazevo/ssa/pass_cfg_test.go +++ b/internal/engine/wazevo/ssa/pass_cfg_test.go @@ -4,7 +4,7 @@ import ( "sort" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestBuilder_passCalculateImmediateDominators(t *testing.T) { diff --git a/internal/engine/wazevo/ssa/pass_test.go b/internal/engine/wazevo/ssa/pass_test.go index 2a831a67..6ef1503b 100644 --- a/internal/engine/wazevo/ssa/pass_test.go +++ b/internal/engine/wazevo/ssa/pass_test.go @@ -3,7 +3,7 @@ package ssa import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestBuilder_passes(t *testing.T) { diff --git a/internal/engine/wazevo/ssa/vs.go b/internal/engine/wazevo/ssa/vs.go index 0afc941d..21e5b682 100644 --- a/internal/engine/wazevo/ssa/vs.go +++ b/internal/engine/wazevo/ssa/vs.go @@ -4,7 +4,7 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // Variable is a unique identifier for a source program's variable and will correspond to diff --git a/internal/engine/wazevo/testcases/testcases.go b/internal/engine/wazevo/testcases/testcases.go index fec163fe..980b6a66 100644 --- a/internal/engine/wazevo/testcases/testcases.go +++ b/internal/engine/wazevo/testcases/testcases.go @@ -3,8 +3,8 @@ package testcases import ( "math" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) const ExportedFunctionName = "f" diff --git a/internal/engine/wazevo/wazevo_test.go b/internal/engine/wazevo/wazevo_test.go index 8aeae7d6..649dfb51 100644 --- a/internal/engine/wazevo/wazevo_test.go +++ b/internal/engine/wazevo/wazevo_test.go @@ -7,10 +7,10 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) var ctx = context.Background() diff --git a/internal/engine/wazevo/wazevoapi/exitcode_test.go b/internal/engine/wazevo/wazevoapi/exitcode_test.go index ef7e317c..037da88c 100644 --- a/internal/engine/wazevo/wazevoapi/exitcode_test.go +++ b/internal/engine/wazevo/wazevoapi/exitcode_test.go @@ -3,7 +3,7 @@ package wazevoapi import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestExitCode_withinByte(t *testing.T) { diff --git a/internal/engine/wazevo/wazevoapi/offsetdata.go b/internal/engine/wazevo/wazevoapi/offsetdata.go index d21489b1..17fb0678 100644 --- a/internal/engine/wazevo/wazevoapi/offsetdata.go +++ b/internal/engine/wazevo/wazevoapi/offsetdata.go @@ -1,7 +1,7 @@ package wazevoapi import ( - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) const ( diff --git a/internal/engine/wazevo/wazevoapi/offsetdata_test.go b/internal/engine/wazevo/wazevoapi/offsetdata_test.go index ea64a985..323318d9 100644 --- a/internal/engine/wazevo/wazevoapi/offsetdata_test.go +++ b/internal/engine/wazevo/wazevoapi/offsetdata_test.go @@ -3,8 +3,8 @@ package wazevoapi import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestNewModuleContextOffsetData(t *testing.T) { diff --git a/internal/filecache/file_cache_test.go b/internal/filecache/file_cache_test.go index 68713b2d..69f3d2bb 100644 --- a/internal/filecache/file_cache_test.go +++ b/internal/filecache/file_cache_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestFileReadCloser_Close(t *testing.T) { diff --git a/internal/fsapi/file.go b/internal/fsapi/file.go index 0640b227..db293ebb 100644 --- a/internal/fsapi/file.go +++ b/internal/fsapi/file.go @@ -1,6 +1,6 @@ package fsapi -import experimentalsys "github.com/tetratelabs/wazero/experimental/sys" +import experimentalsys "github.com/wasilibs/wazerox/experimental/sys" // File includes methods not yet ready to document for end users, notably // non-blocking functionality. @@ -9,7 +9,7 @@ import experimentalsys "github.com/tetratelabs/wazero/experimental/sys" // be able to choose how to implement timeout or not. Currently, this interface // allows the user to choose to sleep or use native polling, and which choice // they make impacts thread behavior as summarized here: -// https://github.com/tetratelabs/wazero/pull/1606#issuecomment-1665475516 +// https://github.com/wasilibs/wazerox/pull/1606#issuecomment-1665475516 type File interface { experimentalsys.File diff --git a/internal/fsapi/unimplemented.go b/internal/fsapi/unimplemented.go index 99d9c2db..47be0cc8 100644 --- a/internal/fsapi/unimplemented.go +++ b/internal/fsapi/unimplemented.go @@ -1,6 +1,6 @@ package fsapi -import experimentalsys "github.com/tetratelabs/wazero/experimental/sys" +import experimentalsys "github.com/wasilibs/wazerox/experimental/sys" func Adapt(f experimentalsys.File) File { if f, ok := f.(File); ok { diff --git a/internal/gojs/argsenv.go b/internal/gojs/argsenv.go index f41a5b16..e7301014 100644 --- a/internal/gojs/argsenv.go +++ b/internal/gojs/argsenv.go @@ -4,9 +4,9 @@ import ( "encoding/binary" "errors" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/util" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/util" + "github.com/wasilibs/wazerox/internal/wasm" ) // Constants about memory layout. See REFERENCE.md diff --git a/internal/gojs/argsenv_test.go b/internal/gojs/argsenv_test.go index 99592b51..c9974a72 100644 --- a/internal/gojs/argsenv_test.go +++ b/internal/gojs/argsenv_test.go @@ -3,9 +3,8 @@ package gojs_test import ( "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_argsAndEnv(t *testing.T) { diff --git a/internal/gojs/builtin.go b/internal/gojs/builtin.go index dc9a1053..9111aec0 100644 --- a/internal/gojs/builtin.go +++ b/internal/gojs/builtin.go @@ -1,8 +1,8 @@ package gojs import ( - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/gojs/goos" ) // newJsGlobal = js.Global() // js.go init diff --git a/internal/gojs/compiler_test.go b/internal/gojs/compiler_test.go index b9cd319a..056cebc4 100644 --- a/internal/gojs/compiler_test.go +++ b/internal/gojs/compiler_test.go @@ -16,13 +16,13 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/gojs" - "github.com/tetratelabs/wazero/internal/fstest" - internalgojs "github.com/tetratelabs/wazero/internal/gojs" - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/gojs/run" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/gojs" + "github.com/wasilibs/wazerox/internal/fstest" + internalgojs "github.com/wasilibs/wazerox/internal/gojs" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/gojs/run" ) type newConfig func(moduleConfig wazero.ModuleConfig) (wazero.ModuleConfig, *config.Config) diff --git a/internal/gojs/config/config.go b/internal/gojs/config/config.go index b046a46e..cfe5c0ce 100644 --- a/internal/gojs/config/config.go +++ b/internal/gojs/config/config.go @@ -6,7 +6,7 @@ import ( "os" "path/filepath" - "github.com/tetratelabs/wazero/internal/platform" + "github.com/wasilibs/wazerox/internal/platform" ) type Config struct { diff --git a/internal/gojs/config/config_test.go b/internal/gojs/config/config_test.go index 621ed164..42558b23 100644 --- a/internal/gojs/config/config_test.go +++ b/internal/gojs/config/config_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestConfig_Init(t *testing.T) { diff --git a/internal/gojs/crypto.go b/internal/gojs/crypto.go index 7b528da3..32843e51 100644 --- a/internal/gojs/crypto.go +++ b/internal/gojs/crypto.go @@ -3,10 +3,10 @@ package gojs import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/goos" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/wasm" ) // jsCrypto is used by crypto/rand.Read to gets random values. diff --git a/internal/gojs/crypto_test.go b/internal/gojs/crypto_test.go index d496ae55..e1091c65 100644 --- a/internal/gojs/crypto_test.go +++ b/internal/gojs/crypto_test.go @@ -5,9 +5,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_crypto(t *testing.T) { diff --git a/internal/gojs/custom/fs_test.go b/internal/gojs/custom/fs_test.go index d3da015f..720a00ae 100644 --- a/internal/gojs/custom/fs_test.go +++ b/internal/gojs/custom/fs_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_ToJsMode(t *testing.T) { diff --git a/internal/gojs/errno.go b/internal/gojs/errno.go index 48284da2..4cc7a4d4 100644 --- a/internal/gojs/errno.go +++ b/internal/gojs/errno.go @@ -3,7 +3,7 @@ package gojs import ( "io" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // Errno is a (GOARCH=wasm) error, which must match a key in mapJSError. diff --git a/internal/gojs/errno_test.go b/internal/gojs/errno_test.go index d8b9f399..1f9716ba 100644 --- a/internal/gojs/errno_test.go +++ b/internal/gojs/errno_test.go @@ -4,7 +4,7 @@ import ( "io" "testing" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func TestToErrno(t *testing.T) { diff --git a/internal/gojs/fs.go b/internal/gojs/fs.go index ca156557..a57a4066 100644 --- a/internal/gojs/fs.go +++ b/internal/gojs/fs.go @@ -4,14 +4,14 @@ import ( "context" "fmt" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/goos" - "github.com/tetratelabs/wazero/internal/gojs/util" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/gojs/util" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) var ( diff --git a/internal/gojs/fs_test.go b/internal/gojs/fs_test.go index 2fe8bf64..9a2e74bd 100644 --- a/internal/gojs/fs_test.go +++ b/internal/gojs/fs_test.go @@ -5,11 +5,11 @@ import ( "path" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_fs(t *testing.T) { diff --git a/internal/gojs/goarch/wasm.go b/internal/gojs/goarch/wasm.go index 9f2f56c3..b55a5ba3 100644 --- a/internal/gojs/goarch/wasm.go +++ b/internal/gojs/goarch/wasm.go @@ -6,10 +6,10 @@ import ( "context" "encoding/binary" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/util" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/util" + "github.com/wasilibs/wazerox/internal/wasm" ) // StubFunction stubs functions not used in Go's main source tree. diff --git a/internal/gojs/goos/goos.go b/internal/gojs/goos/goos.go index 8121eae7..52975e9e 100644 --- a/internal/gojs/goos/goos.go +++ b/internal/gojs/goos/goos.go @@ -7,10 +7,10 @@ import ( "encoding/binary" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/goarch" - "github.com/tetratelabs/wazero/internal/gojs/util" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/goarch" + "github.com/wasilibs/wazerox/internal/gojs/util" + "github.com/wasilibs/wazerox/internal/wasm" ) // Ref is used to identify a JavaScript value, since the value itself cannot diff --git a/internal/gojs/js.go b/internal/gojs/js.go index 2667fa6e..283c2f3d 100644 --- a/internal/gojs/js.go +++ b/internal/gojs/js.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/goos" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/goos" ) // jsFn is a jsCall.call function, configured via jsVal.addFunction. diff --git a/internal/gojs/logging/logging.go b/internal/gojs/logging/logging.go index 7ca69dc3..1c6ca8ee 100644 --- a/internal/gojs/logging/logging.go +++ b/internal/gojs/logging/logging.go @@ -7,13 +7,13 @@ import ( "os" "strconv" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/goarch" - "github.com/tetratelabs/wazero/internal/gojs/goos" - "github.com/tetratelabs/wazero/internal/logging" - "github.com/tetratelabs/wazero/internal/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/goarch" + "github.com/wasilibs/wazerox/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/logging" + "github.com/wasilibs/wazerox/internal/sys" ) // IsInLogScope returns true if the current function is in any of the scopes. diff --git a/internal/gojs/logging/logging_test.go b/internal/gojs/logging/logging_test.go index 1574724d..3f19336a 100644 --- a/internal/gojs/logging/logging_test.go +++ b/internal/gojs/logging/logging_test.go @@ -3,11 +3,11 @@ package logging import ( "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/logging" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/logging" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) type testFunctionDefinition struct { diff --git a/internal/gojs/misc_test.go b/internal/gojs/misc_test.go index b8454697..71667c85 100644 --- a/internal/gojs/misc_test.go +++ b/internal/gojs/misc_test.go @@ -7,11 +7,10 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_exit(t *testing.T) { diff --git a/internal/gojs/process.go b/internal/gojs/process.go index 64af3204..11dfe62a 100644 --- a/internal/gojs/process.go +++ b/internal/gojs/process.go @@ -4,11 +4,11 @@ import ( "context" "path" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/goos" - "github.com/tetratelabs/wazero/internal/gojs/util" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/gojs/util" ) // processState are the mutable fields of the current process. diff --git a/internal/gojs/process_test.go b/internal/gojs/process_test.go index 9965c1e5..039a879c 100644 --- a/internal/gojs/process_test.go +++ b/internal/gojs/process_test.go @@ -4,9 +4,9 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_process(t *testing.T) { diff --git a/internal/gojs/run/gojs.go b/internal/gojs/run/gojs.go index 651debb8..15daebf6 100644 --- a/internal/gojs/run/gojs.go +++ b/internal/gojs/run/gojs.go @@ -5,10 +5,10 @@ package run import ( "context" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/gojs" - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/gojs" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/sys" ) func Run(ctx context.Context, r wazero.Runtime, compiled wazero.CompiledModule, moduleConfig wazero.ModuleConfig, config *config.Config) error { diff --git a/internal/gojs/runtime.go b/internal/gojs/runtime.go index eec1c86b..54592227 100644 --- a/internal/gojs/runtime.go +++ b/internal/gojs/runtime.go @@ -5,11 +5,11 @@ import ( "fmt" "time" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/goarch" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/goarch" + "github.com/wasilibs/wazerox/internal/wasm" ) // Debug has unknown use, so stubbed. diff --git a/internal/gojs/state.go b/internal/gojs/state.go index a0ac6c92..c55062fb 100644 --- a/internal/gojs/state.go +++ b/internal/gojs/state.go @@ -5,10 +5,10 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/gojs/goos" - "github.com/tetratelabs/wazero/internal/gojs/values" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/gojs/values" ) func NewState(config *config.Config) *State { diff --git a/internal/gojs/syscall.go b/internal/gojs/syscall.go index 6594caf8..ef9efd0c 100644 --- a/internal/gojs/syscall.go +++ b/internal/gojs/syscall.go @@ -4,11 +4,11 @@ import ( "context" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/goarch" - "github.com/tetratelabs/wazero/internal/gojs/goos" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/goarch" + "github.com/wasilibs/wazerox/internal/gojs/goos" + "github.com/wasilibs/wazerox/sys" ) // FinalizeRef implements js.finalizeRef, which is used as a diff --git a/internal/gojs/testdata/main.go b/internal/gojs/testdata/main.go index a389d4e4..8d283911 100644 --- a/internal/gojs/testdata/main.go +++ b/internal/gojs/testdata/main.go @@ -4,17 +4,17 @@ import ( "fmt" "os" - "github.com/tetratelabs/wazero/internal/gojs/testdata/argsenv" - "github.com/tetratelabs/wazero/internal/gojs/testdata/crypto" - "github.com/tetratelabs/wazero/internal/gojs/testdata/fs" - "github.com/tetratelabs/wazero/internal/gojs/testdata/gc" - "github.com/tetratelabs/wazero/internal/gojs/testdata/goroutine" - "github.com/tetratelabs/wazero/internal/gojs/testdata/mem" - "github.com/tetratelabs/wazero/internal/gojs/testdata/process" - "github.com/tetratelabs/wazero/internal/gojs/testdata/stdio" - "github.com/tetratelabs/wazero/internal/gojs/testdata/testfs" - "github.com/tetratelabs/wazero/internal/gojs/testdata/time" - "github.com/tetratelabs/wazero/internal/gojs/testdata/writefs" + "github.com/wasilibs/wazerox/internal/gojs/testdata/argsenv" + "github.com/wasilibs/wazerox/internal/gojs/testdata/crypto" + "github.com/wasilibs/wazerox/internal/gojs/testdata/fs" + "github.com/wasilibs/wazerox/internal/gojs/testdata/gc" + "github.com/wasilibs/wazerox/internal/gojs/testdata/goroutine" + "github.com/wasilibs/wazerox/internal/gojs/testdata/mem" + "github.com/wasilibs/wazerox/internal/gojs/testdata/process" + "github.com/wasilibs/wazerox/internal/gojs/testdata/stdio" + "github.com/wasilibs/wazerox/internal/gojs/testdata/testfs" + "github.com/wasilibs/wazerox/internal/gojs/testdata/time" + "github.com/wasilibs/wazerox/internal/gojs/testdata/writefs" ) // main includes a registry of all tests to reduce compilation time. diff --git a/internal/gojs/testdata/testfs/main.go b/internal/gojs/testdata/testfs/main.go index 1d8cc3d5..d27484bc 100644 --- a/internal/gojs/testdata/testfs/main.go +++ b/internal/gojs/testdata/testfs/main.go @@ -6,7 +6,7 @@ import ( "log" "os" - "github.com/tetratelabs/wazero/internal/fstest" + "github.com/wasilibs/wazerox/internal/fstest" ) func Main() { diff --git a/internal/gojs/testdata/writefs/stat.go b/internal/gojs/testdata/writefs/stat.go index 8091840b..8a74a728 100644 --- a/internal/gojs/testdata/writefs/stat.go +++ b/internal/gojs/testdata/writefs/stat.go @@ -3,7 +3,7 @@ package writefs import ( - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // statFields isn't used outside JS, it is only for compilation diff --git a/internal/gojs/time.go b/internal/gojs/time.go index 8b40b7d8..fed1187f 100644 --- a/internal/gojs/time.go +++ b/internal/gojs/time.go @@ -3,9 +3,9 @@ package gojs import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/goos" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/goos" ) var ( diff --git a/internal/gojs/time_test.go b/internal/gojs/time_test.go index eb7502d1..370f93f8 100644 --- a/internal/gojs/time_test.go +++ b/internal/gojs/time_test.go @@ -5,9 +5,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_time(t *testing.T) { diff --git a/internal/gojs/util/util.go b/internal/gojs/util/util.go index 5fc29aab..9346d74d 100644 --- a/internal/gojs/util/util.go +++ b/internal/gojs/util/util.go @@ -4,9 +4,9 @@ import ( "fmt" pathutil "path" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/wasm" ) // MustWrite is like api.Memory except that it panics if the offset diff --git a/internal/gojs/util/util_test.go b/internal/gojs/util/util_test.go index db02beb6..7b637c7b 100644 --- a/internal/gojs/util/util_test.go +++ b/internal/gojs/util/util_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestMustRead(t *testing.T) { diff --git a/internal/gojs/values/values.go b/internal/gojs/values/values.go index 53dce81a..dbaadea8 100644 --- a/internal/gojs/values/values.go +++ b/internal/gojs/values/values.go @@ -3,7 +3,7 @@ package values import ( "fmt" - "github.com/tetratelabs/wazero/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/gojs/goos" ) func NewValues() *Values { diff --git a/internal/gojs/values/values_test.go b/internal/gojs/values/values_test.go index 1b84cf32..7df2bb1d 100644 --- a/internal/gojs/values/values_test.go +++ b/internal/gojs/values/values_test.go @@ -3,8 +3,8 @@ package values import ( "testing" - "github.com/tetratelabs/wazero/internal/gojs/goos" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_Values(t *testing.T) { diff --git a/internal/integration_test/bench/bench_test.go b/internal/integration_test/bench/bench_test.go index 5cf46856..cb334584 100644 --- a/internal/integration_test/bench/bench_test.go +++ b/internal/integration_test/bench/bench_test.go @@ -8,10 +8,10 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/platform" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/platform" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/internal/integration_test/bench/decoder_bench_test.go b/internal/integration_test/bench/decoder_bench_test.go index c2c2ed5b..008cecd5 100644 --- a/internal/integration_test/bench/decoder_bench_test.go +++ b/internal/integration_test/bench/decoder_bench_test.go @@ -3,9 +3,9 @@ package bench import ( "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasm/binary" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm/binary" ) func BenchmarkCodec(b *testing.B) { diff --git a/internal/integration_test/bench/hostfunc_bench_test.go b/internal/integration_test/bench/hostfunc_bench_test.go index cd0a597c..8bb84188 100644 --- a/internal/integration_test/bench/hostfunc_bench_test.go +++ b/internal/integration_test/bench/hostfunc_bench_test.go @@ -7,11 +7,11 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/compiler" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/compiler" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) const ( diff --git a/internal/integration_test/bench/memory_bench_test.go b/internal/integration_test/bench/memory_bench_test.go index 558eae0b..64b3415e 100644 --- a/internal/integration_test/bench/memory_bench_test.go +++ b/internal/integration_test/bench/memory_bench_test.go @@ -3,7 +3,7 @@ package bench import ( "testing" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) func BenchmarkMemory(b *testing.B) { diff --git a/internal/integration_test/engine/adhoc_test.go b/internal/integration_test/engine/adhoc_test.go index 0e8bb696..2fd8f3b4 100644 --- a/internal/integration_test/engine/adhoc_test.go +++ b/internal/integration_test/engine/adhoc_test.go @@ -14,22 +14,21 @@ import ( "time" "unsafe" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/experimental/table" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/proxy" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasm/binary" - "github.com/tetratelabs/wazero/internal/wasmdebug" - "github.com/tetratelabs/wazero/internal/wasmruntime" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/experimental/table" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/proxy" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm/binary" + "github.com/wasilibs/wazerox/internal/wasmdebug" + "github.com/wasilibs/wazerox/internal/wasmruntime" + "github.com/wasilibs/wazerox/sys" ) type testCase struct { diff --git a/internal/integration_test/engine/dwarf_test.go b/internal/integration_test/engine/dwarf_test.go index cc93e4f6..bb41e564 100644 --- a/internal/integration_test/engine/dwarf_test.go +++ b/internal/integration_test/engine/dwarf_test.go @@ -7,12 +7,12 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/dwarftestdata" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/dwarftestdata" + "github.com/wasilibs/wazerox/internal/testing/require" ) var dwarfTests = map[string]testCase{ diff --git a/internal/integration_test/engine/hammer_test.go b/internal/integration_test/engine/hammer_test.go index eb360a06..d99fc605 100644 --- a/internal/integration_test/engine/hammer_test.go +++ b/internal/integration_test/engine/hammer_test.go @@ -6,13 +6,13 @@ import ( "sync" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/hammer" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/hammer" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) var hammers = map[string]testCase{ diff --git a/internal/integration_test/engine/memleak_test.go b/internal/integration_test/engine/memleak_test.go index d1d98abc..bc19f325 100644 --- a/internal/integration_test/engine/memleak_test.go +++ b/internal/integration_test/engine/memleak_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/engine/wazevo" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/engine/wazevo" ) func TestMemoryLeak(t *testing.T) { diff --git a/internal/integration_test/engine/threads_test.go b/internal/integration_test/engine/threads_test.go index c01fcdef..38a081d3 100644 --- a/internal/integration_test/engine/threads_test.go +++ b/internal/integration_test/engine/threads_test.go @@ -4,11 +4,11 @@ import ( _ "embed" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/testing/hammer" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/testing/hammer" + "github.com/wasilibs/wazerox/internal/testing/require" ) // We do not currently have hammer tests for bitwise and/or operations. The tests are designed to have diff --git a/internal/integration_test/filecache/filecache_test.go b/internal/integration_test/filecache/filecache_test.go index c5129a2a..7386a22c 100644 --- a/internal/integration_test/filecache/filecache_test.go +++ b/internal/integration_test/filecache/filecache_test.go @@ -11,17 +11,17 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/integration_test/spectest" - v1 "github.com/tetratelabs/wazero/internal/integration_test/spectest/v1" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/integration_test/spectest" + v1 "github.com/wasilibs/wazerox/internal/integration_test/spectest/v1" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestFileCacheSpecTest_compiler(t *testing.T) { diff --git a/internal/integration_test/fuzz/go.mod b/internal/integration_test/fuzz/go.mod index 3b4825e6..c1b27524 100644 --- a/internal/integration_test/fuzz/go.mod +++ b/internal/integration_test/fuzz/go.mod @@ -1,7 +1,7 @@ -module github.com/tetratelabs/wazero/internal/integration_test/fuzz +module github.com/wasilibs/wazerox/internal/integration_test/fuzz go 1.19 -require github.com/tetratelabs/wazero v0.0.0 +require github.com/wasilibs/wazerox v0.0.0 -replace github.com/tetratelabs/wazero => ../../../ +replace github.com/wasilibs/wazerox => ../../../ diff --git a/internal/integration_test/fuzz/wazerolib/lib.go b/internal/integration_test/fuzz/wazerolib/lib.go index 70fc86dc..f134cb90 100644 --- a/internal/integration_test/fuzz/wazerolib/lib.go +++ b/internal/integration_test/fuzz/wazerolib/lib.go @@ -8,8 +8,7 @@ import ( "os" "path" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/engine/wazevo" ) func main() {} diff --git a/internal/integration_test/fuzz/wazerolib/nodiff.go b/internal/integration_test/fuzz/wazerolib/nodiff.go index 2ced68f8..99c6182e 100644 --- a/internal/integration_test/fuzz/wazerolib/nodiff.go +++ b/internal/integration_test/fuzz/wazerolib/nodiff.go @@ -10,10 +10,9 @@ import ( "strings" "unsafe" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/wasm" ) // require_no_diff ensures that the behavior is the same between the compiler and the interpreter for any given binary. diff --git a/internal/integration_test/fuzz/wazerolib/nodiff_test.go b/internal/integration_test/fuzz/wazerolib/nodiff_test.go index 9807f7e7..5b250bae 100644 --- a/internal/integration_test/fuzz/wazerolib/nodiff_test.go +++ b/internal/integration_test/fuzz/wazerolib/nodiff_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) // TestReRunFailedRequireNoDiffCase re-runs the failed case specified by WASM_BINARY_NAME in testdata directory. diff --git a/internal/integration_test/fuzz/wazerolib/validate.go b/internal/integration_test/fuzz/wazerolib/validate.go index 67e06e60..e802dbb0 100644 --- a/internal/integration_test/fuzz/wazerolib/validate.go +++ b/internal/integration_test/fuzz/wazerolib/validate.go @@ -6,7 +6,7 @@ import ( "reflect" "unsafe" - "github.com/tetratelabs/wazero" + "github.com/wasilibs/wazerox" ) // validate accepts maybe-invalid Wasm module bytes and ensures that our validation phase works correctly diff --git a/internal/integration_test/fuzzcases/fuzzcases_test.go b/internal/integration_test/fuzzcases/fuzzcases_test.go index f4daf903..aa14632d 100644 --- a/internal/integration_test/fuzzcases/fuzzcases_test.go +++ b/internal/integration_test/fuzzcases/fuzzcases_test.go @@ -7,13 +7,13 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) var ctx = context.Background() diff --git a/internal/integration_test/spectest/spectest.go b/internal/integration_test/spectest/spectest.go index 87bc6fa1..f3eaf189 100644 --- a/internal/integration_test/spectest/spectest.go +++ b/internal/integration_test/spectest/spectest.go @@ -10,12 +10,12 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/moremath" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasmruntime" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/moremath" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasmruntime" ) type ( @@ -339,7 +339,7 @@ func Run(t *testing.T, testDataFS embed.FS, ctx context.Context, config wazero.R } // If the go:embed path resolution was wrong, this fails. - // https://github.com/tetratelabs/wazero/issues/247 + // https://github.com/wasilibs/wazerox/issues/247 require.True(t, len(caseNames) > 0, "len(caseNames)=%d (not greater than zero)", len(caseNames)) for _, f := range caseNames { diff --git a/internal/integration_test/spectest/spectest_test.go b/internal/integration_test/spectest/spectest_test.go index ed8b3b8d..f436328c 100644 --- a/internal/integration_test/spectest/spectest_test.go +++ b/internal/integration_test/spectest/spectest_test.go @@ -5,9 +5,9 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/moremath" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/moremath" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_f32Equal(t *testing.T) { diff --git a/internal/integration_test/spectest/threads/spec_test.go b/internal/integration_test/spectest/threads/spec_test.go index df5a19d9..acdac1fc 100644 --- a/internal/integration_test/spectest/threads/spec_test.go +++ b/internal/integration_test/spectest/threads/spec_test.go @@ -5,11 +5,11 @@ import ( "embed" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/integration_test/spectest" - "github.com/tetratelabs/wazero/internal/platform" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/integration_test/spectest" + "github.com/wasilibs/wazerox/internal/platform" ) //go:embed testdata/*.wasm diff --git a/internal/integration_test/spectest/v1/spec_test.go b/internal/integration_test/spectest/v1/spec_test.go index 2d36f493..074cd41a 100644 --- a/internal/integration_test/spectest/v1/spec_test.go +++ b/internal/integration_test/spectest/v1/spec_test.go @@ -5,11 +5,11 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/integration_test/spectest" - "github.com/tetratelabs/wazero/internal/platform" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/integration_test/spectest" + "github.com/wasilibs/wazerox/internal/platform" ) func TestCompiler(t *testing.T) { diff --git a/internal/integration_test/spectest/v2/spec_test.go b/internal/integration_test/spectest/v2/spec_test.go index 5fe3b99f..938b2b73 100644 --- a/internal/integration_test/spectest/v2/spec_test.go +++ b/internal/integration_test/spectest/v2/spec_test.go @@ -5,11 +5,11 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/integration_test/spectest" - "github.com/tetratelabs/wazero/internal/platform" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/integration_test/spectest" + "github.com/wasilibs/wazerox/internal/platform" ) const enabledFeatures = api.CoreFeaturesV2 diff --git a/internal/integration_test/vs/bench.go b/internal/integration_test/vs/bench.go index 767f19de..4cbe0d08 100644 --- a/internal/integration_test/vs/bench.go +++ b/internal/integration_test/vs/bench.go @@ -10,7 +10,7 @@ import ( "testing" "text/tabwriter" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. @@ -18,13 +18,13 @@ var testCtx = context.WithValue(context.Background(), struct{}{}, "arbitrary") // ensureCompilerFastest is overridable via ldflags. e.g. // -// -ldflags '-X github.com/tetratelabs/wazero/internal/integration_test/vs.ensureCompilerFastest=true' +// -ldflags '-X github.com/wasilibs/wazerox/internal/integration_test/vs.ensureCompilerFastest=true' var ensureCompilerFastest = "false" const compilerRuntime = "wazero-compiler" // runTestBenchmark_Call_CompilerFastest ensures that Compiler is the fastest engine for function invocations. -// This is disabled by default, and can be run with -ldflags '-X github.com/tetratelabs/wazero/vs.ensureCompilerFastest=true'. +// This is disabled by default, and can be run with -ldflags '-X github.com/wasilibs/wazerox/vs.ensureCompilerFastest=true'. func runTestBenchmark_Call_CompilerFastest(t *testing.T, rtCfg *RuntimeConfig, name string, call func(Module, int) error, vsRuntime Runtime) { if ensureCompilerFastest != "true" { t.Skip() diff --git a/internal/integration_test/vs/bench_allocation.go b/internal/integration_test/vs/bench_allocation.go index 382b65d2..cae8cf4e 100644 --- a/internal/integration_test/vs/bench_allocation.go +++ b/internal/integration_test/vs/bench_allocation.go @@ -6,7 +6,7 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) var ( diff --git a/internal/integration_test/vs/bench_factorial.go b/internal/integration_test/vs/bench_factorial.go index 7cb94284..cc04cc75 100644 --- a/internal/integration_test/vs/bench_factorial.go +++ b/internal/integration_test/vs/bench_factorial.go @@ -4,7 +4,7 @@ import ( _ "embed" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) var ( diff --git a/internal/integration_test/vs/bench_hostcall.go b/internal/integration_test/vs/bench_hostcall.go index 85502af3..42b2d0e9 100644 --- a/internal/integration_test/vs/bench_hostcall.go +++ b/internal/integration_test/vs/bench_hostcall.go @@ -4,7 +4,7 @@ import ( _ "embed" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) var ( diff --git a/internal/integration_test/vs/bench_memory.go b/internal/integration_test/vs/bench_memory.go index 4cc99036..7153d080 100644 --- a/internal/integration_test/vs/bench_memory.go +++ b/internal/integration_test/vs/bench_memory.go @@ -6,7 +6,7 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) const ( diff --git a/internal/integration_test/vs/bench_shorthash.go b/internal/integration_test/vs/bench_shorthash.go index b5d112ba..c082d812 100644 --- a/internal/integration_test/vs/bench_shorthash.go +++ b/internal/integration_test/vs/bench_shorthash.go @@ -7,7 +7,7 @@ import ( var ( // shorthashWasm is a wasi binary which runs the same wasm function inside - // a loop. See https://github.com/tetratelabs/wazero/issues/947 + // a loop. See https://github.com/wasilibs/wazerox/issues/947 // // Taken from https://github.com/jedisct1/webassembly-benchmarks/tree/master/2022-12/wasm //go:embed testdata/shorthash.wasm diff --git a/internal/integration_test/vs/compiler/compiler_test.go b/internal/integration_test/vs/compiler/compiler_test.go index 2c711f9e..22bfeef1 100644 --- a/internal/integration_test/vs/compiler/compiler_test.go +++ b/internal/integration_test/vs/compiler/compiler_test.go @@ -3,7 +3,7 @@ package compiler import ( "testing" - "github.com/tetratelabs/wazero/internal/integration_test/vs" + "github.com/wasilibs/wazerox/internal/integration_test/vs" ) var runtime = vs.NewWazeroCompilerRuntime diff --git a/internal/integration_test/vs/interpreter/interpreter_test.go b/internal/integration_test/vs/interpreter/interpreter_test.go index 84090af8..c21ab0f3 100644 --- a/internal/integration_test/vs/interpreter/interpreter_test.go +++ b/internal/integration_test/vs/interpreter/interpreter_test.go @@ -3,7 +3,7 @@ package interpreter import ( "testing" - "github.com/tetratelabs/wazero/internal/integration_test/vs" + "github.com/wasilibs/wazerox/internal/integration_test/vs" ) var runtime = vs.NewWazeroInterpreterRuntime diff --git a/internal/integration_test/vs/runtime.go b/internal/integration_test/vs/runtime.go index 2c2a7b4e..df330cd1 100644 --- a/internal/integration_test/vs/runtime.go +++ b/internal/integration_test/vs/runtime.go @@ -5,10 +5,10 @@ import ( "errors" "fmt" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/wasm" ) type RuntimeConfig struct { diff --git a/internal/integration_test/vs/time/go.mod b/internal/integration_test/vs/time/go.mod index 6324ae81..d8d2a89e 100644 --- a/internal/integration_test/vs/time/go.mod +++ b/internal/integration_test/vs/time/go.mod @@ -1,7 +1,7 @@ -module github.com/tetratelabs/wazero/internal/integration_test/vs/clock +module github.com/wasilibs/wazerox/internal/integration_test/vs/clock go 1.19 require golang.org/x/sys v0.1.0 -replace github.com/tetratelabs/wazero => ../../../.. +replace github.com/wasilibs/wazerox => ../../../.. diff --git a/internal/integration_test/vs/wasmedge/go.mod b/internal/integration_test/vs/wasmedge/go.mod index 170b52db..3feb7de7 100644 --- a/internal/integration_test/vs/wasmedge/go.mod +++ b/internal/integration_test/vs/wasmedge/go.mod @@ -1,10 +1,10 @@ -module github.com/tetratelabs/wazero/internal/integration_test/vs/wasmedge +module github.com/wasilibs/wazerox/internal/integration_test/vs/wasmedge go 1.19 require ( github.com/second-state/WasmEdge-go v0.12.1 - github.com/tetratelabs/wazero v0.0.0 + github.com/wasilibs/wazerox v0.0.0 ) -replace github.com/tetratelabs/wazero => ../../../.. +replace github.com/wasilibs/wazerox => ../../../.. diff --git a/internal/integration_test/vs/wasmedge/wasmedge.go b/internal/integration_test/vs/wasmedge/wasmedge.go index 50798d3f..03f81274 100644 --- a/internal/integration_test/vs/wasmedge/wasmedge.go +++ b/internal/integration_test/vs/wasmedge/wasmedge.go @@ -13,7 +13,7 @@ import ( "github.com/second-state/WasmEdge-go/wasmedge" - "github.com/tetratelabs/wazero/internal/integration_test/vs" + "github.com/wasilibs/wazerox/internal/integration_test/vs" ) func newWasmedgeRuntime() vs.Runtime { diff --git a/internal/integration_test/vs/wasmedge/wasmedge_test.go b/internal/integration_test/vs/wasmedge/wasmedge_test.go index 1f20c11d..8ddc7985 100644 --- a/internal/integration_test/vs/wasmedge/wasmedge_test.go +++ b/internal/integration_test/vs/wasmedge/wasmedge_test.go @@ -7,7 +7,7 @@ package wasmedge import ( "testing" - "github.com/tetratelabs/wazero/internal/integration_test/vs" + "github.com/wasilibs/wazerox/internal/integration_test/vs" ) var runtime = newWasmedgeRuntime diff --git a/internal/integration_test/vs/wasmtime/go.mod b/internal/integration_test/vs/wasmtime/go.mod index ee0b4449..9db5aad4 100644 --- a/internal/integration_test/vs/wasmtime/go.mod +++ b/internal/integration_test/vs/wasmtime/go.mod @@ -1,10 +1,10 @@ -module github.com/tetratelabs/wazero/internal/integration_test/vs/wasmtime +module github.com/wasilibs/wazerox/internal/integration_test/vs/wasmtime go 1.19 require ( github.com/bytecodealliance/wasmtime-go/v9 v9.0.0 - github.com/tetratelabs/wazero v0.0.0 + github.com/wasilibs/wazerox v0.0.0 ) -replace github.com/tetratelabs/wazero => ../../../.. +replace github.com/wasilibs/wazerox => ../../../.. diff --git a/internal/integration_test/vs/wasmtime/wasmtime.go b/internal/integration_test/vs/wasmtime/wasmtime.go index 9ba1794a..070ec00a 100644 --- a/internal/integration_test/vs/wasmtime/wasmtime.go +++ b/internal/integration_test/vs/wasmtime/wasmtime.go @@ -8,7 +8,7 @@ import ( wt "github.com/bytecodealliance/wasmtime-go/v9" - "github.com/tetratelabs/wazero/internal/integration_test/vs" + "github.com/wasilibs/wazerox/internal/integration_test/vs" ) func newWasmtimeRuntime() vs.Runtime { diff --git a/internal/integration_test/vs/wasmtime/wasmtime_test.go b/internal/integration_test/vs/wasmtime/wasmtime_test.go index 8e6235f8..da8d6446 100644 --- a/internal/integration_test/vs/wasmtime/wasmtime_test.go +++ b/internal/integration_test/vs/wasmtime/wasmtime_test.go @@ -5,7 +5,7 @@ package wasmtime import ( "testing" - "github.com/tetratelabs/wazero/internal/integration_test/vs" + "github.com/wasilibs/wazerox/internal/integration_test/vs" ) var runtime = newWasmtimeRuntime diff --git a/internal/leb128/leb128_alloc_test.go b/internal/leb128/leb128_alloc_test.go index ccc9d0eb..9070658b 100644 --- a/internal/leb128/leb128_alloc_test.go +++ b/internal/leb128/leb128_alloc_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) // TestLeb128NoAlloc ensures no allocation required in the leb128 package. diff --git a/internal/leb128/leb128_test.go b/internal/leb128/leb128_test.go index d8532afc..aaf47eda 100644 --- a/internal/leb128/leb128_test.go +++ b/internal/leb128/leb128_test.go @@ -6,7 +6,7 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestEncode_DecodeInt32(t *testing.T) { diff --git a/internal/logging/logging.go b/internal/logging/logging.go index 760585b2..d13e6216 100644 --- a/internal/logging/logging.go +++ b/internal/logging/logging.go @@ -10,7 +10,7 @@ import ( "strconv" "strings" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox/api" ) // ValueType is an extended form of api.ValueType, used to control logging in diff --git a/internal/logging/logging_test.go b/internal/logging/logging_test.go index a4cc7c78..9a3e90c8 100644 --- a/internal/logging/logging_test.go +++ b/internal/logging/logging_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) // TestLogScopes tests the bitset works as expected diff --git a/internal/moremath/moremath_test.go b/internal/moremath/moremath_test.go index 41974b3b..e193f8a0 100644 --- a/internal/moremath/moremath_test.go +++ b/internal/moremath/moremath_test.go @@ -4,7 +4,7 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) var ( diff --git a/internal/platform/cpuid_amd64_test.go b/internal/platform/cpuid_amd64_test.go index 05e3d4a3..e6eb60db 100644 --- a/internal/platform/cpuid_amd64_test.go +++ b/internal/platform/cpuid_amd64_test.go @@ -3,7 +3,7 @@ package platform import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAmd64CpuId_cpuHasFeature(t *testing.T) { diff --git a/internal/platform/mmap_linux_test.go b/internal/platform/mmap_linux_test.go index 5f4a6b79..9022da61 100644 --- a/internal/platform/mmap_linux_test.go +++ b/internal/platform/mmap_linux_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestHugePageConfigs(t *testing.T) { diff --git a/internal/platform/mmap_test.go b/internal/platform/mmap_test.go index 74496083..2f134ea9 100644 --- a/internal/platform/mmap_test.go +++ b/internal/platform/mmap_test.go @@ -3,7 +3,7 @@ package platform import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_MmapCodeSegment(t *testing.T) { diff --git a/internal/platform/path_test.go b/internal/platform/path_test.go index e306c4c1..27ed6b0d 100644 --- a/internal/platform/path_test.go +++ b/internal/platform/path_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestToPosixPath(t *testing.T) { diff --git a/internal/platform/platform_test.go b/internal/platform/platform_test.go index 5cdce3f8..26fb3712 100644 --- a/internal/platform/platform_test.go +++ b/internal/platform/platform_test.go @@ -4,7 +4,7 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_archRequirementsVerified(t *testing.T) { diff --git a/internal/platform/time.go b/internal/platform/time.go index fa9da1ac..6772e640 100644 --- a/internal/platform/time.go +++ b/internal/platform/time.go @@ -4,7 +4,7 @@ import ( "sync/atomic" "time" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/sys" ) const ( diff --git a/internal/platform/time_test.go b/internal/platform/time_test.go index 8454a714..7438f167 100644 --- a/internal/platform/time_test.go +++ b/internal/platform/time_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) func Test_NewFakeWalltime(t *testing.T) { diff --git a/internal/sock/sock.go b/internal/sock/sock.go index ca17aa39..6ee49df3 100644 --- a/internal/sock/sock.go +++ b/internal/sock/sock.go @@ -4,7 +4,7 @@ import ( "fmt" "net" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // TCPSock is a pseudo-file representing a TCP socket. diff --git a/internal/sys/fs.go b/internal/sys/fs.go index 332a9526..0a6b4bfb 100644 --- a/internal/sys/fs.go +++ b/internal/sys/fs.go @@ -5,11 +5,11 @@ import ( "io/fs" "net" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/descriptor" - "github.com/tetratelabs/wazero/internal/fsapi" - socketapi "github.com/tetratelabs/wazero/internal/sock" - "github.com/tetratelabs/wazero/internal/sysfs" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/descriptor" + "github.com/wasilibs/wazerox/internal/fsapi" + socketapi "github.com/wasilibs/wazerox/internal/sock" + "github.com/wasilibs/wazerox/internal/sysfs" ) const ( diff --git a/internal/sys/fs_test.go b/internal/sys/fs_test.go index 1719dae3..d8c60d11 100644 --- a/internal/sys/fs_test.go +++ b/internal/sys/fs_test.go @@ -10,11 +10,11 @@ import ( "testing" gofstest "testing/fstest" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/sysfs" - testfs "github.com/tetratelabs/wazero/internal/testing/fs" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/sysfs" + testfs "github.com/wasilibs/wazerox/internal/testing/fs" + "github.com/wasilibs/wazerox/internal/testing/require" ) //go:embed testdata diff --git a/internal/sys/lazy.go b/internal/sys/lazy.go index fe233d29..e940c569 100644 --- a/internal/sys/lazy.go +++ b/internal/sys/lazy.go @@ -1,9 +1,9 @@ package sys import ( - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/sys" ) // compile-time check to ensure lazyDir implements sys.File. diff --git a/internal/sys/stdio.go b/internal/sys/stdio.go index 32c33661..fcbb5e58 100644 --- a/internal/sys/stdio.go +++ b/internal/sys/stdio.go @@ -4,10 +4,10 @@ import ( "io" "os" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/internal/sysfs" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/internal/sysfs" + "github.com/wasilibs/wazerox/sys" ) // StdinFile is a fs.ModeDevice file for use implementing FdStdin. diff --git a/internal/sys/stdio_test.go b/internal/sys/stdio_test.go index 0f2b321c..6aafd14d 100644 --- a/internal/sys/stdio_test.go +++ b/internal/sys/stdio_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestStdio(t *testing.T) { diff --git a/internal/sys/sys.go b/internal/sys/sys.go index 12279ee4..dde3465d 100644 --- a/internal/sys/sys.go +++ b/internal/sys/sys.go @@ -7,9 +7,9 @@ import ( "net" "time" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/sys" ) // Context holds module-scoped system resources currently only supported by diff --git a/internal/sys/sys_test.go b/internal/sys/sys_test.go index 5949d27b..e2eb353c 100644 --- a/internal/sys/sys_test.go +++ b/internal/sys/sys_test.go @@ -5,12 +5,12 @@ import ( "testing" "time" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/sysfs" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/sysfs" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) func TestContext_WalltimeNanos(t *testing.T) { diff --git a/internal/sysfs/adapter.go b/internal/sysfs/adapter.go index 51a9a548..2f811d97 100644 --- a/internal/sysfs/adapter.go +++ b/internal/sysfs/adapter.go @@ -5,8 +5,8 @@ import ( "io/fs" "path" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) type AdaptFS struct { diff --git a/internal/sysfs/adapter_test.go b/internal/sysfs/adapter_test.go index 75b4f3b1..1d3338c8 100644 --- a/internal/sysfs/adapter_test.go +++ b/internal/sysfs/adapter_test.go @@ -11,10 +11,10 @@ import ( "syscall" "testing" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) func TestAdaptFS_MkDir(t *testing.T) { diff --git a/internal/sysfs/bench_test.go b/internal/sysfs/bench_test.go index 34620972..0ee7a9de 100644 --- a/internal/sysfs/bench_test.go +++ b/internal/sysfs/bench_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func BenchmarkFsFileUtimesNs(b *testing.B) { diff --git a/internal/sysfs/datasync_linux.go b/internal/sysfs/datasync_linux.go index c37e698d..4361e208 100644 --- a/internal/sysfs/datasync_linux.go +++ b/internal/sysfs/datasync_linux.go @@ -6,7 +6,7 @@ import ( "os" "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func datasync(f *os.File) sys.Errno { diff --git a/internal/sysfs/datasync_unsupported.go b/internal/sysfs/datasync_unsupported.go index aa05719b..06fbba84 100644 --- a/internal/sysfs/datasync_unsupported.go +++ b/internal/sysfs/datasync_unsupported.go @@ -5,7 +5,7 @@ package sysfs import ( "os" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func datasync(f *os.File) sys.Errno { diff --git a/internal/sysfs/dir.go b/internal/sysfs/dir.go index f9823287..46a3d3ae 100644 --- a/internal/sysfs/dir.go +++ b/internal/sysfs/dir.go @@ -3,7 +3,7 @@ package sysfs import ( "io" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func adjustReaddirErr(f sys.File, isClosed bool, err error) sys.Errno { diff --git a/internal/sysfs/dir_test.go b/internal/sysfs/dir_test.go index 8229bdcb..c51e6a08 100644 --- a/internal/sysfs/dir_test.go +++ b/internal/sysfs/dir_test.go @@ -8,10 +8,10 @@ import ( "sort" "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/sysfs" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/sysfs" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestFSFileReaddir(t *testing.T) { diff --git a/internal/sysfs/dirfs.go b/internal/sysfs/dirfs.go index 05d5b647..69cf5212 100644 --- a/internal/sysfs/dirfs.go +++ b/internal/sysfs/dirfs.go @@ -4,9 +4,9 @@ import ( "io/fs" "os" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/sys" ) func DirFS(dir string) experimentalsys.FS { diff --git a/internal/sysfs/dirfs_test.go b/internal/sysfs/dirfs_test.go index d2826898..451d395a 100644 --- a/internal/sysfs/dirfs_test.go +++ b/internal/sysfs/dirfs_test.go @@ -10,10 +10,10 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestDirFS(t *testing.T) { diff --git a/internal/sysfs/file.go b/internal/sysfs/file.go index 9a77205b..7be23a88 100644 --- a/internal/sysfs/file.go +++ b/internal/sysfs/file.go @@ -6,9 +6,9 @@ import ( "os" "time" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/sys" ) func NewStdioFile(stdin bool, f fs.File) (fsapi.File, error) { diff --git a/internal/sysfs/file_test.go b/internal/sysfs/file_test.go index b27b2bc4..6618cf56 100644 --- a/internal/sysfs/file_test.go +++ b/internal/sysfs/file_test.go @@ -10,11 +10,11 @@ import ( "testing" gofstest "testing/fstest" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) //go:embed file_test.go diff --git a/internal/sysfs/file_unix.go b/internal/sysfs/file_unix.go index 92eaf354..42781ffc 100644 --- a/internal/sysfs/file_unix.go +++ b/internal/sysfs/file_unix.go @@ -5,7 +5,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const ( diff --git a/internal/sysfs/file_unsupported.go b/internal/sysfs/file_unsupported.go index e74a8e4d..e48993a9 100644 --- a/internal/sysfs/file_unsupported.go +++ b/internal/sysfs/file_unsupported.go @@ -5,7 +5,7 @@ package sysfs import ( "os" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const ( diff --git a/internal/sysfs/file_windows.go b/internal/sysfs/file_windows.go index 3ad9648e..60d0a1c7 100644 --- a/internal/sysfs/file_windows.go +++ b/internal/sysfs/file_windows.go @@ -4,7 +4,7 @@ import ( "syscall" "unsafe" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const ( diff --git a/internal/sysfs/futimens.go b/internal/sysfs/futimens.go index 1f670ca1..2479c7c8 100644 --- a/internal/sysfs/futimens.go +++ b/internal/sysfs/futimens.go @@ -6,7 +6,7 @@ import ( "syscall" "unsafe" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func timesToPtr(times *[2]syscall.Timespec) unsafe.Pointer { //nolint:unused diff --git a/internal/sysfs/futimens_darwin.go b/internal/sysfs/futimens_darwin.go index 88e4008f..046662c6 100644 --- a/internal/sysfs/futimens_darwin.go +++ b/internal/sysfs/futimens_darwin.go @@ -4,7 +4,7 @@ import ( "syscall" _ "unsafe" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" ) const ( diff --git a/internal/sysfs/futimens_linux.go b/internal/sysfs/futimens_linux.go index 3ec68537..b24b5ec0 100644 --- a/internal/sysfs/futimens_linux.go +++ b/internal/sysfs/futimens_linux.go @@ -5,7 +5,7 @@ import ( "unsafe" _ "unsafe" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" ) const ( diff --git a/internal/sysfs/futimens_test.go b/internal/sysfs/futimens_test.go index 5e690b0d..f2383af6 100644 --- a/internal/sysfs/futimens_test.go +++ b/internal/sysfs/futimens_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestUtimens(t *testing.T) { diff --git a/internal/sysfs/futimens_unsupported.go b/internal/sysfs/futimens_unsupported.go index c78a16b4..892aaa0a 100644 --- a/internal/sysfs/futimens_unsupported.go +++ b/internal/sysfs/futimens_unsupported.go @@ -3,7 +3,7 @@ package sysfs import ( - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func utimens(path string, atim, mtim int64) sys.Errno { diff --git a/internal/sysfs/futimens_windows.go b/internal/sysfs/futimens_windows.go index 3a5289b7..d62eec22 100644 --- a/internal/sysfs/futimens_windows.go +++ b/internal/sysfs/futimens_windows.go @@ -3,8 +3,8 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/platform" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/platform" ) func utimens(path string, atim, mtim int64) sys.Errno { diff --git a/internal/sysfs/ino.go b/internal/sysfs/ino.go index 703f1136..dca629d4 100644 --- a/internal/sysfs/ino.go +++ b/internal/sysfs/ino.go @@ -6,8 +6,8 @@ import ( "io/fs" "syscall" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) func inoFromFileInfo(_ string, info fs.FileInfo) (sys.Inode, experimentalsys.Errno) { diff --git a/internal/sysfs/ino_plan9.go b/internal/sysfs/ino_plan9.go index 9c669a47..230beee8 100644 --- a/internal/sysfs/ino_plan9.go +++ b/internal/sysfs/ino_plan9.go @@ -3,8 +3,8 @@ package sysfs import ( "io/fs" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) func inoFromFileInfo(_ string, info fs.FileInfo) (sys.Inode, experimentalsys.Errno) { diff --git a/internal/sysfs/ino_windows.go b/internal/sysfs/ino_windows.go index d163b360..f04d3777 100644 --- a/internal/sysfs/ino_windows.go +++ b/internal/sysfs/ino_windows.go @@ -4,8 +4,8 @@ import ( "io/fs" "path" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) // inoFromFileInfo uses stat to get the inode information of the file. diff --git a/internal/sysfs/nonblock_plan9.go b/internal/sysfs/nonblock_plan9.go index 8e94e592..ac3df6d6 100644 --- a/internal/sysfs/nonblock_plan9.go +++ b/internal/sysfs/nonblock_plan9.go @@ -1,6 +1,6 @@ package sysfs -import "github.com/tetratelabs/wazero/experimental/sys" +import "github.com/wasilibs/wazerox/experimental/sys" func setNonblock(fd uintptr, enable bool) sys.Errno { return sys.ENOSYS diff --git a/internal/sysfs/nonblock_unix.go b/internal/sysfs/nonblock_unix.go index 07fb15cf..c341f33b 100644 --- a/internal/sysfs/nonblock_unix.go +++ b/internal/sysfs/nonblock_unix.go @@ -5,7 +5,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func setNonblock(fd uintptr, enable bool) sys.Errno { diff --git a/internal/sysfs/nonblock_windows.go b/internal/sysfs/nonblock_windows.go index eb38ea5a..70d7b17a 100644 --- a/internal/sysfs/nonblock_windows.go +++ b/internal/sysfs/nonblock_windows.go @@ -4,7 +4,7 @@ import ( "io/fs" "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func setNonblock(fd uintptr, enable bool) sys.Errno { diff --git a/internal/sysfs/oflag.go b/internal/sysfs/oflag.go index be6d2c35..f77b8c26 100644 --- a/internal/sysfs/oflag.go +++ b/internal/sysfs/oflag.go @@ -3,7 +3,7 @@ package sysfs import ( "os" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // toOsOpenFlag converts the input to the flag parameter of os.OpenFile diff --git a/internal/sysfs/oflag_test.go b/internal/sysfs/oflag_test.go index 575a0373..4411b201 100644 --- a/internal/sysfs/oflag_test.go +++ b/internal/sysfs/oflag_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_toOsOpenFlag doesn't use subtests to reduce volume of verbose output, diff --git a/internal/sysfs/open_file_darwin.go b/internal/sysfs/open_file_darwin.go index a4f54ca2..96656561 100644 --- a/internal/sysfs/open_file_darwin.go +++ b/internal/sysfs/open_file_darwin.go @@ -3,7 +3,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const supportedSyscallOflag = sys.O_DIRECTORY | sys.O_DSYNC | sys.O_NOFOLLOW | sys.O_NONBLOCK diff --git a/internal/sysfs/open_file_freebsd.go b/internal/sysfs/open_file_freebsd.go index 42adaa21..bc00fea0 100644 --- a/internal/sysfs/open_file_freebsd.go +++ b/internal/sysfs/open_file_freebsd.go @@ -3,7 +3,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const supportedSyscallOflag = sys.O_DIRECTORY | sys.O_NOFOLLOW | sys.O_NONBLOCK diff --git a/internal/sysfs/open_file_linux.go b/internal/sysfs/open_file_linux.go index 7f491548..509a7b43 100644 --- a/internal/sysfs/open_file_linux.go +++ b/internal/sysfs/open_file_linux.go @@ -3,7 +3,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const supportedSyscallOflag = sys.O_DIRECTORY | sys.O_DSYNC | sys.O_NOFOLLOW | sys.O_NONBLOCK | sys.O_RSYNC diff --git a/internal/sysfs/open_file_notwindows.go b/internal/sysfs/open_file_notwindows.go index 9ae1e2bc..f6d1c5a4 100644 --- a/internal/sysfs/open_file_notwindows.go +++ b/internal/sysfs/open_file_notwindows.go @@ -6,7 +6,7 @@ import ( "io/fs" "os" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // openFile is like os.OpenFile except it accepts a sys.Oflag and returns diff --git a/internal/sysfs/open_file_sun.go b/internal/sysfs/open_file_sun.go index bdf7dd84..29b4e7eb 100644 --- a/internal/sysfs/open_file_sun.go +++ b/internal/sysfs/open_file_sun.go @@ -5,7 +5,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const supportedSyscallOflag = sys.O_DIRECTORY | sys.O_DSYNC | sys.O_NOFOLLOW | sys.O_NONBLOCK | sys.O_RSYNC diff --git a/internal/sysfs/open_file_test.go b/internal/sysfs/open_file_test.go index 1b4ea292..5ae9cc39 100644 --- a/internal/sysfs/open_file_test.go +++ b/internal/sysfs/open_file_test.go @@ -6,8 +6,8 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestOpenFile(t *testing.T) { diff --git a/internal/sysfs/open_file_unsupported.go b/internal/sysfs/open_file_unsupported.go index 9f7a6d08..b2def11f 100644 --- a/internal/sysfs/open_file_unsupported.go +++ b/internal/sysfs/open_file_unsupported.go @@ -3,7 +3,7 @@ package sysfs import ( - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const supportedSyscallOflag = sys.Oflag(0) diff --git a/internal/sysfs/open_file_windows.go b/internal/sysfs/open_file_windows.go index bcfbfbcd..b43a1741 100644 --- a/internal/sysfs/open_file_windows.go +++ b/internal/sysfs/open_file_windows.go @@ -7,8 +7,8 @@ import ( "syscall" "unsafe" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/platform" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/platform" ) func openFile(path string, oflag sys.Oflag, perm fs.FileMode) (*os.File, sys.Errno) { diff --git a/internal/sysfs/osfile.go b/internal/sysfs/osfile.go index 13bd418f..a5a9afa3 100644 --- a/internal/sysfs/osfile.go +++ b/internal/sysfs/osfile.go @@ -6,9 +6,9 @@ import ( "os" "runtime" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/sys" ) func newOsFile(path string, flag experimentalsys.Oflag, perm fs.FileMode, f *os.File) fsapi.File { diff --git a/internal/sysfs/poll.go b/internal/sysfs/poll.go index f5c98295..c25ed0aa 100644 --- a/internal/sysfs/poll.go +++ b/internal/sysfs/poll.go @@ -3,8 +3,8 @@ package sysfs import ( - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" ) // poll implements `Poll` as documented on sys.File via a file descriptor. diff --git a/internal/sysfs/poll_darwin.go b/internal/sysfs/poll_darwin.go index 1f7f8909..d3f830f5 100644 --- a/internal/sysfs/poll_darwin.go +++ b/internal/sysfs/poll_darwin.go @@ -3,7 +3,7 @@ package sysfs import ( "unsafe" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // pollFd is the struct to query for file descriptor events using poll. diff --git a/internal/sysfs/poll_linux.go b/internal/sysfs/poll_linux.go index dab7bb2c..007d4c63 100644 --- a/internal/sysfs/poll_linux.go +++ b/internal/sysfs/poll_linux.go @@ -5,7 +5,7 @@ import ( "time" "unsafe" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // pollFd is the struct to query for file descriptor events using poll. diff --git a/internal/sysfs/poll_test.go b/internal/sysfs/poll_test.go index 6f6b3559..036e8ac0 100644 --- a/internal/sysfs/poll_test.go +++ b/internal/sysfs/poll_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_poll(t *testing.T) { diff --git a/internal/sysfs/poll_unsupported.go b/internal/sysfs/poll_unsupported.go index ebe8a6fa..b7253f4b 100644 --- a/internal/sysfs/poll_unsupported.go +++ b/internal/sysfs/poll_unsupported.go @@ -3,8 +3,8 @@ package sysfs import ( - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" ) // poll implements `Poll` as documented on fsapi.File via a file descriptor. diff --git a/internal/sysfs/poll_windows.go b/internal/sysfs/poll_windows.go index 82c8b2ba..010e8cb1 100644 --- a/internal/sysfs/poll_windows.go +++ b/internal/sysfs/poll_windows.go @@ -5,7 +5,7 @@ import ( "time" "unsafe" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) var ( diff --git a/internal/sysfs/poll_windows_test.go b/internal/sysfs/poll_windows_test.go index 46e3e9a2..04796ecc 100644 --- a/internal/sysfs/poll_windows_test.go +++ b/internal/sysfs/poll_windows_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestPoll_Windows(t *testing.T) { diff --git a/internal/sysfs/readfs.go b/internal/sysfs/readfs.go index 59e331a2..d229f0cf 100644 --- a/internal/sysfs/readfs.go +++ b/internal/sysfs/readfs.go @@ -3,7 +3,7 @@ package sysfs import ( "io/fs" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" ) type ReadFS struct { diff --git a/internal/sysfs/readfs_test.go b/internal/sysfs/readfs_test.go index a8e21f1d..247c3dca 100644 --- a/internal/sysfs/readfs_test.go +++ b/internal/sysfs/readfs_test.go @@ -6,9 +6,9 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestNewReadFS(t *testing.T) { diff --git a/internal/sysfs/rename.go b/internal/sysfs/rename.go index f7d84ef7..e761c966 100644 --- a/internal/sysfs/rename.go +++ b/internal/sysfs/rename.go @@ -5,7 +5,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func rename(from, to string) sys.Errno { diff --git a/internal/sysfs/rename_plan9.go b/internal/sysfs/rename_plan9.go index 474cc759..98e9b352 100644 --- a/internal/sysfs/rename_plan9.go +++ b/internal/sysfs/rename_plan9.go @@ -3,7 +3,7 @@ package sysfs import ( "os" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func rename(from, to string) sys.Errno { diff --git a/internal/sysfs/rename_test.go b/internal/sysfs/rename_test.go index cc057e2f..04feae32 100644 --- a/internal/sysfs/rename_test.go +++ b/internal/sysfs/rename_test.go @@ -5,8 +5,8 @@ import ( "path" "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestRename(t *testing.T) { diff --git a/internal/sysfs/rename_windows.go b/internal/sysfs/rename_windows.go index 5e810223..e66fa02e 100644 --- a/internal/sysfs/rename_windows.go +++ b/internal/sysfs/rename_windows.go @@ -4,7 +4,7 @@ import ( "os" "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func rename(from, to string) sys.Errno { diff --git a/internal/sysfs/sock.go b/internal/sysfs/sock.go index af739a90..133996a0 100644 --- a/internal/sysfs/sock.go +++ b/internal/sysfs/sock.go @@ -4,9 +4,9 @@ import ( "net" "os" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - socketapi "github.com/tetratelabs/wazero/internal/sock" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + socketapi "github.com/wasilibs/wazerox/internal/sock" + "github.com/wasilibs/wazerox/sys" ) // NewTCPListenerFile creates a socketapi.TCPSock for a given *net.TCPListener. diff --git a/internal/sysfs/sock_test.go b/internal/sysfs/sock_test.go index 82b8ab56..bcf38e12 100644 --- a/internal/sysfs/sock_test.go +++ b/internal/sysfs/sock_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestTcpConnFile_Write(t *testing.T) { diff --git a/internal/sysfs/sock_unix.go b/internal/sysfs/sock_unix.go index 3698f560..5084c2fc 100644 --- a/internal/sysfs/sock_unix.go +++ b/internal/sysfs/sock_unix.go @@ -6,9 +6,9 @@ import ( "net" "syscall" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - socketapi "github.com/tetratelabs/wazero/internal/sock" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + socketapi "github.com/wasilibs/wazerox/internal/sock" ) // MSG_PEEK is the constant syscall.MSG_PEEK diff --git a/internal/sysfs/sock_unsupported.go b/internal/sysfs/sock_unsupported.go index 76a10a8b..e9e6dfda 100644 --- a/internal/sysfs/sock_unsupported.go +++ b/internal/sysfs/sock_unsupported.go @@ -5,8 +5,8 @@ package sysfs import ( "net" - "github.com/tetratelabs/wazero/experimental/sys" - socketapi "github.com/tetratelabs/wazero/internal/sock" + "github.com/wasilibs/wazerox/experimental/sys" + socketapi "github.com/wasilibs/wazerox/internal/sock" ) // MSG_PEEK is a filler value. diff --git a/internal/sysfs/sock_windows.go b/internal/sysfs/sock_windows.go index ed275e62..6bca6cd3 100644 --- a/internal/sysfs/sock_windows.go +++ b/internal/sysfs/sock_windows.go @@ -7,9 +7,9 @@ import ( "syscall" "unsafe" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - socketapi "github.com/tetratelabs/wazero/internal/sock" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + socketapi "github.com/wasilibs/wazerox/internal/sock" ) const ( diff --git a/internal/sysfs/stat.go b/internal/sysfs/stat.go index 2d973b16..fdbcffbc 100644 --- a/internal/sysfs/stat.go +++ b/internal/sysfs/stat.go @@ -3,8 +3,8 @@ package sysfs import ( "io/fs" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) func defaultStatFile(f fs.File) (sys.Stat_t, experimentalsys.Errno) { diff --git a/internal/sysfs/stat_bsd.go b/internal/sysfs/stat_bsd.go index 254e204c..e6982bfe 100644 --- a/internal/sysfs/stat_bsd.go +++ b/internal/sysfs/stat_bsd.go @@ -6,8 +6,8 @@ import ( "io/fs" "os" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) // dirNlinkIncludesDot is true because even though os.File filters out dot diff --git a/internal/sysfs/stat_linux.go b/internal/sysfs/stat_linux.go index fd289756..80f44d35 100644 --- a/internal/sysfs/stat_linux.go +++ b/internal/sysfs/stat_linux.go @@ -9,8 +9,8 @@ import ( "io/fs" "os" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) // dirNlinkIncludesDot is true because even though os.File filters out dot diff --git a/internal/sysfs/stat_test.go b/internal/sysfs/stat_test.go index 8dbaf5eb..3ae76da7 100644 --- a/internal/sysfs/stat_test.go +++ b/internal/sysfs/stat_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) func TestStat(t *testing.T) { diff --git a/internal/sysfs/stat_unsupported.go b/internal/sysfs/stat_unsupported.go index 4b05a897..393d8962 100644 --- a/internal/sysfs/stat_unsupported.go +++ b/internal/sysfs/stat_unsupported.go @@ -6,8 +6,8 @@ import ( "io/fs" "os" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) // Note: go:build constraints must be the same as /sys.stat_unsupported.go for diff --git a/internal/sysfs/stat_windows.go b/internal/sysfs/stat_windows.go index 4456dd78..cc6ef1e1 100644 --- a/internal/sysfs/stat_windows.go +++ b/internal/sysfs/stat_windows.go @@ -6,8 +6,8 @@ import ( "io/fs" "syscall" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) // dirNlinkIncludesDot is false because Windows does not return dot entries. diff --git a/internal/sysfs/sync.go b/internal/sysfs/sync.go index 86f9a086..e5289ca8 100644 --- a/internal/sysfs/sync.go +++ b/internal/sysfs/sync.go @@ -5,7 +5,7 @@ package sysfs import ( "os" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func fsync(f *os.File) sys.Errno { diff --git a/internal/sysfs/sync_windows.go b/internal/sysfs/sync_windows.go index f288eb25..14d2fd99 100644 --- a/internal/sysfs/sync_windows.go +++ b/internal/sysfs/sync_windows.go @@ -3,7 +3,7 @@ package sysfs import ( "os" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func fsync(f *os.File) sys.Errno { diff --git a/internal/sysfs/sysfs_test.go b/internal/sysfs/sysfs_test.go index 75526e56..27e99dff 100644 --- a/internal/sysfs/sysfs_test.go +++ b/internal/sysfs/sysfs_test.go @@ -10,10 +10,10 @@ import ( "sort" "testing" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) func testOpen_O_RDWR(t *testing.T, tmpDir string, testFS experimentalsys.FS) { diff --git a/internal/sysfs/unlink.go b/internal/sysfs/unlink.go index 4f7dbe3f..9b795c35 100644 --- a/internal/sysfs/unlink.go +++ b/internal/sysfs/unlink.go @@ -5,7 +5,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func unlink(name string) (errno sys.Errno) { diff --git a/internal/sysfs/unlink_plan9.go b/internal/sysfs/unlink_plan9.go index 16ed06ab..3e09b15c 100644 --- a/internal/sysfs/unlink_plan9.go +++ b/internal/sysfs/unlink_plan9.go @@ -3,7 +3,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func unlink(name string) sys.Errno { diff --git a/internal/sysfs/unlink_test.go b/internal/sysfs/unlink_test.go index 0ee30430..863977a6 100644 --- a/internal/sysfs/unlink_test.go +++ b/internal/sysfs/unlink_test.go @@ -5,8 +5,8 @@ import ( "path" "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestUnlink(t *testing.T) { diff --git a/internal/sysfs/unlink_windows.go b/internal/sysfs/unlink_windows.go index be31c7b9..3cde8e77 100644 --- a/internal/sysfs/unlink_windows.go +++ b/internal/sysfs/unlink_windows.go @@ -4,7 +4,7 @@ import ( "os" "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func unlink(name string) sys.Errno { diff --git a/internal/testing/binaryencoding/code.go b/internal/testing/binaryencoding/code.go index 87c2d522..845aaffb 100644 --- a/internal/testing/binaryencoding/code.go +++ b/internal/testing/binaryencoding/code.go @@ -1,8 +1,8 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) // encodeCode returns the wasm.Code encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/code_test.go b/internal/testing/binaryencoding/code_test.go index f398f0f1..eaa00f7a 100644 --- a/internal/testing/binaryencoding/code_test.go +++ b/internal/testing/binaryencoding/code_test.go @@ -3,8 +3,8 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) var addLocalZeroLocalTwo = []byte{wasm.OpcodeLocalGet, 0, wasm.OpcodeLocalGet, 2, wasm.OpcodeI32Add, wasm.OpcodeEnd} diff --git a/internal/testing/binaryencoding/const_expr.go b/internal/testing/binaryencoding/const_expr.go index f4c14807..fcf304ad 100644 --- a/internal/testing/binaryencoding/const_expr.go +++ b/internal/testing/binaryencoding/const_expr.go @@ -1,7 +1,7 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) func encodeConstantExpression(expr wasm.ConstantExpression) (ret []byte) { diff --git a/internal/testing/binaryencoding/data.go b/internal/testing/binaryencoding/data.go index 220c80e1..5b22e2c7 100644 --- a/internal/testing/binaryencoding/data.go +++ b/internal/testing/binaryencoding/data.go @@ -1,8 +1,8 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func encodeDataSegment(d *wasm.DataSegment) (ret []byte) { diff --git a/internal/testing/binaryencoding/element.go b/internal/testing/binaryencoding/element.go index 5d56e6a5..4ffe2dcf 100644 --- a/internal/testing/binaryencoding/element.go +++ b/internal/testing/binaryencoding/element.go @@ -4,8 +4,8 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func ensureElementKindFuncRef(r *bytes.Reader) error { diff --git a/internal/testing/binaryencoding/element_test.go b/internal/testing/binaryencoding/element_test.go index d1f93023..aa98b1f0 100644 --- a/internal/testing/binaryencoding/element_test.go +++ b/internal/testing/binaryencoding/element_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_ensureElementKindFuncRef(t *testing.T) { diff --git a/internal/testing/binaryencoding/encoder.go b/internal/testing/binaryencoding/encoder.go index 5d0499d3..f2d5f6bc 100644 --- a/internal/testing/binaryencoding/encoder.go +++ b/internal/testing/binaryencoding/encoder.go @@ -1,8 +1,8 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) var sizePrefixedName = []byte{4, 'n', 'a', 'm', 'e'} diff --git a/internal/testing/binaryencoding/encoder_test.go b/internal/testing/binaryencoding/encoder_test.go index 588ffef1..0a06d962 100644 --- a/internal/testing/binaryencoding/encoder_test.go +++ b/internal/testing/binaryencoding/encoder_test.go @@ -3,9 +3,9 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestModule_Encode(t *testing.T) { diff --git a/internal/testing/binaryencoding/export.go b/internal/testing/binaryencoding/export.go index 5bedf446..045a0bb1 100644 --- a/internal/testing/binaryencoding/export.go +++ b/internal/testing/binaryencoding/export.go @@ -1,8 +1,8 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) // encodeExport returns the wasm.Export encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/export_test.go b/internal/testing/binaryencoding/export_test.go index 7c5ba2bd..b7c5dfcd 100644 --- a/internal/testing/binaryencoding/export_test.go +++ b/internal/testing/binaryencoding/export_test.go @@ -3,8 +3,8 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeExport(t *testing.T) { diff --git a/internal/testing/binaryencoding/function.go b/internal/testing/binaryencoding/function.go index a31be4b6..b8308069 100644 --- a/internal/testing/binaryencoding/function.go +++ b/internal/testing/binaryencoding/function.go @@ -1,7 +1,7 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) // EncodeFunctionType returns the wasm.FunctionType encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/global.go b/internal/testing/binaryencoding/global.go index e4728918..62ad343c 100644 --- a/internal/testing/binaryencoding/global.go +++ b/internal/testing/binaryencoding/global.go @@ -1,7 +1,7 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) // encodeGlobal returns the wasm.Global encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/global_test.go b/internal/testing/binaryencoding/global_test.go index f29f68e6..2f22f5ff 100644 --- a/internal/testing/binaryencoding/global_test.go +++ b/internal/testing/binaryencoding/global_test.go @@ -3,9 +3,9 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeGlobal(t *testing.T) { diff --git a/internal/testing/binaryencoding/import.go b/internal/testing/binaryencoding/import.go index 8abffde2..a20f9f67 100644 --- a/internal/testing/binaryencoding/import.go +++ b/internal/testing/binaryencoding/import.go @@ -3,8 +3,8 @@ package binaryencoding import ( "fmt" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) // EncodeImport returns the wasm.Import encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/import_test.go b/internal/testing/binaryencoding/import_test.go index d89ca0cd..60489f3e 100644 --- a/internal/testing/binaryencoding/import_test.go +++ b/internal/testing/binaryencoding/import_test.go @@ -3,8 +3,8 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeImport(t *testing.T) { diff --git a/internal/testing/binaryencoding/limits.go b/internal/testing/binaryencoding/limits.go index ebc2421c..59479d6b 100644 --- a/internal/testing/binaryencoding/limits.go +++ b/internal/testing/binaryencoding/limits.go @@ -1,7 +1,7 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" + "github.com/wasilibs/wazerox/internal/leb128" ) // EncodeLimitsType returns the `limitsType` (min, max) encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/memory.go b/internal/testing/binaryencoding/memory.go index 2c853330..d422607c 100644 --- a/internal/testing/binaryencoding/memory.go +++ b/internal/testing/binaryencoding/memory.go @@ -1,7 +1,7 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) // EncodeMemory returns the wasm.Memory encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/names.go b/internal/testing/binaryencoding/names.go index 7a337020..53e7be8f 100644 --- a/internal/testing/binaryencoding/names.go +++ b/internal/testing/binaryencoding/names.go @@ -1,8 +1,8 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) const ( diff --git a/internal/testing/binaryencoding/names_test.go b/internal/testing/binaryencoding/names_test.go index 20c39c3b..2b62a538 100644 --- a/internal/testing/binaryencoding/names_test.go +++ b/internal/testing/binaryencoding/names_test.go @@ -3,8 +3,8 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeNameSectionData(t *testing.T) { diff --git a/internal/testing/binaryencoding/section.go b/internal/testing/binaryencoding/section.go index 531c6fce..b1f214a2 100644 --- a/internal/testing/binaryencoding/section.go +++ b/internal/testing/binaryencoding/section.go @@ -1,8 +1,8 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) // encodeSection encodes the sectionID, the size of its contents in bytes, followed by the contents. diff --git a/internal/testing/binaryencoding/section_test.go b/internal/testing/binaryencoding/section_test.go index 9cde8eb6..cfaaac2e 100644 --- a/internal/testing/binaryencoding/section_test.go +++ b/internal/testing/binaryencoding/section_test.go @@ -3,8 +3,8 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeFunctionSection(t *testing.T) { diff --git a/internal/testing/binaryencoding/table.go b/internal/testing/binaryencoding/table.go index 57f83db7..2109de8b 100644 --- a/internal/testing/binaryencoding/table.go +++ b/internal/testing/binaryencoding/table.go @@ -1,7 +1,7 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) // EncodeTable returns the wasm.Table encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/value.go b/internal/testing/binaryencoding/value.go index 9ec583e9..91e813be 100644 --- a/internal/testing/binaryencoding/value.go +++ b/internal/testing/binaryencoding/value.go @@ -1,8 +1,8 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) var noValType = []byte{0} diff --git a/internal/testing/binaryencoding/value_test.go b/internal/testing/binaryencoding/value_test.go index b3110474..68e070e0 100644 --- a/internal/testing/binaryencoding/value_test.go +++ b/internal/testing/binaryencoding/value_test.go @@ -3,8 +3,8 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeValTypes(t *testing.T) { diff --git a/internal/testing/fs/fs_test.go b/internal/testing/fs/fs_test.go index 39e31de0..f4828112 100644 --- a/internal/testing/fs/fs_test.go +++ b/internal/testing/fs/fs_test.go @@ -4,7 +4,7 @@ import ( "io/fs" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestFS(t *testing.T) { diff --git a/internal/testing/maintester/maintester.go b/internal/testing/maintester/maintester.go index 5ed844f2..02ea6103 100644 --- a/internal/testing/maintester/maintester.go +++ b/internal/testing/maintester/maintester.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestMain(t *testing.T, main func(), args ...string) (stdout, stderr string) { diff --git a/internal/testing/proxy/proxy.go b/internal/testing/proxy/proxy.go index 4e9edb96..3bf55002 100644 --- a/internal/testing/proxy/proxy.go +++ b/internal/testing/proxy/proxy.go @@ -1,13 +1,13 @@ package proxy import ( - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/wasm" ) const proxyModuleName = "internal/testing/proxy/proxy.go" diff --git a/internal/testing/require/require.go b/internal/testing/require/require.go index eabfbe7d..d53aad0d 100644 --- a/internal/testing/require/require.go +++ b/internal/testing/require/require.go @@ -16,7 +16,7 @@ import ( "unicode" "unicode/utf8" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // TestingT is an interface wrapper of functions used in TestingT diff --git a/internal/testing/require/require_errno_test.go b/internal/testing/require/require_errno_test.go index 9dbbe0c2..28a74142 100644 --- a/internal/testing/require/require_errno_test.go +++ b/internal/testing/require/require_errno_test.go @@ -5,7 +5,7 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func TestEqualErrno(t *testing.T) { diff --git a/internal/u32/u32_test.go b/internal/u32/u32_test.go index 7d0e2dc1..aca67564 100644 --- a/internal/u32/u32_test.go +++ b/internal/u32/u32_test.go @@ -5,7 +5,7 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestBytes(t *testing.T) { diff --git a/internal/u64/u64_test.go b/internal/u64/u64_test.go index 576a79a7..d3513036 100644 --- a/internal/u64/u64_test.go +++ b/internal/u64/u64_test.go @@ -5,7 +5,7 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestBytes(t *testing.T) { diff --git a/internal/version/testdata/go.mod b/internal/version/testdata/go.mod index 956c1476..9a1a4ae5 100644 --- a/internal/version/testdata/go.mod +++ b/internal/version/testdata/go.mod @@ -1,7 +1,7 @@ -module github.com/tetratelabs/wazero/internal/version/testdata +module github.com/wasilibs/wazerox/internal/version/testdata go 1.19 -require github.com/tetratelabs/wazero v0.0.0-20220818123113-1948909ec0b1 // indirect +require github.com/wasilibs/wazerox v0.0.0-20220818123113-1948909ec0b1 // indirect -replace github.com/tetratelabs/wazero => ../../.. +replace github.com/wasilibs/wazerox => ../../.. diff --git a/internal/version/testdata/main.go b/internal/version/testdata/main.go index 32adeb3e..41c44e67 100644 --- a/internal/version/testdata/main.go +++ b/internal/version/testdata/main.go @@ -2,5 +2,5 @@ package main // Force importing wazero here, so that we can see the actual wazero version in the main_test.go. import ( - _ "github.com/tetratelabs/wazero/internal/version" + _ "github.com/wasilibs/wazerox/internal/version" ) diff --git a/internal/version/testdata/main_test.go b/internal/version/testdata/main_test.go index 044d9662..32960851 100644 --- a/internal/version/testdata/main_test.go +++ b/internal/version/testdata/main_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/version" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/version" ) // TestGetWazeroVersion ensures that GetWazeroVersion returns the version of wazero in the go.mod in the diff --git a/internal/version/version.go b/internal/version/version.go index 9261df0f..5ee69891 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -13,9 +13,9 @@ var version string // GetWazeroVersion returns the current version of wazero either in the go.mod or set by ldflag for wazero CLI. // -// If this is not CLI, this assumes that downstream users of wazero imports wazero as "github.com/tetratelabs/wazero". +// If this is not CLI, this assumes that downstream users of wazero imports wazero as "github.com/wasilibs/wazerox". // To be precise, the returned string matches the require statement there. -// For example, if the go.mod has "require github.com/tetratelabs/wazero 0.1.2-12314124-abcd", +// For example, if the go.mod has "require github.com/wasilibs/wazerox 0.1.2-12314124-abcd", // then this returns "0.1.2-12314124-abcd". // // Note: this is tested in ./testdata/main_test.go with a separate go.mod to pretend as the wazero user. @@ -27,8 +27,8 @@ func GetWazeroVersion() (ret string) { info, ok := debug.ReadBuildInfo() if ok { for _, dep := range info.Deps { - // Note: here's the assumption that wazero is imported as github.com/tetratelabs/wazero. - if strings.Contains(dep.Path, "github.com/tetratelabs/wazero") { + // Note: here's the assumption that wazero is imported as github.com/wasilibs/wazerox. + if strings.Contains(dep.Path, "github.com/wasilibs/wazerox") { ret = dep.Version } } diff --git a/internal/wasip1/errno.go b/internal/wasip1/errno.go index 701c2aa4..7e5d081a 100644 --- a/internal/wasip1/errno.go +++ b/internal/wasip1/errno.go @@ -3,7 +3,7 @@ package wasip1 import ( "fmt" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // Errno is neither uint16 nor an alias for parity with wasm.ValueType. diff --git a/internal/wasip1/errno_test.go b/internal/wasip1/errno_test.go index 961e9fe5..81875c13 100644 --- a/internal/wasip1/errno_test.go +++ b/internal/wasip1/errno_test.go @@ -3,7 +3,7 @@ package wasip1 import ( "testing" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func TestToErrno(t *testing.T) { diff --git a/internal/wasip1/logging/logging.go b/internal/wasip1/logging/logging.go index d7341a09..ee465e29 100644 --- a/internal/wasip1/logging/logging.go +++ b/internal/wasip1/logging/logging.go @@ -6,10 +6,10 @@ import ( "strconv" "strings" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/logging" - "github.com/tetratelabs/wazero/internal/sys" - . "github.com/tetratelabs/wazero/internal/wasip1" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/logging" + "github.com/wasilibs/wazerox/internal/sys" + . "github.com/wasilibs/wazerox/internal/wasip1" ) var le = binary.LittleEndian diff --git a/internal/wasip1/logging/logging_test.go b/internal/wasip1/logging/logging_test.go index 95d200be..b65ebca1 100644 --- a/internal/wasip1/logging/logging_test.go +++ b/internal/wasip1/logging/logging_test.go @@ -3,11 +3,11 @@ package logging import ( "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/logging" - "github.com/tetratelabs/wazero/internal/testing/require" - . "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/logging" + "github.com/wasilibs/wazerox/internal/testing/require" + . "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) type testFunctionDefinition struct { diff --git a/internal/wasm/binary/code.go b/internal/wasm/binary/code.go index 2fac9196..f36f5650 100644 --- a/internal/wasm/binary/code.go +++ b/internal/wasm/binary/code.go @@ -6,8 +6,8 @@ import ( "io" "math" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func decodeCode(r *bytes.Reader, codeSectionStart uint64, ret *wasm.Code) (err error) { diff --git a/internal/wasm/binary/const_expr.go b/internal/wasm/binary/const_expr.go index edfc0a08..2529e9cc 100644 --- a/internal/wasm/binary/const_expr.go +++ b/internal/wasm/binary/const_expr.go @@ -5,10 +5,10 @@ import ( "fmt" "io" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/ieee754" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/ieee754" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func decodeConstantExpression(r *bytes.Reader, enabledFeatures api.CoreFeatures, ret *wasm.ConstantExpression) error { diff --git a/internal/wasm/binary/const_expr_test.go b/internal/wasm/binary/const_expr_test.go index 072c37a6..03be1e1e 100644 --- a/internal/wasm/binary/const_expr_test.go +++ b/internal/wasm/binary/const_expr_test.go @@ -5,9 +5,9 @@ import ( "strconv" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestDecodeConstantExpression(t *testing.T) { diff --git a/internal/wasm/binary/custom.go b/internal/wasm/binary/custom.go index 771f8c32..ce506f4a 100644 --- a/internal/wasm/binary/custom.go +++ b/internal/wasm/binary/custom.go @@ -3,7 +3,7 @@ package binary import ( "bytes" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) // decodeCustomSection deserializes the data **not** associated with the "name" key in SectionIDCustom. diff --git a/internal/wasm/binary/data.go b/internal/wasm/binary/data.go index 054ccb3c..ab48ad61 100644 --- a/internal/wasm/binary/data.go +++ b/internal/wasm/binary/data.go @@ -5,9 +5,9 @@ import ( "fmt" "io" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) // dataSegmentPrefix represents three types of data segments. diff --git a/internal/wasm/binary/data_test.go b/internal/wasm/binary/data_test.go index f7bf7c41..e7c9a0d6 100644 --- a/internal/wasm/binary/data_test.go +++ b/internal/wasm/binary/data_test.go @@ -5,9 +5,9 @@ import ( "strconv" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_decodeDataSegment(t *testing.T) { diff --git a/internal/wasm/binary/decoder.go b/internal/wasm/binary/decoder.go index c4191dae..f868973e 100644 --- a/internal/wasm/binary/decoder.go +++ b/internal/wasm/binary/decoder.go @@ -7,10 +7,10 @@ import ( "fmt" "io" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasmdebug" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasmdebug" ) // DecodeModule implements wasm.DecodeModule for the WebAssembly 1.0 (20191205) Binary Format diff --git a/internal/wasm/binary/decoder_test.go b/internal/wasm/binary/decoder_test.go index b3381494..175f8311 100644 --- a/internal/wasm/binary/decoder_test.go +++ b/internal/wasm/binary/decoder_test.go @@ -3,11 +3,11 @@ package binary import ( "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/dwarftestdata" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/dwarftestdata" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) // TestDecodeModule relies on unit tests for Module.Encode, specifically that the encoding is both known and correct. diff --git a/internal/wasm/binary/element.go b/internal/wasm/binary/element.go index 538b9834..dd52ba0f 100644 --- a/internal/wasm/binary/element.go +++ b/internal/wasm/binary/element.go @@ -5,9 +5,9 @@ import ( "errors" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func ensureElementKindFuncRef(r *bytes.Reader) error { diff --git a/internal/wasm/binary/element_test.go b/internal/wasm/binary/element_test.go index eefa7d12..e22d5842 100644 --- a/internal/wasm/binary/element_test.go +++ b/internal/wasm/binary/element_test.go @@ -5,9 +5,9 @@ import ( "strconv" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_ensureElementKindFuncRef(t *testing.T) { diff --git a/internal/wasm/binary/export.go b/internal/wasm/binary/export.go index 925e9c49..a3b54a5d 100644 --- a/internal/wasm/binary/export.go +++ b/internal/wasm/binary/export.go @@ -4,8 +4,8 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func decodeExport(r *bytes.Reader, ret *wasm.Export) (err error) { diff --git a/internal/wasm/binary/function.go b/internal/wasm/binary/function.go index bb9e2b64..ab8d9563 100644 --- a/internal/wasm/binary/function.go +++ b/internal/wasm/binary/function.go @@ -4,9 +4,9 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func decodeFunctionType(enabledFeatures api.CoreFeatures, r *bytes.Reader, ret *wasm.FunctionType) (err error) { diff --git a/internal/wasm/binary/function_test.go b/internal/wasm/binary/function_test.go index 3c8ca3ea..f9172a47 100644 --- a/internal/wasm/binary/function_test.go +++ b/internal/wasm/binary/function_test.go @@ -5,10 +5,10 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestFunctionType(t *testing.T) { diff --git a/internal/wasm/binary/global.go b/internal/wasm/binary/global.go index 4e1c16fd..96f34bb5 100644 --- a/internal/wasm/binary/global.go +++ b/internal/wasm/binary/global.go @@ -4,8 +4,8 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasm" ) // decodeGlobal returns the api.Global decoded with the WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/wasm/binary/import.go b/internal/wasm/binary/import.go index 39d310c5..b498802e 100644 --- a/internal/wasm/binary/import.go +++ b/internal/wasm/binary/import.go @@ -4,9 +4,9 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func decodeImport( diff --git a/internal/wasm/binary/import_test.go b/internal/wasm/binary/import_test.go index 11c79841..54db5b34 100644 --- a/internal/wasm/binary/import_test.go +++ b/internal/wasm/binary/import_test.go @@ -3,9 +3,9 @@ package binary import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeImport(t *testing.T) { diff --git a/internal/wasm/binary/limits.go b/internal/wasm/binary/limits.go index ff2d73b5..e42e3f53 100644 --- a/internal/wasm/binary/limits.go +++ b/internal/wasm/binary/limits.go @@ -4,7 +4,7 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/internal/leb128" + "github.com/wasilibs/wazerox/internal/leb128" ) // decodeLimitsType returns the `limitsType` (min, max) decoded with the WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/wasm/binary/limits_test.go b/internal/wasm/binary/limits_test.go index 7e65b4d6..dbcf913f 100644 --- a/internal/wasm/binary/limits_test.go +++ b/internal/wasm/binary/limits_test.go @@ -6,8 +6,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestLimitsType(t *testing.T) { diff --git a/internal/wasm/binary/memory.go b/internal/wasm/binary/memory.go index 265361ac..e7edd5f7 100644 --- a/internal/wasm/binary/memory.go +++ b/internal/wasm/binary/memory.go @@ -4,9 +4,9 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/wasm" ) // decodeMemory returns the api.Memory decoded with the WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/wasm/binary/memory_test.go b/internal/wasm/binary/memory_test.go index ce26a39b..b637fb99 100644 --- a/internal/wasm/binary/memory_test.go +++ b/internal/wasm/binary/memory_test.go @@ -5,11 +5,11 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_newMemorySizer(t *testing.T) { diff --git a/internal/wasm/binary/names.go b/internal/wasm/binary/names.go index 56fb96dc..1c6da8d5 100644 --- a/internal/wasm/binary/names.go +++ b/internal/wasm/binary/names.go @@ -5,8 +5,8 @@ import ( "fmt" "io" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) const ( diff --git a/internal/wasm/binary/names_test.go b/internal/wasm/binary/names_test.go index 8e84e218..7bfdf245 100644 --- a/internal/wasm/binary/names_test.go +++ b/internal/wasm/binary/names_test.go @@ -4,9 +4,9 @@ import ( "bytes" "testing" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) // TestDecodeNameSection relies on unit tests for NameSection.EncodeData, specifically that the encoding is diff --git a/internal/wasm/binary/section.go b/internal/wasm/binary/section.go index 622ee592..8f88f6f1 100644 --- a/internal/wasm/binary/section.go +++ b/internal/wasm/binary/section.go @@ -5,9 +5,9 @@ import ( "fmt" "io" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func decodeTypeSection(enabledFeatures api.CoreFeatures, r *bytes.Reader) ([]wasm.FunctionType, error) { diff --git a/internal/wasm/binary/section_test.go b/internal/wasm/binary/section_test.go index dcebdbed..5432a20a 100644 --- a/internal/wasm/binary/section_test.go +++ b/internal/wasm/binary/section_test.go @@ -4,10 +4,10 @@ import ( "bytes" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestTableSection(t *testing.T) { diff --git a/internal/wasm/binary/table.go b/internal/wasm/binary/table.go index 353ec756..2dc61056 100644 --- a/internal/wasm/binary/table.go +++ b/internal/wasm/binary/table.go @@ -4,8 +4,8 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasm" ) // decodeTable returns the wasm.Table decoded with the WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/wasm/binary/table_test.go b/internal/wasm/binary/table_test.go index 7543a33c..e5560c98 100644 --- a/internal/wasm/binary/table_test.go +++ b/internal/wasm/binary/table_test.go @@ -5,11 +5,11 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestTableType(t *testing.T) { diff --git a/internal/wasm/binary/value.go b/internal/wasm/binary/value.go index 755ee5ea..34db3c3c 100644 --- a/internal/wasm/binary/value.go +++ b/internal/wasm/binary/value.go @@ -7,8 +7,8 @@ import ( "unicode/utf8" "unsafe" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func decodeValueTypes(r *bytes.Reader, num uint32) ([]wasm.ValueType, error) { diff --git a/internal/wasm/binary/value_test.go b/internal/wasm/binary/value_test.go index b95e0b9e..b99f4416 100644 --- a/internal/wasm/binary/value_test.go +++ b/internal/wasm/binary/value_test.go @@ -4,9 +4,9 @@ import ( "bytes" "testing" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeValTypes(t *testing.T) { diff --git a/internal/wasm/counts_test.go b/internal/wasm/counts_test.go index 6db4fdba..803faa89 100644 --- a/internal/wasm/counts_test.go +++ b/internal/wasm/counts_test.go @@ -3,7 +3,7 @@ package wasm import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestModule_SectionElementCount(t *testing.T) { diff --git a/internal/wasm/engine.go b/internal/wasm/engine.go index 3d483807..7a5d2fb0 100644 --- a/internal/wasm/engine.go +++ b/internal/wasm/engine.go @@ -3,8 +3,8 @@ package wasm import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" ) // Engine is a Store-scoped mechanism to compile functions declared or imported by a module. diff --git a/internal/wasm/func_validation.go b/internal/wasm/func_validation.go index b5390ebe..6dd588eb 100644 --- a/internal/wasm/func_validation.go +++ b/internal/wasm/func_validation.go @@ -7,9 +7,9 @@ import ( "strconv" "strings" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/leb128" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/leb128" ) // The wazero specific limitation described at RATIONALE.md. diff --git a/internal/wasm/func_validation_test.go b/internal/wasm/func_validation_test.go index 57edb5a3..dac0dc36 100644 --- a/internal/wasm/func_validation_test.go +++ b/internal/wasm/func_validation_test.go @@ -5,10 +5,10 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestModule_ValidateFunction_validateFunctionWithMaxStackValues(t *testing.T) { diff --git a/internal/wasm/function_definition.go b/internal/wasm/function_definition.go index c5f6e912..cc2e3c7d 100644 --- a/internal/wasm/function_definition.go +++ b/internal/wasm/function_definition.go @@ -1,9 +1,9 @@ package wasm import ( - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/wasmdebug" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/wasmdebug" ) // ImportedFunctions returns the definitions of each imported function. diff --git a/internal/wasm/function_definition_test.go b/internal/wasm/function_definition_test.go index 6e6e92f2..dd46ec36 100644 --- a/internal/wasm/function_definition_test.go +++ b/internal/wasm/function_definition_test.go @@ -3,9 +3,9 @@ package wasm import ( "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/hammer" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/hammer" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestModule_BuildFunctionDefinitions(t *testing.T) { diff --git a/internal/wasm/global.go b/internal/wasm/global.go index 6320e0de..0fddf22e 100644 --- a/internal/wasm/global.go +++ b/internal/wasm/global.go @@ -1,8 +1,8 @@ package wasm import ( - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/internalapi" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/internalapi" ) // constantGlobal wraps GlobalInstance to implement api.Global. diff --git a/internal/wasm/global_test.go b/internal/wasm/global_test.go index da2d7a6d..648469a3 100644 --- a/internal/wasm/global_test.go +++ b/internal/wasm/global_test.go @@ -5,11 +5,11 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/u64" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/u64" ) func TestGlobalTypes(t *testing.T) { diff --git a/internal/wasm/gofunc.go b/internal/wasm/gofunc.go index 9510c258..2c01b1bc 100644 --- a/internal/wasm/gofunc.go +++ b/internal/wasm/gofunc.go @@ -8,7 +8,7 @@ import ( "math" "reflect" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox/api" ) type paramsKind byte diff --git a/internal/wasm/gofunc_test.go b/internal/wasm/gofunc_test.go index 8b2e8b8c..bc178dc7 100644 --- a/internal/wasm/gofunc_test.go +++ b/internal/wasm/gofunc_test.go @@ -6,8 +6,8 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/internal/wasm/host.go b/internal/wasm/host.go index bca686d1..3d217c54 100644 --- a/internal/wasm/host.go +++ b/internal/wasm/host.go @@ -4,8 +4,8 @@ import ( "errors" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasmdebug" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasmdebug" ) type HostFuncExporter interface { diff --git a/internal/wasm/host_test.go b/internal/wasm/host_test.go index 55c881cd..d6e77a3c 100644 --- a/internal/wasm/host_test.go +++ b/internal/wasm/host_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" - . "github.com/tetratelabs/wazero/internal/wasip1" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" + . "github.com/wasilibs/wazerox/internal/wasip1" ) func argsSizesGet(ctx context.Context, mod api.Module, resultArgc, resultArgvBufSize uint32) uint32 { diff --git a/internal/wasm/memory.go b/internal/wasm/memory.go index f39ed1ef..07990ca2 100644 --- a/internal/wasm/memory.go +++ b/internal/wasm/memory.go @@ -11,10 +11,10 @@ import ( "time" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/wasmruntime" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/wasmruntime" ) const ( diff --git a/internal/wasm/memory_definition.go b/internal/wasm/memory_definition.go index 03d6fd30..5f780d67 100644 --- a/internal/wasm/memory_definition.go +++ b/internal/wasm/memory_definition.go @@ -1,8 +1,8 @@ package wasm import ( - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/internalapi" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/internalapi" ) // ImportedMemories implements the same method as documented on wazero.CompiledModule. diff --git a/internal/wasm/memory_definition_test.go b/internal/wasm/memory_definition_test.go index 38daeb11..57ac10c7 100644 --- a/internal/wasm/memory_definition_test.go +++ b/internal/wasm/memory_definition_test.go @@ -3,8 +3,8 @@ package wasm import ( "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestModule_BuildMemoryDefinitions(t *testing.T) { diff --git a/internal/wasm/memory_test.go b/internal/wasm/memory_test.go index 41b88fe5..c30b19c9 100644 --- a/internal/wasm/memory_test.go +++ b/internal/wasm/memory_test.go @@ -8,8 +8,8 @@ import ( "time" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestMemoryPageConsts(t *testing.T) { diff --git a/internal/wasm/module.go b/internal/wasm/module.go index 26d485ee..1f9dec24 100644 --- a/internal/wasm/module.go +++ b/internal/wasm/module.go @@ -11,11 +11,11 @@ import ( "strings" "sync" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/ieee754" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasmdebug" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/ieee754" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasmdebug" ) // Module is a WebAssembly binary representation. diff --git a/internal/wasm/module_instance.go b/internal/wasm/module_instance.go index 4bc08764..1d6410b3 100644 --- a/internal/wasm/module_instance.go +++ b/internal/wasm/module_instance.go @@ -5,8 +5,8 @@ import ( "errors" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/sys" ) // FailIfClosed returns a sys.ExitError if CloseWithExitCode was called. diff --git a/internal/wasm/module_instance_lookup.go b/internal/wasm/module_instance_lookup.go index 442d26a2..b21554ea 100644 --- a/internal/wasm/module_instance_lookup.go +++ b/internal/wasm/module_instance_lookup.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/internalapi" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/internalapi" ) // LookupFunction looks up the table by the given index, and returns the api.Function implementation if found, diff --git a/internal/wasm/module_instance_lookup_test.go b/internal/wasm/module_instance_lookup_test.go index 3e8c839e..246dd07a 100644 --- a/internal/wasm/module_instance_lookup_test.go +++ b/internal/wasm/module_instance_lookup_test.go @@ -5,8 +5,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestModuleInstance_LookupFunction(t *testing.T) { diff --git a/internal/wasm/module_instance_test.go b/internal/wasm/module_instance_test.go index 89b5a231..a29e378b 100644 --- a/internal/wasm/module_instance_test.go +++ b/internal/wasm/module_instance_test.go @@ -8,12 +8,12 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/sysfs" - testfs "github.com/tetratelabs/wazero/internal/testing/fs" - "github.com/tetratelabs/wazero/internal/testing/hammer" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/sysfs" + testfs "github.com/wasilibs/wazerox/internal/testing/fs" + "github.com/wasilibs/wazerox/internal/testing/hammer" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestModuleInstance_String(t *testing.T) { diff --git a/internal/wasm/module_test.go b/internal/wasm/module_test.go index a3f5dab4..66bf180e 100644 --- a/internal/wasm/module_test.go +++ b/internal/wasm/module_test.go @@ -6,11 +6,11 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/u64" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/u64" ) func TestFunctionType_String(t *testing.T) { diff --git a/internal/wasm/store.go b/internal/wasm/store.go index f15c19fc..53fe54dc 100644 --- a/internal/wasm/store.go +++ b/internal/wasm/store.go @@ -7,12 +7,12 @@ import ( "sync" "sync/atomic" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/close" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/leb128" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/close" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/leb128" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/sys" ) // nameToModuleShrinkThreshold is the size the nameToModule map can grow to diff --git a/internal/wasm/store_module_list.go b/internal/wasm/store_module_list.go index 17c63e38..a622ba3d 100644 --- a/internal/wasm/store_module_list.go +++ b/internal/wasm/store_module_list.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox/api" ) // deleteModule makes the moduleName available for instantiation again. diff --git a/internal/wasm/store_module_list_test.go b/internal/wasm/store_module_list_test.go index de6d8c24..78a92ae3 100644 --- a/internal/wasm/store_module_list_test.go +++ b/internal/wasm/store_module_list_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestStore_registerModule(t *testing.T) { diff --git a/internal/wasm/store_test.go b/internal/wasm/store_test.go index 00b418f0..32cd7582 100644 --- a/internal/wasm/store_test.go +++ b/internal/wasm/store_test.go @@ -8,14 +8,14 @@ import ( "strconv" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/testing/hammer" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/u64" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/testing/hammer" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/u64" ) func TestModuleInstance_Memory(t *testing.T) { diff --git a/internal/wasm/table.go b/internal/wasm/table.go index ac9fc498..c95d3305 100644 --- a/internal/wasm/table.go +++ b/internal/wasm/table.go @@ -4,8 +4,8 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" ) // Table describes the limits of elements and its type in a table. diff --git a/internal/wasm/table_test.go b/internal/wasm/table_test.go index 1c5b2559..ffd02577 100644 --- a/internal/wasm/table_test.go +++ b/internal/wasm/table_test.go @@ -4,9 +4,9 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_ElementInitNullReference_valid ensures it is actually safe to use ElementInitNullReference diff --git a/internal/wasmdebug/debug.go b/internal/wasmdebug/debug.go index 0aa61369..49f4578a 100644 --- a/internal/wasmdebug/debug.go +++ b/internal/wasmdebug/debug.go @@ -10,9 +10,9 @@ import ( "strconv" "strings" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasmruntime" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasmruntime" + "github.com/wasilibs/wazerox/sys" ) // FuncName returns the naming convention of "moduleName.funcName". diff --git a/internal/wasmdebug/debug_test.go b/internal/wasmdebug/debug_test.go index 1747423f..0a79e15e 100644 --- a/internal/wasmdebug/debug_test.go +++ b/internal/wasmdebug/debug_test.go @@ -5,9 +5,9 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasmruntime" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasmruntime" ) func TestFuncName(t *testing.T) { diff --git a/internal/wasmdebug/dwarf_test.go b/internal/wasmdebug/dwarf_test.go index fb0d72c4..1348d353 100644 --- a/internal/wasmdebug/dwarf_test.go +++ b/internal/wasmdebug/dwarf_test.go @@ -5,12 +5,12 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/dwarftestdata" - "github.com/tetratelabs/wazero/internal/testing/hammer" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasm/binary" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/dwarftestdata" + "github.com/wasilibs/wazerox/internal/testing/hammer" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm/binary" ) func TestDWARFLines_Line_Zig(t *testing.T) { diff --git a/internal/wazeroir/compiler.go b/internal/wazeroir/compiler.go index 85b20139..403ee3d7 100644 --- a/internal/wazeroir/compiler.go +++ b/internal/wazeroir/compiler.go @@ -7,9 +7,9 @@ import ( "math" "strings" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) type controlFrameKind byte diff --git a/internal/wazeroir/compiler_test.go b/internal/wazeroir/compiler_test.go index 2520e566..bc64788f 100644 --- a/internal/wazeroir/compiler_test.go +++ b/internal/wazeroir/compiler_test.go @@ -5,11 +5,11 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) var ( diff --git a/internal/wazeroir/operations_test.go b/internal/wazeroir/operations_test.go index 7ac15956..d7310060 100644 --- a/internal/wazeroir/operations_test.go +++ b/internal/wazeroir/operations_test.go @@ -3,7 +3,7 @@ package wazeroir import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) // TestInstructionName ensures that all the operation Kind's stringer is well-defined. diff --git a/internal/wazeroir/signature.go b/internal/wazeroir/signature.go index 30a5868d..3b356557 100644 --- a/internal/wazeroir/signature.go +++ b/internal/wazeroir/signature.go @@ -3,7 +3,7 @@ package wazeroir import ( "fmt" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) // signature represents how a Wasm opcode diff --git a/internal/wazeroir/signature_test.go b/internal/wazeroir/signature_test.go index 51867836..61c2da41 100644 --- a/internal/wazeroir/signature_test.go +++ b/internal/wazeroir/signature_test.go @@ -3,8 +3,8 @@ package wazeroir import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestCompiler_wasmOpcodeSignature(t *testing.T) { diff --git a/runtime.go b/runtime.go index 220324ed..9a1722df 100644 --- a/runtime.go +++ b/runtime.go @@ -5,14 +5,14 @@ import ( "fmt" "sync/atomic" - "github.com/tetratelabs/wazero/api" - experimentalapi "github.com/tetratelabs/wazero/experimental" - internalclose "github.com/tetratelabs/wazero/internal/close" - internalsock "github.com/tetratelabs/wazero/internal/sock" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/wasm" - binaryformat "github.com/tetratelabs/wazero/internal/wasm/binary" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + experimentalapi "github.com/wasilibs/wazerox/experimental" + internalclose "github.com/wasilibs/wazerox/internal/close" + internalsock "github.com/wasilibs/wazerox/internal/sock" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/wasm" + binaryformat "github.com/wasilibs/wazerox/internal/wasm/binary" + "github.com/wasilibs/wazerox/sys" ) // Runtime allows embedding of WebAssembly modules. diff --git a/runtime_test.go b/runtime_test.go index b7fce389..4f35a64c 100644 --- a/runtime_test.go +++ b/runtime_test.go @@ -8,15 +8,15 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) var ( diff --git a/site/config.toml b/site/config.toml index ec9beda5..d39c7095 100644 --- a/site/config.toml +++ b/site/config.toml @@ -14,7 +14,7 @@ googleAnalytics = "G-LG7LD9G4ZB" # Note: We override the logo via layouts/partials/logo.html [languages.en.menu] [[languages.en.menu.main]] - url = "https://github.com/tetratelabs/wazero/blob/main/examples" + url = "https://github.com/wasilibs/wazerox/blob/main/examples" name = "Examples" weight = 2 [[languages.en.menu.main]] diff --git a/site/content/_index.md b/site/content/_index.md index 70f39406..29d3ea8f 100644 --- a/site/content/_index.md +++ b/site/content/_index.md @@ -22,7 +22,7 @@ curl https://wazero.io/install.sh | sh **Embed wazero** in your Go project and extend any app ```go -import "github.com/tetratelabs/wazero" +import "github.com/wasilibs/wazerox" // ... @@ -55,12 +55,12 @@ production sites. You can get the latest version of wazero like this. ```bash -go get github.com/tetratelabs/wazero@latest +go get github.com/wasilibs/wazerox@latest ``` Please give us a [star][4] if you end up using wazero! -[1]: https://github.com/tetratelabs/wazero/blob/main/examples -[2]: https://github.com/tetratelabs/wazero/blob/main/examples/basic +[1]: https://github.com/wasilibs/wazerox/blob/main/examples +[2]: https://github.com/wasilibs/wazerox/blob/main/examples/basic [3]: https://tetrate.io/blog/introducing-wazero-from-tetrate/ -[4]: https://github.com/tetratelabs/wazero/stargazers +[4]: https://github.com/wasilibs/wazerox/stargazers diff --git a/site/content/community/_index.md b/site/content/community/_index.md index 25cc37e9..a8786713 100644 --- a/site/content/community/_index.md +++ b/site/content/community/_index.md @@ -40,9 +40,9 @@ a test framework or a feature, check with one of the above channels. Someone may already have worked on this in the past and might join your effort. Sometimes, features are intentionally absent, usually with rationale documented in an issue. Regardless, the best advice is to join the community before proposing change, and -read one of our [CONTRIBUTING](https://github.com/tetratelabs/wazero/blob/main/CONTRIBUTING.md) files +read one of our [CONTRIBUTING](https://github.com/wasilibs/wazerox/blob/main/CONTRIBUTING.md) files which explains technical aspects of change culture. -[1]: https://github.com/tetratelabs/wazero +[1]: https://github.com/wasilibs/wazerox [2]: https://invite.slack.golangbridge.org/ -[3]: https://github.com/tetratelabs/wazero/stargazers +[3]: https://github.com/wasilibs/wazerox/stargazers diff --git a/site/content/community/users.md b/site/content/community/users.md index c84e59e2..ea015e2c 100644 --- a/site/content/community/users.md +++ b/site/content/community/users.md @@ -69,7 +69,7 @@ To ensure we promote community members, please do not add works that don't use wazero to this list. Please keep descriptions short for a better table experience. -[1]: https://github.com/tetratelabs/wazero/tree/main/site/content/community/users.md +[1]: https://github.com/wasilibs/wazerox/tree/main/site/content/community/users.md [2]: https://github.com/knqyf263/go-plugin diff --git a/site/content/docs/_index.md b/site/content/docs/_index.md index e04a20d7..b3fd3e37 100644 --- a/site/content/docs/_index.md +++ b/site/content/docs/_index.md @@ -169,11 +169,11 @@ on this topic! Please refer to [RATIONALE][rationale] for the notable rationales behind wazero's implementations. -[Module]: https://pkg.go.dev/github.com/tetratelabs/wazero@v1.0.0-rc.1/api#Module -[Runtime]: https://pkg.go.dev/github.com/tetratelabs/wazero#Runtime -[RuntimeConfig]: https://pkg.go.dev/github.com/tetratelabs/wazero#RuntimeConfig -[CompiledModule]: https://pkg.go.dev/github.com/tetratelabs/wazero#CompiledModule -[godoc]: https://pkg.go.dev/github.com/tetratelabs/wazero -[rationale]: https://github.com/tetratelabs/wazero/blob/main/RATIONALE.md -[wasi]: https://github.com/tetratelabs/wazero/tree/main/imports/wasi_snapshot_preview1/example -[age-calculator]: https://github.com/tetratelabs/wazero/blob/v1.0.0-rc.1/examples/import-go/age-calculator.go +[Module]: https://pkg.go.dev/github.com/wasilibs/wazerox@v1.0.0-rc.1/api#Module +[Runtime]: https://pkg.go.dev/github.com/wasilibs/wazerox#Runtime +[RuntimeConfig]: https://pkg.go.dev/github.com/wasilibs/wazerox#RuntimeConfig +[CompiledModule]: https://pkg.go.dev/github.com/wasilibs/wazerox#CompiledModule +[godoc]: https://pkg.go.dev/github.com/wasilibs/wazerox +[rationale]: https://github.com/wasilibs/wazerox/blob/main/RATIONALE.md +[wasi]: https://github.com/wasilibs/wazerox/tree/main/imports/wasi_snapshot_preview1/example +[age-calculator]: https://github.com/wasilibs/wazerox/blob/v1.0.0-rc.1/examples/import-go/age-calculator.go diff --git a/site/content/docs/how_do_compiler_functions_work.md b/site/content/docs/how_do_compiler_functions_work.md index 0dffe7db..a7c9cf52 100644 --- a/site/content/docs/how_do_compiler_functions_work.md +++ b/site/content/docs/how_do_compiler_functions_work.md @@ -206,12 +206,12 @@ it. For more details, see [RATIONALE.md][compiler-rationale]. [call-stack]: https://en.wikipedia.org/wiki/Call_stack -[api-function]: https://pkg.go.dev/github.com/tetratelabs/wazero@v1.0.0-rc.1/api#Function -[api-module]: https://pkg.go.dev/github.com/tetratelabs/wazero@v1.0.0-rc.1/api#Module +[api-function]: https://pkg.go.dev/github.com/wasilibs/wazerox@v1.0.0-rc.1/api#Function +[api-module]: https://pkg.go.dev/github.com/wasilibs/wazerox@v1.0.0-rc.1/api#Module [spec-function-instance]: https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/#function-instances%E2%91%A0 [spec-trap]: https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/#trap [spec-unreachable]: https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/#syntax-instr-control -[compiler-rationale]: https://github.com/tetratelabs/wazero/blob/v1.0.0-rc.1/internal/engine/compiler/RATIONALE.md +[compiler-rationale]: https://github.com/wasilibs/wazerox/blob/v1.0.0-rc.1/internal/engine/compiler/RATIONALE.md [signal-handler-discussion]: https://gophers.slack.com/archives/C1C1YSQBT/p1675992411241409 [cgo-not-go]: https://www.youtube.com/watch?v=PAAkCSZUG1c&t=757s diff --git a/site/content/languages/_index.md b/site/content/languages/_index.md index d513b12c..d5493381 100644 --- a/site/content/languages/_index.md +++ b/site/content/languages/_index.md @@ -144,8 +144,8 @@ used sequentially. For example, [waPC][9] provides a WASM module pool, so host callbacks can be invoked in parallel, despite not being able to share memory. -[1]: https://github.com/tetratelabs/wazero/tree/main/site/content/languages -[2]: https://github.com/tetratelabs/wazero/stargazers +[1]: https://github.com/wasilibs/wazerox/tree/main/site/content/languages +[2]: https://github.com/wasilibs/wazerox/stargazers [3]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/contents.html [4]: https://github.com/WebAssembly/wasi-libc [5]: https://github.com/WebAssembly/threads diff --git a/site/content/languages/go.md b/site/content/languages/go.md index 31d1ce08..b8f021e5 100644 --- a/site/content/languages/go.md +++ b/site/content/languages/go.md @@ -361,7 +361,7 @@ the host operating system's underlying controls permit. [11]: https://github.com/WebAssembly/proposals [12]: https://github.com/golang/go/blob/go1.20/src/cmd/link/internal/ld/data.go#L2457 [13]: https://github.com/golang/go/blob/go1.20/src/syscall/tables_js.go#L371-L494 -[14]: https://github.com/tetratelabs/wazero/tree/main/experimental/gojs/example +[14]: https://github.com/wasilibs/wazerox/tree/main/experimental/gojs/example [15]: https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/ [16]: https://github.com/golang/go/blob/go1.20/src/internal/buildcfg/cfg.go#L136-L150 [17]: https://github.com/WebAssembly/spec/blob/wg-2.0.draft1/proposals/nontrapping-float-to-int-conversion/Overview.md diff --git a/site/content/languages/rust.md b/site/content/languages/rust.md index 15c80e6f..8ec44b1a 100644 --- a/site/content/languages/rust.md +++ b/site/content/languages/rust.md @@ -218,12 +218,12 @@ source code may reduce binary size further. [1]: https://www.rust-lang.org/tools/install [4]: https://docs.rust-embedded.org/book/interoperability/rust-with-c.html#no_mangle [5]: https://rustwasm.github.io/docs/book -[6]: https://github.com/tetratelabs/wazero/tree/main/site/content/languages/rust.md -[7]: https://github.com/tetratelabs/wazero/stargazers +[6]: https://github.com/wasilibs/wazerox/tree/main/site/content/languages/rust.md +[7]: https://github.com/wasilibs/wazerox/stargazers [8]: https://rustwasm.github.io/docs/book/reference/which-crates-work-with-wasm.html -[9]: https://github.com/tetratelabs/wazero/tree/main/examples/allocation/rust -[10]: https://github.com/tetratelabs/wazero/tree/main/imports/wasi_snapshot_preview1/example -[11]: https://github.com/tetratelabs/wazero/tree/main/imports/wasi_snapshot_preview1/example/testdata/cargo-wasi +[9]: https://github.com/wasilibs/wazerox/tree/main/examples/allocation/rust +[10]: https://github.com/wasilibs/wazerox/tree/main/imports/wasi_snapshot_preview1/example +[11]: https://github.com/wasilibs/wazerox/tree/main/imports/wasi_snapshot_preview1/example/testdata/cargo-wasi [12]: https://github.com/rustwasm/wee_alloc [13]: https://doc.rust-lang.org/cargo/reference/profiles.html#profile-settings [14]: https://github.com/bytecodealliance/cargo-wasi diff --git a/site/content/languages/tinygo.md b/site/content/languages/tinygo.md index cc339416..6cc7bdbc 100644 --- a/site/content/languages/tinygo.md +++ b/site/content/languages/tinygo.md @@ -338,9 +338,9 @@ functions, such as `fmt.Println`, which can require 100KB of wasm. [1]: https://tinygo.org/ [4]: https://tinygo.org/docs/guides/webassembly/ [5]: https://github.com/tinygo-org/tinygo#getting-help -[6]: https://github.com/tetratelabs/wazero/tree/main/site/content/languages/tinygo.md -[7]: https://github.com/tetratelabs/wazero/stargazers -[8]: https://github.com/tetratelabs/wazero/tree/main/examples/allocation/tinygo +[6]: https://github.com/wasilibs/wazerox/tree/main/site/content/languages/tinygo.md +[7]: https://github.com/wasilibs/wazerox/stargazers +[8]: https://github.com/wasilibs/wazerox/tree/main/examples/allocation/tinygo [9]: https://github.com/tetratelabs/tinymem [11]: https://github.com/tinygo-org/tinygo/blob/v0.25.0/targets/wasi.json [12]: https://github.com/WebAssembly/wasi-libc @@ -352,8 +352,8 @@ functions, such as `fmt.Println`, which can require 100KB of wasm. [18]: https://github.com/tinygo-org/tinygo/issues/447 [19]: https://github.com/tinygo-org/tinygo/issues/3068 [20]: https://github.com/tinygo-org/tinygo/blob/v0.25.0/src/runtime/arch_tinygowasm.go#L47-L62 -[21]: https://github.com/tetratelabs/wazero/tree/main/imports/wasi_snapshot_preview1/example -[22]: https://github.com/tetratelabs/wazero/tree/main/imports/wasi_snapshot_preview1/example/testdata/tinygo +[21]: https://github.com/wasilibs/wazerox/tree/main/imports/wasi_snapshot_preview1/example +[22]: https://github.com/wasilibs/wazerox/tree/main/imports/wasi_snapshot_preview1/example/testdata/tinygo [23]: https://github.com/WebAssembly/binaryen/blob/main/src/passes/Asyncify.cpp [24]: http://tleyden.github.io/blog/2014/10/30/goroutines-vs-threads/ [25]: https://github.com/tinygo-org/tinygo/issues/3095 diff --git a/site/content/languages/zig.md b/site/content/languages/zig.md index 2cc60eb7..1bf05b26 100644 --- a/site/content/languages/zig.md +++ b/site/content/languages/zig.md @@ -18,7 +18,7 @@ browser, tested by wazero: `wasm32-freestanding` and `wasm32-wasi`. ## Overview When Zig compiles a `%.zig` file with a `wasm32-*` target, the output `%.wasm` -depends on a subset of features in the [WebAssembly 2.0 +depends on a subset of features in the [WebAssembly 2.0 Core specification]({{< ref "/specs#core" >}}) and [WASI]({{< ref "/specs#wasi" >}}) host functions. @@ -47,11 +47,11 @@ compiles the source as a library, i.e. without a `main` function. ## Disclaimer -This document includes notes contributed by the wazero community for Zig 0.10.1. +This document includes notes contributed by the wazero community for Zig 0.10.1. While wazero includes Zig examples, and maintainers contribute to Zig, this -isn't a Zig official document. For more help, consider the [WebAssembly Documentation][4] -or joining the [#programming-discussion channel on -Zig's Discord][5]. +isn't a Zig official document. For more help, consider the [WebAssembly Documentation][4] +or joining the [#programming-discussion channel on +Zig's Discord][5]. Meanwhile, please help us [maintain][6] this document and [star our GitHub repository][7], if it is helpful. Together, we can make WebAssembly easier on @@ -66,8 +66,8 @@ software. ## Memory -The Zig language performs no memory management on behalf of the programmer. -However, Zig has no default allocator. Instead, functions which need to allocate +The Zig language performs no memory management on behalf of the programmer. +However, Zig has no default allocator. Instead, functions which need to allocate accept an `Allocator` parameter. ### Host Allocations @@ -105,7 +105,7 @@ To allow the host to allocate memory, you need to define your own `malloc` and (func (export "free") (param $ptr i32) (param $size i32)) ``` -Because Zig easily allows end-users to [plug their own allocators][12], it relatively easy to +Because Zig easily allows end-users to [plug their own allocators][12], it relatively easy to export custom `malloc`/`free` pairs to the host. For instance, the following code exports `malloc`, `free` from Zig's `page_allocator`: @@ -134,8 +134,8 @@ For functionality the operating system would otherwise provide, you must use the `wasm32-wasi` target. This imports host functions in [WASI]({{< ref "/specs#wasi" >}}). -Zig's standard library support for WASI is under active development. -In general, you should favor use of the standard library when compiling against +Zig's standard library support for WASI is under active development. +In general, you should favor use of the standard library when compiling against wasm32-wasi target (e.g. `std.io`). Note: wazero includes an [example WASI project][10] including [source code][11] @@ -154,17 +154,17 @@ performance vs defaults. Note that sometimes one sacrifices the other. ### Binary size -Those with `%.wasm` binary size constraints can change their source, +Those with `%.wasm` binary size constraints can change their source, e.g. picking a [different allocator][9b] or set `zig` flags to reduce it. [`zig` flags][13]: -Zig provides several flags to control binary size, speed of execution, +Zig provides several flags to control binary size, speed of execution, safety checks. For instance you may use -* `-ODebug`: Fast build, enabled safety checks, slower runtime performance, +* `-ODebug`: Fast build, enabled safety checks, slower runtime performance, larger binary size -* `-OReleaseSafe`: Medium runtime performance, enabled safety checks, +* `-OReleaseSafe`: Medium runtime performance, enabled safety checks, slower compilation speed, larger binary size -* `-OReleaseSmall`: Medium runtime performance, disabled safety checks, +* `-OReleaseSmall`: Medium runtime performance, disabled safety checks, slower compilation speed, smaller binary size ### Performance @@ -173,7 +173,7 @@ Those with runtime performance constraints can change their source or set `zig` flags to improve it. [`zig` flags][13]: -* `-OReleaseFast`: Enable additional optimizations, possibly at the cost of +* `-OReleaseFast`: Enable additional optimizations, possibly at the cost of increased binary size. ## Frequently Asked Questions @@ -187,10 +187,10 @@ source code may reduce binary size further. [2]: https://ziglang.org/documentation/0.10.1/#WASI [4]: https://ziglang.org/documentation/0.10.1/#WebAssembly [5]: https://discord.gg/gxsFFjE -[6]: https://github.com/tetratelabs/wazero/tree/main/site/content/languages/zig.md -[7]: https://github.com/tetratelabs/wazero/stargazers -[9]: https://github.com/tetratelabs/wazero/tree/main/examples/allocation/zig +[6]: https://github.com/wasilibs/wazerox/tree/main/site/content/languages/zig.md +[7]: https://github.com/wasilibs/wazerox/stargazers +[9]: https://github.com/wasilibs/wazerox/tree/main/examples/allocation/zig [9b]: https://ziglang.org/documentation/0.10.1/#Memory -[10]: https://github.com/tetratelabs/wazero/tree/main/imports/wasi_snapshot_preview1/example/testdata/zig -[11]: https://github.com/tetratelabs/wazero/blob/main/imports/wasi_snapshot_preview1/example/testdata/zig/cat.zig +[10]: https://github.com/wasilibs/wazerox/tree/main/imports/wasi_snapshot_preview1/example/testdata/zig +[11]: https://github.com/wasilibs/wazerox/blob/main/imports/wasi_snapshot_preview1/example/testdata/zig/cat.zig [13]: https://ziglang.org/documentation/0.10.1/#Build-Mode diff --git a/site/content/specs.md b/site/content/specs.md index af70b178..08fec453 100644 --- a/site/content/specs.md +++ b/site/content/specs.md @@ -72,7 +72,7 @@ removed after the git tag. For example, [`proc_raise`][13] was removed and For all of these reasons, wazero will not implement all WASI features, just to complete the below chart. If you desire something not yet implemented, please -[raise an issue](https://github.com/tetratelabs/wazero/issues/new) and include +[raise an issue](https://github.com/wasilibs/wazerox/issues/new) and include your use case (ex which language you are using to compile, a.k.a. target Wasm). Notes: @@ -143,8 +143,8 @@ Note: 💀 means the function was later removed from WASI. [4]: https://github.com/WebAssembly/WASI/blob/snapshot-01/phases/snapshot/docs.md [5]: https://github.com/WebAssembly/WASI [6]: https://github.com/WebAssembly/spec/tree/wg-1.0/test/core -[7]: https://pkg.go.dev/github.com/tetratelabs/wazero#RuntimeConfig -[9]: https://github.com/tetratelabs/wazero/issues/59 +[7]: https://pkg.go.dev/github.com/wasilibs/wazerox#RuntimeConfig +[9]: https://github.com/wasilibs/wazerox/issues/59 [10]: https://github.com/WebAssembly/proposals [11]: https://github.com/WebAssembly/proposals/blob/main/finished-proposals.md [12]: https://www.w3.org/community/webassembly/ diff --git a/site/static/install.sh b/site/static/install.sh index 461f6900..e5a4f9a4 100644 --- a/site/static/install.sh +++ b/site/static/install.sh @@ -26,7 +26,7 @@ Usage: $this [-b] bindir [-d] [tag] -b sets bindir or installation directory, Defaults to ./bin -d turns on debug logging [tag] is a tag from - https://github.com/tetratelabs/wazero/releases + https://github.com/wasilibs/wazerox/releases If tag is missing, then the latest will be used. Generated by godownloader diff --git a/sys/error_test.go b/sys/error_test.go index 473e4768..fbfb7457 100644 --- a/sys/error_test.go +++ b/sys/error_test.go @@ -5,8 +5,8 @@ import ( "errors" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) type notExitError struct { diff --git a/sys/stat_example_test.go b/sys/stat_example_test.go index 9b75eb58..bcfefa32 100644 --- a/sys/stat_example_test.go +++ b/sys/stat_example_test.go @@ -4,7 +4,7 @@ import ( "io/fs" "math" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/sys" ) var ( diff --git a/sys/stat_test.go b/sys/stat_test.go index 32d0ffea..d1f9e9ac 100644 --- a/sys/stat_test.go +++ b/sys/stat_test.go @@ -8,8 +8,8 @@ import ( "testing" "testing/fstest" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) func Test_NewStat_t(t *testing.T) {