Skip to content

feat(rust): add streaming deserialization support#3369

Open
Zakir032002 wants to merge 2 commits intoapache:mainfrom
Zakir032002:feat/rust-streaming-deserialization
Open

feat(rust): add streaming deserialization support#3369
Zakir032002 wants to merge 2 commits intoapache:mainfrom
Zakir032002:feat/rust-streaming-deserialization

Conversation

@Zakir032002
Copy link

Summary

Introduces streaming deserialization support for the Rust implementation of Fory, mirroring the C++ ForyInputStreamBuf model.

Changes

  • stream.rs — New ForyStreamBuf struct and Reader::from_stream for incremental stream-backed deserialization from any Read source
  • buffer.rs — Extended to support stream-backed buffer operations
  • fory.rs — Wired up stream reader support
  • lib.rs — Exported new stream module
  • stream_test.rs — Integration tests for stream deserialization

Design

Closes #3300

Introduces ForyStreamBuf and Reader::from_stream for incremental
stream-backed deserialization from any Read source. Preserves
existing in-memory fast path with zero overhead.

Closes apache#3300
@Zakir032002 Zakir032002 marked this pull request as ready for review February 19, 2026 10:18
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.

[Rust] Streaming Deserialization Support For Rust

1 participant

Comments