Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with understanding logic. #16

Closed
mariuszmalek opened this issue Feb 4, 2022 · 3 comments
Closed

Problem with understanding logic. #16

mariuszmalek opened this issue Feb 4, 2022 · 3 comments

Comments

@mariuszmalek
Copy link

Can you explain why the Rust is in the same file as Flutter? I am trying to understand all the logic to be able to install this locally. I have problems running the application in XCode. I only get splash screen for a few seconds and kick me out.

@sunhuachuang
Copy link
Member

Sure.
Rust and Dart were in different repos before, but I think they are related and changed together, so they are in the same directory.

I think crash when after few seconds, maybe due to the rust code panic. (when started, Rust code will auto starting tokio runtime for network and others). Does the app have network permission ?

I don't have a macOS around now (on vacation :) ), can you tell me the iOS version?

@sunhuachuang
Copy link
Member

I have a solution. For those who have M1.

Cool 👍

So is it possible to separate Flutter and Rust?

Yes, easier to implement. Rust code only in /src, /Cargo.toml, others all Flutter.

Some reference maybe can find at cargo-lipo. It feels like the problem comes from the architecture ?

@sunhuachuang
Copy link
Member

I think it is ready to close, if any questions, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants