Skip to content

sfcompute/rust-maelstrom-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starter repo for doing the Maelstrom challenges in rust.

Getting Started

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.

Helpful Links

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published