Closed oiwn closed 3 months ago
You should tell rust-analyzer to activate all features, or specifically to activate the ssr
feature, in your rust analyzer config. Here's my nvim setup, for example:
local rt = require("rust-tools")
rt.setup({
server = {
settings = {
["rust-analyzer"] = {
-- ...
-- activate all features of crates
cargo = {
allFeatures = true,
},
-- ...
Thank you! also it's possible to add default = ["ssr"]
to [features]
in Cargo.toml
What could be the way to actually activate certain features during development? Is it possible via local configuration?
I tried Helix/Neovim with rust analyser and in both got: