Skip to content

dotakon-mirror/browser

Repository files navigation

Prerequisites

You need Node.js, Rust, and wasm-bindgen-cli.

Building and Running

The following assumes the root of this repo is the current working directory.

To build the Rust engine, first move into the lib subdirectory and then use cargo:

browser$ cd lib
browser/lib$ cargo build --target wasm32-unknown-unknown --release

Optionally run the tests (before cargo build):

browser/lib$ cargo test

Then generate the JavaScript bindings:

browser/lib$ wasm-bindgen target/wasm32-unknown-unknown/release/lib.wasm --out-dir ../lib-bindings/ --target bundler

Now you can move back to the root and run the full app:

browser/lib$ cd ..
browser$ npm start

The final native binary is built with:

browser$ npm run package

About

The Dotakon browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages