Skip to content

Forced serde_derive dependency #5

Closed
@jean-airoldie

Description

@jean-airoldie

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions