-
Notifications
You must be signed in to change notification settings - Fork 218
Add optional embedded_io::Write
impl for Vec
.
#586
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
base: main
Are you sure you want to change the base?
Conversation
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.
Nice!
This'd be a very welcome addition. If embedded-io's stability is a concern, rust-embedded/embedded-hal#566 ("is there anything to add before a 1.0?") would be a discussion that could use some implementators' input. |
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.
I think it we should implement it for VecDeque
too.
@@ -176,6 +176,7 @@ jobs: | |||
cargo check --target="${target}" --features="portable-atomic-critical-section" | |||
cargo check --target="${target}" --features="serde" | |||
cargo check --target="${target}" --features="ufmt" | |||
cargo check --target="${target}" --features="embedded-io" |
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.
Please add the embedded-io feature to the tests and to the miri test runs too
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.
How do you want this done? None of the other features appears to be tested in this manner, so I'm not sure what you expect.
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.
Add the embedded-io feature line 51 and 87 of the .github/workflows/build.yml
file.
This is analogous to how
std::vec::Vec
implementsstd::io::Write
.