Closed jjant closed 1 year ago
Hi, I have a mixed native/wasm32-unknown-unknown project and #[cfg(target_arch = "wasm32")] blocks don't get analyzed.
#[cfg(target_arch = "wasm32")]
Apparently you can set a rust-analyzer.cargo.target option for this but I don't see an easy way to do it with rust-tools (ideally based on my project's Cargo.toml or .cargo/config). Any ideas on how I can achieve this?
rust-analyzer.cargo.target
rust-tools
Cargo.toml
.cargo/config
https://github.com/simrat39/rust-tools.nvim/wiki/Server-Configuration-Schema
Hi, I have a mixed native/wasm32-unknown-unknown project and
#[cfg(target_arch = "wasm32")]
blocks don't get analyzed.Apparently you can set a
rust-analyzer.cargo.target
option for this but I don't see an easy way to do it withrust-tools
(ideally based on my project'sCargo.toml
or.cargo/config
). Any ideas on how I can achieve this?