Skip to content

ASteinheiser/oxy-gen-demo

Repository files navigation

OXY-GEN Demo

This project was generated by OXY-GEN, an open-source cli tool that helps developers quickly create native desktop apps using React and Rust!

It uses Electron to build the native app, create-react-app for the React side, and uses Web Assembly to bind the Rust functions.

OXY-GEN includes a recursive fibonacci algorithm written in Node.js and Rust. It uses Web Workers to run both languages in parallel to showcase the speed difference.

OXY-GEN Demo Screenshot

First Time Setup

Install Yarn

npm install -g yarn

Rust Toolchain

Install Rustup

curl https://sh.rustup.rs -sSf | sh
source $HOME/.cargo/env

Select Nightly Version (for WASM support)

rustup default nightly

Install WASM bindgen and add target

rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli

Usage

Install Dependencies:

yarn install

Build Rust(WASM) and React App:

yarn build

Run Dev Electron App:

yarn dev

Build Distribution for Mac, Linux and Windows

yarn electron-pack

About

Electron app made with React + Rust to showcase the speed difference between Node.js and Rust (Web Assembly) using the Fibonacci sequence algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published