Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Some questions #2

Closed
gdennie opened this issue Feb 1, 2022 · 3 comments
Closed

Some questions #2

gdennie opened this issue Feb 1, 2022 · 3 comments

Comments

@gdennie
Copy link

gdennie commented Feb 1, 2022

Nice. However, I am not quite sure how to compile and also run your demo. Clearly I need to read more about Tauri but it would help if your docs include that information (the Tauri docs seem to also hide this info someplace).

Also, cargo install tauri-cli --version ^1.0.0-beta is failing with the docker rust:1.58.1 image as a remote development environment resulting in the following messages (What version is compatible?):

   Compiling handlebars v4.2.1
   Compiling json-patch v0.2.6
   Compiling tauri-bundler v1.0.0-beta.4
   Compiling tauri-cli v1.0.0-beta.7
error[E0432]: unresolved import `clap::crate_version`
 --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/tauri-cli-1.0.0-beta.7/src/main.rs:6:12
  |
6 | use clap::{crate_version, load_yaml, App, AppSettings, ArgMatches};
  |            ^^^^^^^^^^^^^ no `crate_version` in the root

error: cannot determine resolution for the macro `crate_version`
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/tauri-cli-1.0.0-beta.7/src/main.rs:265:14
    |
265 |     .version(crate_version!())
    |              ^^^^^^^^^^^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error[E0308]: mismatched types
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/tauri-cli-1.0.0-beta.7/src/main.rs:264:23
    |
264 |   let app = App::from(yaml)
    |                       ^^^^ expected struct `App`, found `&yaml_rust::yaml::Yaml`
@rnice01
Copy link

rnice01 commented Feb 10, 2022

I believe this is the same error you're dealing with. Linking the comment explaining what is causing it and the resolution is in the thread.
tauri-apps/tauri#3050 (comment)

@stevepryde
Copy link
Owner

Always check the official docs for how to install the Tauri CLI: https://tauri.studio/docs/getting-started/beginning-tutorial#alternatively-install-tauri-cli-as-a-cargo-subcommand

I've updated the dev.to article as well

@stevepryde
Copy link
Owner

Currently it looks like this:

cargo install tauri-cli --locked --version ^1.0.0-rc

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

No branches or pull requests

3 participants