Skip to content

thomashorrobin/create-react-app-rust

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create-react-app with support for Rust Build Status PRs Welcome

This project is a fork of Facebook's create-react-app with support for Rust that compiles to WebAssembly.

Create React App works on macOS, Windows, and Linux. However Rust tools may behave diferently on Windows in certain circumstances.

If something doesn’t work, please file an issue.

Quick Overview

If you haven't already you'll need to install Rust and source it into your current context

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

Then you can run the tool with npx

npx create-react-app my-app --scripts-version react-scripts-rust
cd my-app
npm start

(npx comes with npm 5.2+ and higher, see instructions for older npm versions)

Then open http://localhost:3000/ to see your app.

When you’re ready to deploy to production, create a minified bundle with npm run build.

npm start

Vision

The following articles inspired the effort to combine rust, React, and WebAssembly:

About

Create React apps with no build configuration.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.2%
  • Shell 1.3%
  • TypeScript 0.2%
  • CSS 0.1%
  • HTML 0.1%
  • AppleScript 0.1%