Skip to content

Conversation

@fasterthanlime
Copy link
Contributor

Summary

  • Replace facet-postcard with facet-format-postcard (with jit feature enabled)
  • This uses Cranelift for JIT-accelerated deserialization
  • Drop-in replacement with the same API

Replace the deprecated facet-postcard crate with the new facet-format-postcard
crate which supports JIT-accelerated deserialization via Cranelift.

This is a drop-in replacement with the same API.
Copilot AI review requested due to automatic review settings December 28, 2025 14:39
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR replaces facet-postcard with facet-format-postcard (with JIT feature enabled via Cranelift) for improved deserialization performance. The migration is a drop-in replacement with an identical API.

  • Mechanical replacement of facet_postcard with facet_format_postcard throughout the codebase
  • Enabled JIT feature for Cranelift-accelerated deserialization
  • Updated facet dependencies from 0.34.0 to 0.35.0

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
crates/picante/tests/persist.rs Updated test code to use new library for cache serialization
crates/picante/src/wal.rs Updated WAL header and entry serialization/deserialization
crates/picante/src/persist.rs Updated cache file encode/decode functions
crates/picante/src/key.rs Updated key encoding/decoding methods
crates/picante/src/ingredient/interned.rs Updated interned record serialization with improved code formatting
crates/picante/src/ingredient/input.rs Updated input record serialization with improved code formatting
crates/picante/src/ingredient/derived.rs Updated derived record serialization/deserialization
crates/picante/Cargo.toml Replaced dependency with facet-format-postcard
Cargo.toml Replaced dependency with facet-format-postcard, enabled jit feature
Cargo.lock Updated lock file with new dependencies (Cranelift, facet 0.35.0)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fasterthanlime fasterthanlime merged commit a812933 into main Dec 28, 2025
10 checks passed
@fasterthanlime fasterthanlime deleted the switch-to-facet-format-postcard branch December 28, 2025 14:44
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