Starter repo for doing the Maelstrom challenges in rust.
Install maelstrom's dependencies.
On Mac:
brew install openjdk graphviz gnuplot
On Ubuntu/Debian:
apt install openjdk-17-jdk graphviz gnuplot
Install Maelstrom:
./install_maelstrom.sh
To run your solution, build:
cargo build
and 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-stderr
The -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.