Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/w-mai/runpyscriptinbrowserwithwasmlibcompiledbyrust
Run PyScript In Browser With Wasm Lib Compiled By Rust
https://github.com/w-mai/runpyscriptinbrowserwithwasmlibcompiledbyrust
Last synced: 26 days ago
JSON representation
Run PyScript In Browser With Wasm Lib Compiled By Rust
- Host: GitHub
- URL: https://github.com/w-mai/runpyscriptinbrowserwithwasmlibcompiledbyrust
- Owner: W-Mai
- Created: 2023-11-25T17:11:01.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-08T14:07:19.000Z (about 1 year ago)
- Last Synced: 2023-12-09T12:38:06.703Z (about 1 year ago)
- Language: Python
- Size: 1.08 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Run PyScript In Browser With Wasm Lib Compiled By Rust
## 1. Install Rust
```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup target add wasm32-unknown-unknown
```## 2. Build Wasm Lib
```bash
./build.sh
```## 3. Run Server
```bash
cd web
python -m http.server
```## 4. Open Browser
Open `http://localhost:8000` in browser, and you will see the result.