added more rust code

added more rust code