-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[bug] tauri mobile build leaves a .cargo
folder
#6578
Comments
It is explained here https://github.com/tauri-apps/tauri/blob/next/tooling/cli/src/mobile/init.rs#L61-L70 but I agree that it is not very cross-platform at all. |
A PR is up, but |
@amrbashir The cargo config is also created for ios projects. Would you consider removing it too? |
The PR removes it from both |
I misunderstood the removal from the commit message🤣Thank you! By the way, what is |
yeah that's my fault
|
However I've found this: rust-lang/rust#85806 It seems that rust is not going to find |
At the time for using that workaround, rust-lang/rust#85806 wasn't enough but now I have tested and it works without it so I will remove the workaround as well. |
Describe the bug
After I run
tauri android dev
ortauri android build
, ortauri ios dev
ortauri ios build
, it leaves a.cargo
folder with a config in thesrc-tauri
folder. The config confuses cargo. For example, on Windows, the config set the default target tox86_64-pc-windows-msvc
, and then simply runningcargo build
will compile binaries totarget/x86_64-pc-windows-msvc/debug
but nottarget/debug
. This config is also not cross-platform because different OS uses different host target.Reproduction
Expected behavior
I don't understand why it generates such config. It shouldn't do that. We don't need to set host target manually at all.
Platform and versions
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: