Repository navigation
refactor(fspy_shared): type IPC channel and own wincode deserialization - #1053
Merged
wan9chi merged 1 commit intoDec 2, 2026
Merged
Conversation
Introduce ChannelProtocol to bind Sender, Receiver, ChannelConf, and
RecordReader to a single record schema at compile time, keeping both
wincode serialization and deserialization inside fspy_shared::ipc::channel.
Remove the leaked shm_io::ShmReader FrameReader alias and split
RecordsLost into CloseError::{Capacity, Reported} with accurate error
messages and domain-neutral docs.
Co-authored-by: Gemini 4 Neon <noreply@google.com>
fspy benchmarklinuxmacoswindows |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
fspy_shared::ipc::channelpreviously owned wincode serialization on the sender side (Sender::send<T>) while leakingshm_io::ShmReader(FrameReader) and raw byte deserialization up intofspy. That split codec ownership across crates and allowed mismatched record types at compile time.Changes
ChannelProtocolto bindChannelConf,Sender,Receiver, andRecordReaderto a single record schema at compile time while keeping both wincode serialization and deserialization insidefspy_shared::ipc::channel.FrameReadertype alias and splitRecordsLostintoCloseError::{Capacity, Reported}with domain-neutral documentation.AccessProtocoland typed aliases (AccessChannelConf,AccessSender,AccessReceiver,AccessReader,AccessCloseError) infspy_shared::ipc, updating callers acrossfspy,fspy_shared_unix,fspy_client_unix, andfspy_preload_windows.Stack created with GitHub Stacks CLI • Give Feedback 💬