rust-embedded-community / serde-json-core

`serde-json` for `no_std` programs
Apache License 2.0
161 stars 59 forks source link

Add support for writing to embedded_io::Write #80

Open elrafoon opened 10 months ago

elrafoon commented 10 months ago

Hello,

I think this feature is quite useful for many users.

It's feature-gated, so shall be harmless for others.

elrafoon commented 9 months ago

Dear maintainers, is there any problem with this one?

jordens commented 9 months ago
ryan-summers commented 9 months ago

I'm not sure I fully understand the use case. Can you provide a small example of what you're looking to do in code that this enables?

elrafoon commented 9 months ago

In meantime I got better idea. We could add our own Read and Write traits, and then implement those traits for embedded_io::{Read, Write}. Serializer would be generic over Read and Deserializer over Write.

It would look like here