EasyPost / rust-mysql-binlog

Rust implementation of the MySQL binlog format
ISC License
102 stars 18 forks source link

Serialize defined multiple of times #9

Closed zaibacu closed 2 years ago

zaibacu commented 2 years ago

I'm getting following error when trying to use it.

  |
5 | use serde::{Serialize, Serializer};
  |             --------- previous import of the macro `Serialize` here
6 | use serde_derive::Serialize;
  |     ^^^^^^^^^^^^^^^^^^^^^^^ `Serialize` reimported here
  |
  = note: `Serialize` must be defined only once in the macro namespace of this module

Seems to be telling the truth: https://github.com/EasyPost/rust-mysql-binlog/blob/master/src/value.rs#L4

Roguelazer commented 2 years ago

Ah, this is a change in newer versions of Serde. I'll fix it.

Roguelazer commented 2 years ago

(specifically, derive behavior can be exposed from serde directly via a feature, and I imagine one of your other dependencies is selecting that feature)

Roguelazer commented 2 years ago

v0.3.2 is now available on crates.io which fixes this issue

thanks for reporting!

zaibacu commented 2 years ago

Thank you for fixing :)