Skip to content
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: Support rkyv encoding #577

Merged
merged 4 commits into from
Feb 26, 2023
Merged

feat: Support rkyv encoding #577

merged 4 commits into from
Feb 26, 2023

Conversation

617a7aa
Copy link
Contributor

@617a7aa 617a7aa commented Feb 25, 2023

I have managed to get past the lifetime issues I was experiencing (due to rkyv's zero-copy deserialisation). Therefore, this pull request adds a feature flag, rkyv, to support rkyv encoding for SSR'd pages.

If the flag is enabled, rkyv will replace JSON as the serialisation format used in Leptos. We encode the bytes using base64, so the trait is identical for JSON/rkyv.

Closes #528

@gbj
Copy link
Collaborator

gbj commented Feb 26, 2023

Okay, this looks good. Thanks for your work!

@gbj gbj merged commit b153ab5 into leptos-rs:main Feb 26, 2023
vaniusrb pushed a commit to vaniusrb/leptos that referenced this pull request Mar 1, 2023
gbj pushed a commit that referenced this pull request Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support rkyv encoding
2 participants