Suggestions on scanning third-party crates. #2356
xuxiaocheng0201
started this conversation in
Ideas
Replies: 1 comment
-
IIRC yes, unless you explicitly config to scan a 3rd party crate, then only 1st party crate is scanned. https://cjycode.com/flutter_rust_bridge/guides/third-party |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have always felt that third-party crates are uncontrollable. A best practice should be to only scan the code in the
rust_root
(default isrust
) directory.Another suggestion is using
o2o
crate, this is a 'Object to Object mapper'. By using this, we can simply map a third-party struct to the suitable struct written by hand. This avoids scanning third-party crates and enhances reliability.Beta Was this translation helpful? Give feedback.
All reactions