How to avoid "E0463: can't find crate for `test` can't find crate" when building for thumbv7m-none-eabi?

Viewed 1760

RLS is giving the following error message when working on a project with an ARM target:

E0463: can't find crate for test can't find crate

Reproduction:

cargo new --bin app
cd app
mkdir .cargo
echo '[build]' > .cargo/config
echo 'target = "thumbv7m-none-eabi"' >> .cargo/config
echo '#![no_std]' > src/main.rs
rls --cli

I believe this is because there is no test crate for the ARM target.

Is there a way to avoid this error?

There are several other SO posts on E0463 but appears those are configuration errors. The above is purely an RLS question. It's causing my editor to display errors and not do code complete, etc.

0 Answers
Related