Starter repo for doing the Maelstrom challenges in rust.
Install maelstrom's dependencies.
On Mac:
brew install openjdk graphviz gnuplotOn Ubuntu/Debian:
apt install openjdk-17-jdk graphviz gnuplotInstall Maelstrom:
./install_maelstrom.shTo run your solution, build:
cargo buildand then run the binary with the maelstrom client:
./maelstrom/maelstrom test -w echo --bin ./target/debug/rust-maelstrom-boilerplate --node-count 1 --time-limit 10 --log-stderrThe -w flag specifies the workload to use. The starter code is an implementation of the echo workload, for others you will need to set this flag accordingly.
You can find docs for the maelstrom client here. The repo is at https://github.com/sitano/maelstrom-rust-node, where you can read source code and examples.