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

Install tauri-cli failed #26

Closed
CaoKha opened this issue Mar 5, 2024 · 1 comment
Closed

Install tauri-cli failed #26

CaoKha opened this issue Mar 5, 2024 · 1 comment

Comments

@CaoKha
Copy link

CaoKha commented Mar 5, 2024

Typing the command in the project root

cargo install tauri-cli

won't install tauri-cli with rust nightly

Error:

error[E0599]: no method named `to_str` found for struct `log::kv::Value` in the current scope
   --> /home/username/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-cli-1.5.10/src/lib.rs:132:29
    |
132 |         let action = action.to_str().unwrap();
    |                             ^^^^^^
    |
help: there is a method `to_string` with a similar name
    |
132 |         let action = action.to_string().unwrap();
    |                             ~~~~~~~~~

For more information about this error, try `rustc --explain E0599`.
error: could not compile `tauri-cli` (lib) due to 1 previous error
error: failed to compile `tauri-cli v1.5.10`, intermediate artifacts can be found at `/tmp/cargo-installqOt30w`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Temporary solution:

  • Change nightly-2024-03-04 to stable in rust-toolchain file
  • Install tauri-cli
cargo install tauri-cli --locked

There is an issue with the tauri-cli recently due to tauri-apps/tauri#9034. --locked is used as a temporary solution.

  • Change stable back to nightly-2024-03-04 in rust-toolchain file
@opensourcecheemsburgers
Copy link
Owner

This is an upstream issue with Tauri and should be fixed soon :)

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