mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-06-17 20:50:35 +00:00
This seems to fix the issue described here: https://github.com/rust-lang/vscode-rust/issues/729
12 lines
459 B
JSON
12 lines
459 B
JSON
{
|
|
// override the default setting (`cargo check --all-targets`) which produces the following error
|
|
// "can't find crate for `test`" when the default compilation target is a no_std target
|
|
// with these changes RA will call `cargo check --bins` on save
|
|
"rust-analyzer.checkOnSave.allTargets": false,
|
|
"rust-analyzer.checkOnSave.extraArgs": [
|
|
"--bins"
|
|
],
|
|
"rust.target": "thumbv7em-none-eabihf",
|
|
"rust.all_targets": false
|
|
}
|