Skip to content

Replace digest dependency with crc32c - #6

Merged
edsko merged 1 commit into
well-typed:mainfrom
carbolymer:main
Nov 15, 2025
Merged

Replace digest dependency with crc32c#6
edsko merged 1 commit into
well-typed:mainfrom
carbolymer:main

Conversation

@carbolymer

@carbolymer carbolymer commented Oct 29, 2025

Copy link
Copy Markdown
Contributor

Both digest and crc32c are importing crc32c_extend symbol from a crc32c C library which results in GHC linker fatal error when cross-compiling on Windows (see TeofilC/digest#24) and when both dependencies are in the dependency tree. There is a PR open in digest which goes in the direction of removing crc32c C library dependency: TeofilC/digest#24 in favour of using crc32c haskell library directly, thus removing Data.Digest.CRC32C export (used in snappy-c) from digest.

Both digest and crc32c are importing crc32c_extend symbol which results
in GHC linker fatal error when both dependencies are in the dependency
tree. There is a PR open in digest which goes in the direction of
removing crc32c C library: TeofilC/digest#24
in favour of using crc32c haskell library directly.
@carbolymer

Copy link
Copy Markdown
Contributor Author

@edsko is this something you'd consider merging?

@edsko

edsko commented Nov 12, 2025

Copy link
Copy Markdown
Collaborator

Yes, I think so. Let me just double-check with the client, but if they're fine with it, I'll merge and release. Thanks for the PR!

@edsko
edsko merged commit b374239 into well-typed:main Nov 15, 2025
0 of 7 checks passed
@edsko

edsko commented Nov 15, 2025

Copy link
Copy Markdown
Collaborator

Released as snappy-c-0.1.2.

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