aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--src/bun.js/wasi.exports.js7
2 files changed, 6 insertions, 3 deletions
diff --git a/README.md b/README.md
index 035a9b1bd..c2be093ce 100644
--- a/README.md
+++ b/README.md
@@ -5007,7 +5007,7 @@ bun also statically links these libraries:
- [`c-ares`](https://github.com/c-ares/c-ares), which is MIT licensed
- `libicu` 72, which can be found here: <https://github.com/unicode-org/icu/blob/main/icu4c/LICENSE>
- A fork of [`uWebsockets`](https://github.com/jarred-sumner/uwebsockets), which is Apache 2.0 licensed
-- WASI implementation from [`wasi-js`](https://github.com/sagemathinc/cowasm/tree/main/packages/wasi-js), which is BSD 3 clause licensed
+- WASI implementation from [`wasi-js`](https://github.com/sagemathinc/cowasm/tree/main/packages/wasi-js), which is BSD 3 clause licensed. Note that wasi-js is originally based on [wasmer-js](https://github.com/wasmerio/wasmer-js), which is MIT licensed. wasmer-js was based on [node-wasi](https://github.com/devsnek/node-wasi) by Gus Caplan (also MIT licensed). You can [read more about the history here](https://github.com/sagemathinc/cowasm/tree/main/packages/wasi-js#history).
For compatibility reasons, these NPM packages are embedded into bun’s binary and injected if imported.
diff --git a/src/bun.js/wasi.exports.js b/src/bun.js/wasi.exports.js
index 060310a9c..6689003fb 100644
--- a/src/bun.js/wasi.exports.js
+++ b/src/bun.js/wasi.exports.js
@@ -1,5 +1,8 @@
-// HUGE thanks to @williamstein and https://github.com/sagemathinc/cowasm/tree/main/packages/wasi-js
-// This code is mostly a copy of wasi-js
+// HUGE thanks to:
+// - @williamstein and https://github.com/sagemathinc/cowasm/tree/main/packages/wasi-js
+// - @syrusakbary for wasmer-js https://github.com/wasmerio/wasmer-js
+// - Gus Caplan for node-wasi https://github.com/devsnek/node-wasi
+//
// Eventually we will implement this in native code, but this is just a quick hack to get WASI working.
/** **/