Closed
Description
Using this crate alongside a serde = { version = "1.0", features = ['derive'] }
dependency causes behavior like in #2. This is due to this line that assumes that serde_derive
is present. However it cannot be replaced by serde::Serialize
since this causes serde-rs/serde#1467 caused by rust-lang/rust#55779.
A sketchy work around is to define a
mod serde_derive {
pub use serde::{Serialize, Deserialize};
}
in the same module where Serialize_tuple
is used.
I think that once rust-lang/rust#55779 is fixed, this crate should depend on serde = { version = "1.0", features = ['derive'] }
since, from what I understand, feature flags forces the dependency down the chain, while simply depending on serde_derive
(like this crate does currently) does not.
Metadata
Metadata
Assignees
Labels
No labels