Skip to content

Use postcard instead of bincode in tests#507

Merged
Amanieu merged 1 commit into
Amanieu:masterfrom
valadaptive:postcard
Dec 17, 2025
Merged

Use postcard instead of bincode in tests#507
Amanieu merged 1 commit into
Amanieu:masterfrom
valadaptive:postcard

Conversation

@valadaptive
Copy link
Copy Markdown
Contributor

Someone in contact with the bincode maintainers has mentioned that it's not really maintained anymore and recommended the ecosystem switch away from it:

Bincode has spent a good probably most of its life at this point only being barely maintained with an occasional punctuation of activity, and help from the community has not been forthcoming (while a large part of that is because bincode is largely done as in feature complete and has been for some time, given it's maintenance status, it's quite frankly terrifying how much of the rust ecosystem depends on it, many of these projects would be much better served in multiple ways by using something that's not bincode).

This PR isn't really "it's important that parking_lot needs to stop using bincode in its tests and switch to something else". It's moreso that parking_lot is a very popular reverse dependency of bincode, and the hope is that by switching away from it, the broader ecosystem is encouraged to look for alternatives and stop reaching for bincode just because it's already popular.

@Amanieu
Copy link
Copy Markdown
Owner

Amanieu commented Dec 17, 2025

Sure, I don't mind. In the end all we need is some implementation of serde to check that our trait implementations are correct. It doesn't really matter which back-end we use.

@Amanieu Amanieu merged commit 36554de into Amanieu:master Dec 17, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants