Browse Source

meta: fix rust-analyzer support for aya-bpf

Ironically, we have the same issue here as in https://github.com/aya-rs/aya-template/pull/13/.
This patch fixes this by explicitly defining the project layout for both vscode and neovim.
William Findlay 3 years ago
parent
commit
e115b72245
3 changed files with 7 additions and 2 deletions
  1. 1 2
      .gitignore
  2. 3 0
      .vim/coc-settings.json
  3. 3 0
      .vscode/settings.json

+ 1 - 2
.gitignore

@@ -1,4 +1,3 @@
 Cargo.lock
 target/
-.vscode
-libbpf/
+libbpf/

+ 3 - 0
.vim/coc-settings.json

@@ -0,0 +1,3 @@
+{
+  "rust-analyzer.linkedProjects": ["Cargo.toml", "bpf/Cargo.toml"]
+}

+ 3 - 0
.vscode/settings.json

@@ -0,0 +1,3 @@
+{
+  "rust-analyzer.linkedProjects": ["Cargo.toml", "bpf/Cargo.toml"]
+}