Fix Rust breaking changes: update serialize