- Rust 1.68.0
To compile and run the browser version you need to have Rust tools installed (https://www.rust-lang.org/tools/install).
Then you need to install WebAssembly using the following command:
rustup target add wasm32-unknown-unknown
And then, you need to install Trunk using the following command:
cargo install --locked trunk
Next in the downloaded repository, go to the frontend folder and run the following command:
trunk serve
And then, without finishing the first command call in the folder backend command:
cargo run
Once everything compiles, you should see the Arlekin client at: http://localhost:8080/.
The
trunk servecommand will automatically compile the page when it detects changes in thefrontentfolder.
Warning: Remember to reload cache your browser (CTRL+F5).
The git workflow strictly applies. Read it here.
In addition, do not forget to format the Rust code and detect errors and fix them with the compiler and clippy before you post a pull request.
Formatting (installation guide):
cargo fmt
Clippy (installation guide):
cargo clippy --target wasm32-unknown-unknown