I had the same issue and was able to solve it by adding the following in the .vscode/settings.json
.vscode/settings.json
{ "rust-analyzer.cargo.features": ["proc-macro"] }