Closed XavDesbordes closed 3 months ago
That page is a bit out of date. Return values can now choose any of these codecs including rkyv by setting the output encoding. Here is an example that uses the streaming text encoding: https://github.com/DioxusLabs/dioxus/blob/0850dcba5e91912ac9de1b02443cebd9b8ec2349/packages/fullstack/examples/axum-streaming/src/main.rs#L26
Nice, that's great! thanks!
Hi, According to https://dioxuslabs.com/learn/0.5/reference/fullstack/server_functions, an answer must be serializable by serde.
For people using binary protocols (Rkyv, others) it implies a Serialization/Deserialization first before, which may be costly.
Alignedvec
would help at the very least to avoid this.Any opinion?