# Development

# Requirements

rustup target add wasm32-unknown-unknown

# Build for Desktop

Run the following command in crates/dream-runner

cargo run +nightly --package dream-runner --bin dream-runner  --release

# Build for Web

Run the following command in crates/dream-runner

# build project
rustup run nightly-2023-06-10 wasm-pack build --target web --out-dir ../../web/build --release

# serve it on the web by starting the server
cd ../../web
npm i
npm run start

Visit http://localhost:3000 (opens new window) on the latest version of Chrome to view the application

# Run Tests

cargo test --workspace

# Troubleshooting

# error[E0554]: #![feature] may not be used on the stable release channel

Recommended solution: cargo clean

Other solutions: https://stackoverflow.com/questions/53136717/errore0554-feature-may-not-be-used-on-the-stable-release-channel-couldnt (opens new window)