query: rust read stdin
answer: use std::io::read_to_string
source: stackoverflow
