You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
frozar 0d028f4a9d [SCRIPT] Check the python interpretor version in serve.py
If the python interpretor is to old, it doesn't have yet the context manager
protocol support:
https://stackoverflow.com/questions/48055880/attributeerror-exit-with-socketserver-on-python-3-4-3#answer-48056064

An alternative syntax is proposed to support python interpretor older than 3.6
6 years ago
pkg Modified gitignore to preserver pkg directory 6 years ago
src Update for 0.3.0 6 years ago
.gitignore Updated for update func taking Model, and removed nightly instructions 6 years ago
Cargo.toml Update for 0.3.0 6 years ago
README.md [README] Fix a typo. 6 years ago
build.ps1 Fixed problem with build script ps1 6 years ago
build.sh [SCRIPT] Fix the build.sh script. 6 years ago
index.html Updated for 0.2.9, including a breaking change to Update 6 years ago
serve.py [SCRIPT] Check the python interpretor version in serve.py 6 years ago

README.md

Seed Quickstart

To get started:

  • Clone this repo

  • If you don't have Rust and wasm-bindgen installed, Download it, and run the following commands:

rustup update

rustup target add wasm32-unknown-unknown

cargo install wasm-bindgen-cli

If you run into errors while installing wasm-bindgen-cli, you may need to install a C++ build chain. On linux, run sudo apt install build-essential. On Windows, download and install Visual Studio 2017; when asked in the installer, include the C++ workload.

  • Run build.sh or build.ps1, then start a dev server that supports WASM. For example, with Python installed, run python serve.py. (Linux users may need to run python3 serve.py.)

If you run into permission errors on build.sh, try this command to allow executing the file:chmod +x build.sh. If you run into persmission errors on build.ps1, open Powershell as an administrator, and enter this command: Set-ExecutionPolicy RemoteSigned.

Once you rename the crate in Cargo.toml (The name field under [Package]), make the following change:

  • Replace appname with your new name in either build.sh, or build.ps1, depending on your operating system.