How Do You Troubleshoot the Cargo Problem “error[E0658]: use of unstable library feature ‘str_strip’: newly added”?

Problem scenario
You run a cargo command. You get this error:

error[E0658]: use of unstable library feature 'str_strip': newly added
--> /home/jdoe/.cargo/registry/src/
69 | / construct_fixed_hash! {
70 | | /// Bloom hash type with 256 bytes (2048 bits) size.
71 | | pub struct Bloom(BLOOM_SIZE);
72 | | }
| |_^
= note: see issue #67302 for more information
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

For more information about this error, try rustc --explain E0658.
error: could not compile ethbloom.

What should you do?

Possible solution
Run this command: rustc --version

Is it 1.45.0 or higher?

Remove rustc. If you are using a Debian/Ubuntu distribution of Linux, run this: sudo apt -y remove rustc

Reinstall rustc with this: sudo curl --proto '=https' --tlsv1.2 -sSf | sh

(This solution was taken from .)

If you want to receive free cryptocurrency by just learning more, try Coinbase. For Europeans, the platform/company can allow you to buy crypto or learn more.

Leave a comment

Your email address will not be published. Required fields are marked *