Writing a RISC-V Emulator in Rust