Skip to content

Conversation

@blp
Copy link
Member

@blp blp commented Jul 26, 2023

DBSP relies on bincode version 2.0.0-rc3, which was released at the end of March 2023. DBSP also uses arcstr and we want to serialize and deserialize ArcStrs with bincode. Unfortunately, arcstr doesn't support bincode 2.0 yet and won't until bincode 2.0 finally gets released1, which could be a long time, so we have a patch in Cargo.toml to support that.

We'd like to publish DBSP to crates.io2, but we can't if it depends on patches, so it seems best to avoid them. This commit drops the patch and switches to using #[bincode(with_serde)] to serialize ArcStr fields.

Fixes: #395

DBSP relies on bincode version 2.0.0-rc3, which was released at the end of
March 2023.  DBSP also uses arcstr and we want to serialize and
deserialize `ArcStr`s with bincode.  Unfortunately, arcstr doesn't support
bincode 2.0 yet and won't until bincode 2.0 finally gets released[1], which
could be a long time, so we have a patch in Cargo.toml to support that.

We'd like to publish DBSP to crates.io[2], but we can't if it depends on
patches, so it seems best to avoid them.  This commit drops the patch and
switches to using #[bincode(with_serde)] to serialize ArcStr fields.

[1]: thomcc/arcstr#45
[2]: #14

Signed-off-by: Ben Pfaff <[email protected]>
Fixes: #395
@blp blp requested a review from gz July 26, 2023 17:42
@blp blp merged commit ed2cafa into main Jul 26, 2023
@blp blp deleted the arcstr branch July 26, 2023 17:53
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.

DBSP depends on unreleased arcstr

4 participants