A port of tray to Rust