针对你提出的问题“failed to resolve: use of undeclared crate or module tokio”,我将按照提供的提示分点进行回答: 确认tokio crate或模块是否已正确声明: 在Rust中,如果你试图使用tokio库,你需要在代码文件中通过use语句声明它。例如: rust use tokio::runtime::Runtime; 确保你的代码中包含类似的声明,并且...
I'm getting this error: error[E0433]: failed to resolve: use of undeclared crate or module `tracing` --> C:\Users\fred\.cargo\registry\src\index.crates.io-6f17d22bba15001f\axum-extra-0.9.4\src\typed_header.rs:161:9 | 161 | axum_core::__l...
and I have ended up with the following error: error[E0433]: failed to resolve: use of undeclared type or module `fail_ure` --> third_party/cargo/vendor/actix-http-1.0.1/src/error.rs:968:24 | 968 | impl ResponseError for fail_ure::Error {} | ^^^ use of undeclared type or modu...
I expected to see this happen: The standard library should be able to build, and so should my crate Instead, this happened: building the standard library failed with this error: error[E0433]: failed to resolve: use of undeclared crate or module `slice` --> /localhome/somers/.rustup/too...