@bowdo/react-scripts-rust

Configuration and scripts for using Rust with Create React App

Usage no npm install needed!

<script type="module">
  import bowdoReactScriptsRust from 'https://cdn.skypack.dev/@bowdo/react-scripts-rust';
</script>

README

react-scripts-rust

This package includes scripts and configuration used by Create React App (Rust).
Please refer to its documentation:

Quick Overview

First install Rust if you haven't already

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

After the project has loaded in Chrome any changes in src/lib.rs should result in an instant update in the browser.