Rearrange Rust codes to fit the Cargo standard structure.