Fixed the API changes in Rust and the dependencies