I've been hacking on an experimental proof-of-concept port of serde using colorless, exploring what it looks like when serialization and deserialization can operate across sync (Identity) and Async execution modes—including when the type being serialized itself awaits async data (like an MPSC channel) or when a sink implements both sync and async writes.
What's working right now
- Async / sync serialization: You can serialize types where the sink is async and the Serialize impl itself .awaits data while streaming out.
• • Mixed sync & async writes into streaming deserialization: A type implementing ColoredWrite for multiple colors can be written to both synchronously and asynchronously, then read back via a streaming deserializer iterator.
I'd really appreciate any feedback, design critiques, issues, or PRs—even small pointers on reader/chunk traits or keeping generated state machines lean.
Repo / links: colorless, colorless-json
1 post - 1 participant