-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[Rust] Idea: implement serde serialization (contributions welcome) #5132
Comments
Can Serde support zero-copy style serialization? |
@aardappel I don't know yet. |
Probably a good fit for the object API, if/when it gets developed. |
FYI for anyone who comes across this issues, I'm working on the object API without use of Serde. There is a mild conflict on the "source of truth" of the data type. Serde assumes its the rust type, while Flatbuffers uses the schema. I think the best fit for Serde would be Flexbuffers. |
I noticed under the serde supported data formats, that there's a format with support for schemas: https://github.com/flavray/avro-rs The code example on that repo's home page shows how they can parse a schema from a raw Rust string. I haven't explored the implementation, but it at least looks like this could be some interesting prior art, if someone gets around to exploring this. |
This issue is stale because it has been open 6 months with no activity. Please comment or this will be closed in 14 days. |
Serde support was added with Flexbuffers. I recommend closing this issue |
@CasperN I made a PR to add your work to the serde ecosystem docs :-] serde-rs/serde#1840 |
@CasperN Want to add some docs as @dtolnay requested in serde-rs/serde#1840 (review) ? |
https://serde.rs
https://serde.rs/custom-serialization.html
Questions for further research:
Is it possible?
Is it a good idea?
What's the best way to do it?
Contributions welcome on this!
The text was updated successfully, but these errors were encountered: