Skip to content

Support for bitcode's serde integration #4539

@LeoniePhiline

Description

@LeoniePhiline

Is your feature request related to a problem? Please describe.

This is a follow-up to #4376. I was glad to see bitcode supported by server_fn.

However, employing it failed in lack of IndexMap support in bitcode: SoftbearStudios/bitcode#69 (comment)

In the linked issue comment, the maintainers recommend falling back to bitcode's serde integration, which is not supported by leptos/server_fn::codec.

Describe the solution you'd like

It would be wonderful if server_fn::codec could support a new codec BitcodeSerde, which enables feature "bitcode?/serde" and uses serde::{Serialize, Deserialize} rather than bitcode::{Encode, Decode}.

Describe alternatives you've considered

I am currently falling back to postcard, but it has unfortunate compression characteristics. Some responses are bigger when compressed than when uncompressed. postcard is also slower than bitcode.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions