Skip to content

Hyle-org/hyleoof

Repository files navigation

Hylé Oof

Small demo app for the hyle AMM, using yew

Installation

If you don't already have it installed, it's time to install Rust: https://www.rust-lang.org/tools/install. The rest of this guide assumes a typical Rust installation which contains both rustup and Cargo.

To compile Rust to WASM, we need to have the wasm32-unknown-unknown target installed. If you don't already have it, install it with the following command:

rustup target add wasm32-unknown-unknown

Now that we have our basics covered, it's time to install the star of the show: [Trunk]. Simply run the following command to install it:

cargo install trunk wasm-bindgen-cli

That's it, we're done!

Running

The frontend runs with:

cd crates/ui
trunk serve

Rebuilds the app whenever a change is detected and runs a local server to host it.

There's also the trunk watch command which does the same thing but without hosting it.

And the backend

cargo run -p server

Note: You need to have the hyle repo in the parent directory.