-
Notifications
You must be signed in to change notification settings - Fork 155
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
feat: Add (feature gated) derives for serde
and rkyv
#741
Conversation
I'm reluctant to add this. These are not really types that users should be storing long term. They should only be used when calling APIs on What does this enable you to do? What alternatives have you considered? Do you need to be able to serialize all of these types? Why do you need both |
Thanks for taking the time to respond! :)
We want to use We currently use our own definitions for most of the types involved, but I want to replace some of them - in particular On the other hand,
I tried to implement the traits I need for the two types I mentioned above using the remote "tactics" from |
If you're not reading and writing proper object files, then it seems to me that the relocation types you use should have nothing to do with this crate anyway?
This PR does not include Additionally, if it's only those two types then I don't think its a big burden to define the types yourself and add a conversion between them if you actually need it. The fact that you only need two types makes me more reluctant to add these because it's still the same order of complexity for this crate in terms of features and testing while being a smaller benefit. |
Alright, thanks again for taking the time to respond. I'll close the PR. |
This small patch adds feature-gated derives of the
serde::{Serialize, Deserialize}
andrkyv::{Serialize, Deserialize, Archive}
traits for the types defined incommon.rs
.