rust(feature): add bytes channel support, release prep 0.13.0 / bindings 0.5.1 - #782
Merged
Conversation
Contributor
|
Python docs preview: https://sift-stack.github.io/sift/python/pr-782/ Deployed from |
Add Value::Bytes to sift_stream and expose it through sift_stream_bindings (ValuePy.Bytes, is_bytes, as_bytes, IngestWithConfigDataChannelValuePy.bytes). Python support lands separately once the bindings are released. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
solidiquis
force-pushed
the
python/bytes-channel-support
branch
from
September 4, 2026 18:40
5f4fb41 to
8bd2634
Compare
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
tsift
approved these changes
Sep 4, 2026
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.
Summary
Adds bytes channel support to
sift_streamandsift_stream_bindings, and bumps the workspace to0.13.0andsift-stream-bindingsto0.5.1so it can be released. This is the Rust half of a fix for bytes channel ingestion from the Python library, reported by a customer on sift-stack-py v0.20.0 (ValueError: Unknown data type: bytesduring flow registration).Why
#761 fixed flow registration for bytes channels in Python but is unreleased. The next failure a user would hit is sending a value on a bytes channel:
ValueError: Invalid data type: bytes. That one cannot be fixed in Python alone, becausesift_stream::Valueand theValuePybinding had no bytes variant even though the proto andChannelValueTypePydo.Adding a variant to the public
Valueenum breaks downstream exhaustive matches, so the workspace gets a minor bump. The bindings need a PyPI release so the Python library can depend onValuePy.Bytes.Changes
sift_stream: addValue::Bytes(Vec<u8>), mapped toCHANNEL_DATA_TYPE_BYTES. Add aChannelBytesnewtype, since a plainVec<u8>still converts toBitField. Unit test added.sift_stream_bindings: addValuePy.Bytes,is_bytes,as_bytes, andIngestWithConfigDataChannelValuePy.bytes. Regenerate the.pyistub.Cargo.toml: workspace version0.12.0→0.13.0and the 7 internal dependency pins (sift_error,sift_rs,sift_connect,sift_stream,sift_pbfs,sift_mcp,sift_test_util).sift_stream_bindingspin0.5.0→0.5.1.sift_cli(0.5.0) is unchanged.rust/crates/sift_stream_bindings/Cargo.toml:0.5.0→0.5.1.rust/CHANGELOG.md: newv0.13.0section.After merge
Tag
rust/v0.13.0andsift-stream-bindings/v0.5.1. Once 0.5.1 is on PyPI, a Python PR will handleChannelDataType.BYTESinChannelValue._to_rust_formand bump thesift-stream-bindingspin. It is blocked until then because python-ci installs the bindings from PyPI.