github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/examples/hello/rust/src/main.rs (about) 1 use std::io; 2 use std::io::Read; 3 4 fn main() { 5 let mut buffer = String::new(); 6 let stdin = io::stdin(); 7 if stdin.lock().read_to_string(&mut buffer).is_ok() { 8 println!("Hello {}", buffer.trim()); 9 } 10 }