add print snippet in rust.