How to correctly call Dart functions from Rust? #1489
Answered
by
fzyzcjy
xiaohucode
asked this question in
Q&A
-
Help me, thank you very much! When generating the http_get function, an error will be reported in the frb_generated.rs file. Running cargo check will get the error cargo check:
http_simple.rs
|
Beta Was this translation helpful? Give feedback.
Answered by
fzyzcjy
Dec 25, 2023
Replies: 1 comment 2 replies
-
Hmm, looks like your code is not UnwindSafe. Maybe:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
xiaohucode
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm, looks like your code is not UnwindSafe. Maybe:
AssertUnwindSafe
everywhere to tell compiler, even if it may be not unwindsafe, you do not care and is happy (I personally do not care in my app, but leave this to the users since I do not know whether the users care)