This was written for a job interview.
cargo run -- <binary-name>
# or alternatively
<binary-name> | cargo run
where <binary-name>
is the name of the binary executable that produces newline-delimited json messages with event_type
and data
string fields.