From 0a89c824e1f05646148c2e7a670921484d5cde69 Mon Sep 17 00:00:00 2001
From: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
Date: Thu, 29 Jan 2026 18:04:46 -0600
Subject: [PATCH] fix: move wit_* packages into wit-bindgen dir
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
---
README.md | 6 +++---
docs/wit-bindgen/index.html | 10 ++++++++++
docs/wit-bindgen/wit_async.html | 10 ++++++++++
docs/wit-bindgen/wit_runtime.html | 10 ++++++++++
docs/wit-bindgen/wit_types.html | 10 ++++++++++
docs/wit_async.html | 10 ----------
docs/wit_runtime.html | 10 ----------
docs/wit_types.html | 10 ----------
{wit_async => wit-bindgen/wit_async}/wit_async.go | 2 +-
.../wit_runtime}/wit_runtime.go | 0
{wit_types => wit-bindgen/wit_types}/wit_future.go | 4 ++--
{wit_types => wit-bindgen/wit_types}/wit_option.go | 0
{wit_types => wit-bindgen/wit_types}/wit_result.go | 0
{wit_types => wit-bindgen/wit_types}/wit_stream.go | 4 ++--
{wit_types => wit-bindgen/wit_types}/wit_tuple.go | 0
{wit_types => wit-bindgen/wit_types}/wit_unit.go | 0
16 files changed, 48 insertions(+), 38 deletions(-)
create mode 100644 docs/wit-bindgen/index.html
create mode 100644 docs/wit-bindgen/wit_async.html
create mode 100644 docs/wit-bindgen/wit_runtime.html
create mode 100644 docs/wit-bindgen/wit_types.html
delete mode 100644 docs/wit_async.html
delete mode 100644 docs/wit_runtime.html
delete mode 100644 docs/wit_types.html
rename {wit_async => wit-bindgen/wit_async}/wit_async.go (99%)
rename {wit_runtime => wit-bindgen/wit_runtime}/wit_runtime.go (100%)
rename {wit_types => wit-bindgen/wit_types}/wit_future.go (97%)
rename {wit_types => wit-bindgen/wit_types}/wit_option.go (100%)
rename {wit_types => wit-bindgen/wit_types}/wit_result.go (100%)
rename {wit_types => wit-bindgen/wit_types}/wit_stream.go (98%)
rename {wit_types => wit-bindgen/wit_types}/wit_tuple.go (100%)
rename {wit_types => wit-bindgen/wit_types}/wit_unit.go (100%)
diff --git a/README.md b/README.md
index 4a8ae48..e39f01b 100644
--- a/README.md
+++ b/README.md
@@ -37,9 +37,9 @@ This repository hosts the vanity import path redirects for `go.bytecodealliance.
### Actively Maintained Packages
| Import Path | Description |
|-------------|-------------|
-| `go.bytecodealliance.org/wit_types` | WIT type definitions (Option, Result, Tuple, Future, Stream, etc.) |
-| `go.bytecodealliance.org/wit_async` | Async primitives for WIT. |
-| `go.bytecodealliance.org/wit_runtime` | Runtime support for WIT. |
+| `go.bytecodealliance.org/wit-bindgen/wit_types` | WIT type definitions (Option, Result, Tuple, Future, Stream, etc.) |
+| `go.bytecodealliance.org/wit-bindgen/wit_async` | Async primitives for WIT. |
+| `go.bytecodealliance.org/wit-bindgen/wit_runtime` | Runtime support for WIT. |
### Legacy Packages:
These packages are located at [bytecodealliance/go-modules](https://github.com/bytecodealliance/go-modules)
diff --git a/docs/wit-bindgen/index.html b/docs/wit-bindgen/index.html
new file mode 100644
index 0000000..119796d
--- /dev/null
+++ b/docs/wit-bindgen/index.html
@@ -0,0 +1,10 @@
+
+
+ go.bytecodealliance.org/wit-bindgen
+
+
+
+
+ Redirecting to documentation…
+
+
diff --git a/docs/wit-bindgen/wit_async.html b/docs/wit-bindgen/wit_async.html
new file mode 100644
index 0000000..ad3bd21
--- /dev/null
+++ b/docs/wit-bindgen/wit_async.html
@@ -0,0 +1,10 @@
+
+
+ go.bytecodealliance.org/wit-bindgen/wit_async
+
+
+
+
+ Redirecting to documentation…
+
+
diff --git a/docs/wit-bindgen/wit_runtime.html b/docs/wit-bindgen/wit_runtime.html
new file mode 100644
index 0000000..b71be40
--- /dev/null
+++ b/docs/wit-bindgen/wit_runtime.html
@@ -0,0 +1,10 @@
+
+
+ go.bytecodealliance.org/wit-bindgen/wit_runtime
+
+
+
+
+ Redirecting to documentation…
+
+
diff --git a/docs/wit-bindgen/wit_types.html b/docs/wit-bindgen/wit_types.html
new file mode 100644
index 0000000..238cba3
--- /dev/null
+++ b/docs/wit-bindgen/wit_types.html
@@ -0,0 +1,10 @@
+
+
+ go.bytecodealliance.org/wit-bindgen/wit_types
+
+
+
+
+ Redirecting to documentation…
+
+
diff --git a/docs/wit_async.html b/docs/wit_async.html
deleted file mode 100644
index b559aca..0000000
--- a/docs/wit_async.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
- go.bytecodealliance.org/wit_async
-
-
-
-
- Redirecting to documentation…
-
-
diff --git a/docs/wit_runtime.html b/docs/wit_runtime.html
deleted file mode 100644
index fa4286b..0000000
--- a/docs/wit_runtime.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
- go.bytecodealliance.org/wit_runtime
-
-
-
-
- Redirecting to documentation…
-
-
diff --git a/docs/wit_types.html b/docs/wit_types.html
deleted file mode 100644
index f2dcdbe..0000000
--- a/docs/wit_types.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
- go.bytecodealliance.org/wit_types
-
-
-
-
- Redirecting to documentation…
-
-
diff --git a/wit_async/wit_async.go b/wit-bindgen/wit_async/wit_async.go
similarity index 99%
rename from wit_async/wit_async.go
rename to wit-bindgen/wit_async/wit_async.go
index de5751e..4dfb03d 100644
--- a/wit_async/wit_async.go
+++ b/wit-bindgen/wit_async/wit_async.go
@@ -5,7 +5,7 @@ import (
"runtime"
"unsafe"
- "go.bytecodealliance.org/wit_runtime"
+ "go.bytecodealliance.org/wit-bindgen/wit_runtime"
)
const EVENT_NONE uint32 = 0
diff --git a/wit_runtime/wit_runtime.go b/wit-bindgen/wit_runtime/wit_runtime.go
similarity index 100%
rename from wit_runtime/wit_runtime.go
rename to wit-bindgen/wit_runtime/wit_runtime.go
diff --git a/wit_types/wit_future.go b/wit-bindgen/wit_types/wit_future.go
similarity index 97%
rename from wit_types/wit_future.go
rename to wit-bindgen/wit_types/wit_future.go
index f66e5ba..e024a85 100644
--- a/wit_types/wit_future.go
+++ b/wit-bindgen/wit_types/wit_future.go
@@ -4,8 +4,8 @@ import (
"runtime"
"unsafe"
- "go.bytecodealliance.org/wit_async"
- "go.bytecodealliance.org/wit_runtime"
+ "go.bytecodealliance.org/wit-bindgen/wit_async"
+ "go.bytecodealliance.org/wit-bindgen/wit_runtime"
)
type FutureVtable[T any] struct {
diff --git a/wit_types/wit_option.go b/wit-bindgen/wit_types/wit_option.go
similarity index 100%
rename from wit_types/wit_option.go
rename to wit-bindgen/wit_types/wit_option.go
diff --git a/wit_types/wit_result.go b/wit-bindgen/wit_types/wit_result.go
similarity index 100%
rename from wit_types/wit_result.go
rename to wit-bindgen/wit_types/wit_result.go
diff --git a/wit_types/wit_stream.go b/wit-bindgen/wit_types/wit_stream.go
similarity index 98%
rename from wit_types/wit_stream.go
rename to wit-bindgen/wit_types/wit_stream.go
index c1d71ee..ab25674 100644
--- a/wit_types/wit_stream.go
+++ b/wit-bindgen/wit_types/wit_stream.go
@@ -4,8 +4,8 @@ import (
"runtime"
"unsafe"
- "go.bytecodealliance.org/wit_async"
- "go.bytecodealliance.org/wit_runtime"
+ "go.bytecodealliance.org/wit-bindgen/wit_async"
+ "go.bytecodealliance.org/wit-bindgen/wit_runtime"
)
type StreamVtable[T any] struct {
diff --git a/wit_types/wit_tuple.go b/wit-bindgen/wit_types/wit_tuple.go
similarity index 100%
rename from wit_types/wit_tuple.go
rename to wit-bindgen/wit_types/wit_tuple.go
diff --git a/wit_types/wit_unit.go b/wit-bindgen/wit_types/wit_unit.go
similarity index 100%
rename from wit_types/wit_unit.go
rename to wit-bindgen/wit_types/wit_unit.go