updated Rust code for v0.8