问题总结
环境搭建
1. can't find crate for test
can't find crate
报错平台:vscode
复原方案:
解决方案:
方案来源【已解决】rust 报错 no_std can't find crate for
test
|| vscode 工作区多文件夹
修改vscode的设置文件
{
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": [
"--target",
"riscv64gc-unknown-none-elf"
]
}