Skip to content

Commit

Permalink
feat: make vscode work correctly with the Rust bits
Browse files Browse the repository at this point in the history
  • Loading branch information
K900 committed Sep 28, 2022
1 parent c95d28e commit e1aaebf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rust-analyzer.linkedProjects": [
"scripts/native-systemd-shim/Cargo.toml"
]
}
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
};

devShell = pkgs.mkShell {
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";

nativeBuildInputs = with pkgs; [
nixpkgs-fmt
shfmt
Expand Down

0 comments on commit e1aaebf

Please sign in to comment.