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

Issue with ahash library v0.7.7 (unknown feature stdsimd) #250

Open
vikingSec opened this issue Feb 6, 2024 · 9 comments
Open

Issue with ahash library v0.7.7 (unknown feature stdsimd) #250

vikingSec opened this issue Feb 6, 2024 · 9 comments

Comments

@vikingSec
Copy link

Hello!

I'm trying to learn Leptos (as in, I've never built a thing with it, so bear with me) and while trying to install cargo-leptos (and trunk) I ran into this error involving the installation of ahash v0.7.7:

error[E0635]: unknown feature `stdsimd`
  --> /Users/medwards/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.7.7/src/lib.rs:33:42
   |
33 | #![cfg_attr(feature = "stdsimd", feature(stdsimd))]
   |                                          ^^^^^^^

   Compiling socket2 v0.5.5
For more information about this error, try `rustc --explain E0635`.
error: could not compile `ahash` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-leptos v0.2.7`, intermediate artifacts can be found at `/var/folders/9f/w50rg2wj193fh6jv5rt0lk1r0000gn/T/cargo-installXUxpU2`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

There's already an open issue on the aHash repo, but honestly I don't understand the problem well enough to know if this is an aHash problem or a cargo-leptos problem. My assumption was that it's something that cargo-leptos can fix since it looks like it depends on v0.7.7 of aHash and the most recent version of aHash is v0.8.7

@Bayernatoor
Copy link

Bayernatoor commented Feb 10, 2024

Ran into the same issue. I am running rust nightly atm. Switching to stable allowed me to install cargo-leptos but switching back to nightly and running cargo leptos watch starts compiling but eventually results in the same error with ahash.

@Phosphorus-M
Copy link

This command works for me

cargo update ahash@0.8

@Bayernatoor
Copy link

Bayernatoor commented Feb 14, 2024

This command works for me

cargo update ahash@0.8

Problem seems to be with the ahash version being used by cargo-leptos and not the local version of cargo. I still get the error and it's coming from cargo-leptos, ahash likely needs a bump.

@benwis
Copy link
Collaborator

benwis commented Feb 14, 2024 via email

@Bayernatoor
Copy link

Yep sounds good, just forked the repo and will see if I can get it working.

@gitmalong
Copy link

gitmalong commented Feb 16, 2024

Workaround cargo install cargo-leptos --version 0.2.6

@Chief-Detektor
Copy link

Once the repo has been checked out one can run cargo update and ahash is updated to 0.7.8 which builds under nightly.

@benwis
Copy link
Collaborator

benwis commented Feb 26, 2024

Once the repo has been checked out one can run cargo update and ahash is updated to 0.7.8 which builds under nightly.

So the repo is up to date for this? If so I can release a new patch version

@Chief-Detektor
Copy link

So the repo is up to date for this? If so I can release a new patch version

I would assume this is the case. All I did to make it compile with the latest nightly was to checkout the default branch and after it failed building I ran cargo update and then it built.
You can test it locally to verify.

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

6 participants