Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Figure out bincode Decode/Encode interop with serde #433

@VictorKoenders

Description

@VictorKoenders

Currently bincode 2 only allows either Decode/Encode, or serde's traits. It would be nice to have a way to use serde types while using Decode/Encode

Some ideas:

  • Add an #[serde_interop] attribute to bincode_derive
  • Add a WithSerde<T> that implements Decode/Encode
  • Disable the default impl for Decode/Encode and replace it with something like:
    • impl Decode for T where T: Deserialize
    • impl Encode for T where T: Serialize

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions