Skip to content

Rkyv alignment is broken #11

@thestarmaker

Description

@thestarmaker

Hi there it looks like rkyv alignment is broken, for details please see:

leptos-rs/leptos#4098

I was able to prove the leptos issue is due to alignment by adding unaligned feature to rkyv on the reproduction project. Once the feature was added the panic disappeared.

The core problem is to do with rkyv assuming the in-out byte streams are aligned:
https://github.com/Synphonyte/codee/blob/main/src/binary/rkyv.rs#L35

and therefore an AlignedVec should be used instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions