Skip to content

Switch from Cap'n'proto to Serde for cache#5358

Merged
lpil merged 5 commits into
gleam-lang:mainfrom
GearsDatapacks:capnp-to-serde
Mar 17, 2026
Merged

Switch from Cap'n'proto to Serde for cache#5358
lpil merged 5 commits into
gleam-lang:mainfrom
GearsDatapacks:capnp-to-serde

Conversation

@GearsDatapacks

Copy link
Copy Markdown
Member

Closes #1599 and fixes #5260

  • The changes in this PR have been discussed beforehand in an issue
  • The issue for this PR has been linked
  • Tests have been added for new behaviour
  • The changelog has been updated for any user-facing changes

This PR replaces Cap'n'proto with Serde and Bincode for module caching. I have also merged the cache_inline and cache_module files into the main .cache as I don't see a reason for them to be kept separate anymore.

@lpil lpil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh I love this!!!!

Comment thread compiler-core/src/build/package_compiler.rs Outdated
@lpil
lpil marked this pull request as draft February 25, 2026 18:25
@GearsDatapacks
GearsDatapacks marked this pull request as ready for review February 25, 2026 21:36
@GearsDatapacks
GearsDatapacks force-pushed the capnp-to-serde branch 2 times, most recently from 5445a5d to 1893fdd Compare March 9, 2026 16:37

@lpil lpil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!!

@lpil
lpil merged commit 01c5113 into gleam-lang:main Mar 17, 2026
12 checks passed
@ankddev

ankddev commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

@lpil Just wondering if it's good to use bincode here, since it's unmantained. Some projects are migrating to alternatives and some ones are staying on it unless there are some problems with it, so maybe it's good enough for now.

@GearsDatapacks
GearsDatapacks deleted the capnp-to-serde branch March 17, 2026 18:02
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.

Metadata decoder error: "Message is too deeply-nested" when using deeply nested constants Switch from capnproto to serde

3 participants