-
Notifications
You must be signed in to change notification settings - Fork 87
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
impl Schema
for NamedType
et. al
#172
Comments
Is there a plan to make schemas implement |
Check out https://github.com/jamesmunns/postcard/tree/james/owned-schema And https://github.com/jamesmunns/postcard-dyn/ I'm actively working on it now |
Exciting, thanks for the pointers! |
And if you want a preview of what I'm working on it for: https://onevariable.com/poststation/ |
Implemented in #170 |
I attempted to implement
Schema
for the various types associated with schemas, likeSdmTy
and such.However, this ends up causing an unbounded cycle: NamedType contains an SdmTy that can contain a NamedTy, etc. This can be seen in: https://github.com/jamesmunns/postcard/tree/james/schema-schema
I don't know if there is a way around this, at least with the currently recursive definition of how we do schemas.
For now, I think I'm just going to have a
NewType([u8])
if I want to send schemas, and do the deserialization as a second step if I want to send schemas over postcard-rpc.The text was updated successfully, but these errors were encountered: