1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Add ext/wasm/README-dist.txt, intended to have been in the previous checkin.

FossilOrigin-Name: c9080b6505b839cc0bb5bd25ce7df0daa91a0a303d037ffe6e77888c8584b932
This commit is contained in:
stephan
2022-10-17 17:36:11 +00:00
parent e79a0943ed
commit ce152a4369
3 changed files with 33 additions and 6 deletions

26
ext/wasm/README-dist.txt Normal file
View File

@ -0,0 +1,26 @@
This is the README for the sqlite3 WASM/JS distribution.
Main project page: https://sqlite.org
TODO: link to main WASM/JS docs, once they are online
This archive contains two related deliverables:
- ./main contains the sqlite3.js and sqlite3.wasm file which make up
the standard sqlite3 WASM/JS build.
- ./wasmfs contains a build of those files which includes the
Emscripten WASMFS[^1]. It offers an alternative approach
to accessing the browser-side Origin-Private FileSystem
but is less portable than the main build, so is provided
as a separate binary.
Both directories contain small demonstration apps. Browsers will not
server WASM files from file:// URLs, so the demonstrations require a
web server and that server must include the following headers in its
response when serving the files:
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp
[^1]: https://emscripten.org