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

Unstable library feature 'build_hasher_simple_hash_one' #2

Closed
Tartopoms opened this issue Feb 20, 2024 · 1 comment
Closed

Unstable library feature 'build_hasher_simple_hash_one' #2

Tartopoms opened this issue Feb 20, 2024 · 1 comment

Comments

@Tartopoms
Copy link

Tartopoms commented Feb 20, 2024

Hello there,

I'm using rustc 1.70.0 and rustup 1.26.0.

I'm working on a project using Dioxus Rust framework.
sledgehammer_utils is a dependency of dioxus-interpreter-js v0.4.3.
The sledgehammer has been updated from 0.2.0 to 0.2.1.

When I run my Dioxus project with dx serve --hot-reload, I get the following error:

[INFO] 🚅 Running build command...
Error: 🚫 Serving project failed: error[E0658]: use of unstable library feature 'build_hasher_simple_hash_one'
   --> /root/.cargo/registry/src/custom-registry/sledgehammer_utils-0.2.1/src/lib.rs:124:32
    |
124 |         let hash = self.hasher.hash_one(&val);
    |                                ^^^^^^^^
    |
    = note: see issue #86161 <https://github.com/rust-lang/rust/issues/86161> for more information


error: Broken pipe (os error 32)
error: could not compile `sledgehammer_utils` (lib) due to 2 previous errors

This error raised by the #![feature(build_hasher_simple_hash_one)] flag (see this issue) prevents me from compiling my project.

@ealmloff
Copy link
Owner

hash_one was stabilized in rust 1.71 updating your rust version should fix the error

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