cunarist / rinf

Rust for native business logic, Flutter for flexible and beautiful GUI
MIT License
1.88k stars 65 forks source link

Suggest additional serialize option #293

Closed rabbitson87 closed 7 months ago

rabbitson87 commented 7 months ago

When I use message, I use serialize a lot.

How about using the rinf message option (such as -useSerialize) to enable serde::Serialize, Deserialize?

temeddix commented 7 months ago

Hi @rabbitson87 , thanks for your opinion.

May I ask you why Protobuf serialization is not sufficient for you? Is it slow, or is there any other reason?

For now, if you want to use other serialization method for some messages, you can pass binary data between Dart and Rust to do that. If I've missed something, please let me know.

rabbitson87 commented 7 months ago

I used serde to deal with rust, but I think it can be solved by using protobuf.

I'll look for more thanks!