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

ex_tauri.install can't compile due to dependency/rust version fighting with the generated cargo.toml #1

Open
mrluc opened this issue Jan 30, 2024 · 4 comments

Comments

@mrluc
Copy link

mrluc commented Jan 30, 2024

tried the example, as well as a sqlite app of ours, with various versions of rust:

  • nightly
  • stable
  • 1.62.0
  • 1.64.0
  • 1.67.0
  • 1.70.0

So far, all versions fail to compile with errors due to incompatibilities between the libraries and the Rust features they use.

These errors vary, but a representative example:

error[E0658]: use of unstable library feature 'stdsimd'
   --> /Users/mrluc/.asdf/installs/rust/1.70.0/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.7/src/operations.rs:154:24
    |
154 |     let res = unsafe { vaesimcq_u8(vaesdq_u8(transmute!(value), transmute!(0u128))) };
    |                        ^^^^^^^^^^^
    |
    = note: see issue #48556 <https://github.com/rust-lang/rust/issues/48556> for more information

Reading through this library and https://github.com/feng19/phx_new_desktop/tree/master, I note that since this library embeds/generates the Cargo.toml, this isn't something end-users of the library can hop in and fix for themselves without a fork.

@mrluc mrluc changed the title example won ex_tauri.install can't compile due to dependency/rust version fighting with the generated cargo.toml Jan 30, 2024
@filipecabaco
Copy link
Owner

👋 the error happens on mix ex_tauri.install ? Which version did you set in your configuration for tauri?

@mrluc
Copy link
Author

mrluc commented Jan 30, 2024

In the case of the example cloned from this repo, looks like it's a git dep back to this repo

@filipecabaco
Copy link
Owner

that's weird indeed, tauri seems to be using a crate that contains an unstable feature leading to this issue 😓

I will try to fix this in the coming days and maybe take the opportunity to bump to tauri 2.0 since that will be releasing sometime soon

thank you for reporting

@mrluc
Copy link
Author

mrluc commented Jan 30, 2024

sweet -- this library is a great idea; I used burrito for a liveview kiosk project recently, and this would of course open up a nice upgrade to that experience without bundling up all of the deps from elixir desktop 😄

FWIW this is a common situation in the Rust ecosystem from my experience; for instance, in this case, it's different crate/language-feature combinations for, I think, every one of the versions I tested above! Ie deps-of-deps with unpinned versions depend on later language features, which causes me to bump Rust version and try again. 😆 Makes one appreciate the stability of Elixir v1 ❤️

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