Fix deprecations

Fix a few things that were deprecated in Rust/Cargo.