rust: move rust code into a top-level directory.
rust: update code for rust language changes.