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

feat(ser): Introduce ser Crate #22

Merged
merged 2 commits into from
Aug 24, 2024
Merged

feat(ser): Introduce ser Crate #22

merged 2 commits into from
Aug 24, 2024

Conversation

refcell
Copy link
Collaborator

@refcell refcell commented Aug 24, 2024

Description

Sets up the ser crate in crates/ser.

Ports channel_out.

Closes #21

Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

lgtm, I wonder if the encoding / frames could be encapsulated with tokio codec types or Framed

Comment on lines +25 to +32
/// Reads data from the compressor.
/// This should only be called after the compressor has been closed.
/// Returns the number of bytes read.
fn read(&mut self, data: &mut [u8]) -> Result<usize>;

/// Closes the compressor.
/// This should be called before reading any data.
fn close(&mut self) -> Result<()>;
Copy link
Member

@Rjected Rjected Aug 24, 2024

Choose a reason for hiding this comment

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

should include intra doc links, like [x] should be called before this method, can be done in a followup

@Rjected Rjected merged commit 5bad826 into ithacaxyz:main Aug 24, 2024
11 checks passed
@shekhirin shekhirin added the C-enhancement New feature or request label Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(ser): Setup Crate in Workspace
3 participants