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

main function missing #84

Closed
aekasitt opened this issue Feb 1, 2023 · 1 comment · Fixed by #83
Closed

main function missing #84

aekasitt opened this issue Feb 1, 2023 · 1 comment · Fixed by #83
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@aekasitt
Copy link

aekasitt commented Feb 1, 2023

Just dropping my stack trace here when I run the following command.

$ cargo mobile update
> ...
> ...
> ...
> error[E0601]: `main` function not found in crate `cargo_mobile`
>    --> src/bin/cargo-mobile.rs:223:2
>     |
> 223 | }
>     |  ^ consider adding a `main` function to `src/bin/cargo-mobile.rs`
> For more information about this error, try `rustc --explain E0601`.
> error: could not compile `tauri-mobile` due to previous error
> error: failed to compile `tauri-mobile v0.2.0 (/Users/<username>/.tauri-mobile/checkouts/tauri-mobile)`, intermediate artifacts can be found at `/Users/<username>/.tauri-mobile/checkouts/tauri-mobile/target`
> error: Failed to update `tauri-mobile`
>     Failed to install new version of `tauri-mobile`: Command "cargo install --force --path /Users/<username>/.tauri-mobile/checkouts/tauri-mobile --no-default-features --features " didn't complete
>     successfully, exiting with code 101.

I'm using an ARM-based MacBook Pro M1. And Rust 1.65.0

$ rustc --version                                                                                                                                                                       
> rustc 1.65.0 (897e37553 2022-11-02)
@wusyong wusyong added the bug Something isn't working label Feb 1, 2023
@wusyong
Copy link
Member

wusyong commented Feb 1, 2023

We don't really use tauri-mobile as CLI, so I didn't really look into this. But update command is indeed broken. If anyone is interested, feel free to take it.

@wusyong wusyong added the help wanted Extra attention is needed label Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants