Skip to content

saminkhan/first_rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FirstRust

Clicking the gears button in middle of page will prompt for n, in order to benchmark fibonacci(n) in JavaScript and Rust+Wasm.

WARNING: n >= 45 will take several minutes to calculate.

Requirements (for Linux):

cargo, npm, and wasm-pack must be installed.

Additional requirements for Windows:

git bash must be installed.

Production mode:

npm run build
npm start

Development mode:

npm run dev

Notes:

  1. access the app by navigating to http://127.0.0.1:3000 with a WASM-compatible browser (ie. not IE)
  2. dev mode is slower and less-compact than release build, but enables live-reloading upon code changes and browser-side debugging
  3. be sure to use a git bash terminal when working in Windows (cmd, PS, and wsl cause too much pain)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors