Skip to content

DarcJC/dArcEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dArCEngine

Bench

Introduction

Workspace Setup

Windows

  1. Export $env:CARGO_BUILD_TARGET="x86_64-pc-windows-msvc"

WASM

  1. cargo install wasm-server-runner
  2. rustup target add wasm32-unknown-unknown
  3. Export RUSTFLAGS environment variable. $env:RUSTFLAGS="--cfg=web_sys_unstable_apis"
  4. cargo run --target wasm32-unknown-unknown

Ignore below for now.

  1. Install wasm-pack.
  2. Install wasm-bindgen-cli (cargo install wasm-bindgen-cli).
  3. Export RUSTFLAGS environment variable. $env:RUSTFLAGS="--cfg=web_sys_unstable_apis" (Optional in Windows/Powershell)
  4. Build a wasm file RUSTFLAGS=--cfg=web_sys_unstable_apis wasm-pack build renderer --target web --features webgl
  5. Start a http server to serve your files (i.e. python -m http.server 30001)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published