You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Further to the "Respect .cargo/config.toml" PR, the config.toml file of a crate within a workspace does not appear to be honoured. For example, if I have a project named client and it has two crates, app and embedded-app, and embedded-app has a .cargo/config.toml, then the latter does not appear to be considered when determining build targets.
rustup target add thumbv7em-none-eabihf if you don't have that target
Open the project's workspace file (embassy-start.code-workspace) in VSC
Navigate to client/embedded-app/src/boards/nrf52840_dk.rs
Wait for RA to complete its indexing
Note that interrupt::take! on L18 is able to be resolved
Remove the "rust-analyzer.cargo.target": "thumbv7em-none-eabihf" from the workspace file
Reload RA
Wait for RA to complete its indexing
Note that interrupt::take! can no longer be resolved
My expectation is that the build target of client/.embedded-app/.cargo/config.toml should be honoured, and that I should not have to declare a rust-analyzer.cargo.target.
rust-analyzer version:
rust-analyzer version: 54782428a 2022-01-12 devrustc version:
rustc 1.59.0-nightly (c5ecc1570 2021-12-15)Further to the "Respect .cargo/config.toml" PR, the
config.tomlfile of a crate within a workspace does not appear to be honoured. For example, if I have a project namedclientand it has two crates,appandembedded-app, andembedded-apphas a.cargo/config.toml, then the latter does not appear to be considered when determining build targets.To reproduce this issue:
rustup target add thumbv7em-none-eabihfif you don't have that targetembassy-start.code-workspace) in VSCclient/embedded-app/src/boards/nrf52840_dk.rsinterrupt::take!on L18 is able to be resolved"rust-analyzer.cargo.target": "thumbv7em-none-eabihf"from the workspace fileinterrupt::take!can no longer be resolvedMy expectation is that the build target of
client/.embedded-app/.cargo/config.tomlshould be honoured, and that I should not have to declare arust-analyzer.cargo.target.Related? #8521