Skip to content

Replace unmaintained "bincode" serialization/deserialization dependency with "wincode" #2207

Open

Description

@ocean

The bincode library used for serializing and deserializing has been marked as unmaintained (RUSTSEC-2025-0141).

The maintainer makes several replacement recommendations as do RUSTSEC:

  • wincode - this is quite recent

  • postcard - maintainer has many Rust libraries they maintain, lots of activity, appears stable, drop-in replacement, 60+ contributors, used by 7,000+ other repos

  • bitcode - seems fine, but lower activity and not many maintainers

  • rkyv - looks good, but would require many more changes across the codebase to implement

I've done up a PR to replace bincode with postcard, enjoy! 😁

#2208

Activity

  1. ocean commented on Jan 8, 2026

    @ocean
    Author

    postcard serialization output is not the same as bincode, so this has broken compatibility with the go-libsql library and possibly other bindings.

    wincode is apparently compatible directly with bincode so investigating that now.

  2. ocean commented on Jan 14, 2026

    @ocean
    Author

    I fixed this by replacing bincode with wincode, which provides binary compatible serializations, so the PR now passes all the tests and is ready for someone too look at 👀

  3. changed the title [-]Replace unmaintained "bincode" serialization/deserialization dependency with "postcard"[/-] [+]Replace unmaintained "bincode" serialization/deserialization dependency with "wincode"[/+] on Jan 14, 2026
  4. theodore-s-beers commented on Jan 31, 2026

    @theodore-s-beers

    The bincode library used for serializing and deserializing has been marked as unmaintained

    Sadly, it's worse than unmaintained. The erstwhile maintainer published a version 3.0.0 to crates.io, whose entire source code is as follows:

    compile_error!("https://xkcd.com/2347/");

    Definitely a good idea to migrate. I moved my projects to postcard, at the cost of re-serializing.

    (found this thread while googling to try to figure out what on earth happened to bincode)

  5. ocean commented on Apr 1, 2026

    @ocean
    Author

    @penberg Are you able to have a look at this please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions