-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add stream support #42
base: master
Are you sure you want to change the base?
Conversation
b98ffb7
to
e45f2dd
Compare
ddce203
to
46f3258
Compare
Cleanup of feature names.
46f3258
to
6367c20
Compare
let (_, header) = dlt_standard_header(&header_buf[storage_len..])?; | ||
|
||
let message_len = storage_len + header.overall_length() as usize; | ||
let mut message_buf = vec![0u8; message_len]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better if we reuse the memory instead of allocating new memory on each call
tokio = { version = "1", features = ["full"], optional = true } | ||
tokio-stream = { version = "0.1", optional = true } | ||
tokio-util = { version = "0.7", optional = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed. only tokio is currently neede for your tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks quite good!
let's investigate if we can add support for
https://rust-lang.github.io/async-book/05_streams/01_chapter.html
by implementing it ourselves.
This PR implements #34 as a new feature 'stream', cleans up the already existing feature names to be more consistent in naming and increases the crate version to '0.20.0'.