Skip to content

Safety Concern #158

Answered by temeddix
hanbu97 asked this question in Q&A
Discussion options

You must be logged in to vote

It is completely safe to pass secret parameters between Dart and Rust.

That's because this framework uses C ABI to pass messages. In other words, the Flutter executable is directly linked with the library files compiled from Rust.

I know that some other Rust GUI frameworks use HTTP or websockets to communicate between GUI and Rust, which is quite insecure. However, that's not the case for Rust-In-Flutter because messages are passed within the Flutter app's process. This is not only secure but also performant because message passing is a zero-copy operation on the memory.

Hope this helps :) Please tell me if anything is not clear yet.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by temeddix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #157 on September 18, 2023 06:40.