Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate dependency on arcstr patch that isn't upstream yet. #399

Merged
merged 1 commit into from
Jul 26, 2023
Merged

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 <blp@feldera.com>
Fixes: #395
@blp blp requested a review from gz July 26, 2023 17:42
@blp blp merged commit ed2cafa into main Jul 26, 2023
5 checks passed
@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
3 participants