specta-rs / specta

Easily export your Rust types to other languages
MIT License
290 stars 41 forks source link

Functions exporting without serde #4

Closed oscartbeaumont closed 1 year ago

oscartbeaumont commented 1 year ago

Right now to export a function all arguments must implement serde::Serialize and all results must implement serde::Deserialize. Can we make it so this bound isn't required but without breaking tauri-specta.

For most cases this will be fine because serde can be used in the transport layer but if you wanna do FFI or use a non-serde compatible encoding you will currently have a bad time.

Brendonovich commented 1 year ago

L + ratio + 67c7961ca26b1e1709c3d17c98925154fc1854a6