From 628cbbf178ef9af8870e8997e18a88d5f718b00c Mon Sep 17 00:00:00 2001
From: SIKAI ZHANG <34108862+MatthewSZhang@users.noreply.github.com>
Date: Tue, 27 May 2025 10:46:10 +0800
Subject: [PATCH 1/2] DOC add readme for wasm wheel
---
README.rst | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/README.rst b/README.rst
index c315e0d..e098dd3 100644
--- a/README.rst
+++ b/README.rst
@@ -92,6 +92,19 @@ Support Free-Threaded Wheels
FastCan has support for free-threaded (also known as nogil) CPython 3.13.
For more information about free-threaded CPython, check `how to install a free-threaded CPython `_.
+Support WASM Wheels
+-------------------
+FastCan is compiled to WebAssembly (WASM) wheels using `pyodide `_, and they are available on the assets of GitHub releases.
+You can try it in a `REPL `_ directly in a browser.
+The WASM wheels of FastCan can be installed by
+
+>>> import micropip
+>>> await micropip.install('URL of the wasm wheel (end with _wasm32.whl)')
+
+.. note::
+ Due to the Cross-Origin Resource Sharing (CORS) block in web browsers,
+ you may need `Allow CORS: Access-Control-Allow-Origin Chrome extension `_.
+
Citation
--------
From 44bd43d4bc88c1be1809399a563f44b14cf73a93 Mon Sep 17 00:00:00 2001
From: SIKAI ZHANG <34108862+MatthewSZhang@users.noreply.github.com>
Date: Tue, 27 May 2025 10:55:13 +0800
Subject: [PATCH 2/2] DOC skip doctest
---
README.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.rst b/README.rst
index e098dd3..1c2b1d7 100644
--- a/README.rst
+++ b/README.rst
@@ -98,8 +98,8 @@ FastCan is compiled to WebAssembly (WASM) wheels using `pyodide `_ directly in a browser.
The WASM wheels of FastCan can be installed by
->>> import micropip
->>> await micropip.install('URL of the wasm wheel (end with _wasm32.whl)')
+>>> import micropip # doctest: +SKIP
+>>> await micropip.install('URL of the wasm wheel (end with _wasm32.whl)') # doctest: +SKIP
.. note::
Due to the Cross-Origin Resource Sharing (CORS) block in web browsers,