Rust updates

The `bytes!` macro and `std::mem::to_{be,le}*` have been deprecated.