针对你提出的问题“failed to resolve: use of undeclared crate or module tokio”,我将按照提供的提示分点进行回答: 确认tokio crate或模块是否已正确声明: 在Rust中,如果你试图使用tokio库,你需要在代码文件中通过use语句声明它。例如: rust use tokio::runtime::Runtime; 确保你的代码中包含类似的声明,并且...
Also interesting to note that "fail_ure"isn't a feature. It appears that raze is taking the packages required for these features and added them to thecrate_featuressection of the rust_library build rule. EDIT: That last paragraph is incorrect. Nothing is wrong with the features. It is jus...
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...
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...