Crate maelstrom_worker_child
source ·Expand description
Helper library for maelstrom-worker.
This code is run in the child process after the call to clone
. In this environment, since the
cloning process is multi-threaded, there is very little that we can do safely. In particular,
we can’t allocate from the heap. This library is separate so we can make it no_std
and manage
its dependencies carefully.
Structs§
Enums§
- A syscall to call. This should be part of slice, which we refer to as a script. Some variants deal with a value. This is a
usize
local variable that can be written to and read from.
Functions§
- Run the provided syscall script in
syscalls
.