-
-
Notifications
You must be signed in to change notification settings - Fork 842
Description
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.