针对你提出的问题“failed to resolve: use of undeclared crate or module tokio”,我将按照提供的提示分点进行回答: 确认tokio crate或模块是否已正确声明: 在Rust中,如果你试图使用tokio库,你需要在代码文件中通过use语句声明它。例如: rust use tokio::runtime::Runtime; 确保你的代码中包含类似的声明,并且...
272:24 | 272 | let name = slice::from_raw_parts(info.name.as_ptr() as *const u8, info.name.len()); | ^^^ use of undeclared crate or module `slice` | help: consider importing one of these items | 1 + use alloc::slice; | 1 + use core::slice; | 1 + use crate::slice...
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...