Rust errors / Build and Cargo
Rust build error · checked with Rust 1.99.0
error[E0432]: unresolved import... the item is gated behind the `full` feature
error[E0432]: unresolved import... the item is gated behind the `full` feature
What it meansThe item exists but sits behind a crate feature you did not turn on. Recent rustc tells you which feature in a note.
Why it happens
- tokio, reqwest, serde, chrono and others ship most APIs behind features.
How to fix it
1. Turn on the feature named in the note
cargo add tokio --features net,macros,rt-multi-thread2. See every feature of a crate
Our feature pages list them with what each one turns on: /rust/features/
Other wordings of this error
the item is gated behind the, is gated behind the feature, unresolved import tokio::net, could not find in tokio
Other build errors
- error: linker `link.exe` not found
- error: linker `cc` not found
- error: failed to run custom build command for `openssl-sys`
- error: failed to select a version for the requirement
- error: failed to select a version for `libsqlite3-sys`... the package `libsqlite3-sys` lin
- error: could not compile `my-crate` (bin "my-crate") due to 1 previous error
- error: package `foo v1.2.3` cannot be built because it requires rustc 1.80 or newer, while
- feature `edition2024` is required
Up next
Find the right pagePaste any Rust errorCompiler codes and build errors in one finder.Read it next →Also worth your time
Did this answer your question?