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/github.com-1ecc6299db9ec823/ethbloom-0.10.0/src/lib.rs:69:1
|
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 https://github.com/rust-lang/rust/issues/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 https://sh.rustup.rs | sh

(This solution was taken from https://github.com/ogham/dog/issues/26 .)


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

Leave a comment

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