From e1aaebf83c7ed1ce30a53357d8afffb979eab80d Mon Sep 17 00:00:00 2001 From: K900 Date: Wed, 28 Sep 2022 11:03:17 +0300 Subject: [PATCH] feat: make vscode work correctly with the Rust bits --- .vscode/settings.json | 5 +++++ flake.nix | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..946ae790 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "rust-analyzer.linkedProjects": [ + "scripts/native-systemd-shim/Cargo.toml" + ] +} \ No newline at end of file diff --git a/flake.nix b/flake.nix index 5d5cd3fe..938a8220 100644 --- a/flake.nix +++ b/flake.nix @@ -49,6 +49,8 @@ }; devShell = pkgs.mkShell { + RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; + nativeBuildInputs = with pkgs; [ nixpkgs-fmt shfmt