initial Rust generator -- kinda dirty right now