From e115b722454faca60559e3067f897fa472306c27 Mon Sep 17 00:00:00 2001 From: William Findlay Date: Wed, 27 Oct 2021 19:39:18 -0400 Subject: [PATCH] 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. --- .gitignore | 3 +-- .vim/coc-settings.json | 3 +++ .vscode/settings.json | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .vim/coc-settings.json create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 6482bd3c..ef6ce6e0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ Cargo.lock target/ -.vscode -libbpf/ \ No newline at end of file +libbpf/ diff --git a/.vim/coc-settings.json b/.vim/coc-settings.json new file mode 100644 index 00000000..60fe4ee3 --- /dev/null +++ b/.vim/coc-settings.json @@ -0,0 +1,3 @@ +{ + "rust-analyzer.linkedProjects": ["Cargo.toml", "bpf/Cargo.toml"] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..60fe4ee3 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "rust-analyzer.linkedProjects": ["Cargo.toml", "bpf/Cargo.toml"] +}