Skip to content

Deserialize plugin's serialized bytes with bytechecked #7461

Description

@kwonoj

Describe the feature

Ref: #7460

Currently we deserialize bytes coming from plugin with unsafe, non-bytechecked way even though we (partially) enabled bytecheck against the struct. We should use bytechecked, safe interface instead - however there is a blocker to enable those since fully bytechecked deserialization currently fails compilation of swc with

error[E0275]: overflow evaluating the requirement `swc_ecma_ast::stmt::ArchivedBlockStmt: bytecheck::CheckBytes<rkyv::validation::validators::DefaultValidator<'_>>`

error[E0275]: overflow evaluating the requirement `ArchivedComponentValue: bytecheck::CheckBytes<rkyv::validation::validators::DefaultValidator<'_>>`

Babel plugin or link to the feature description

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions