From 193c768af200e51faf4f9f2611448ea6133ddfdf Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Sun, 19 Apr 2026 15:45:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20rust-analyzer=20=E3=81=8C=E6=A8=99?= =?UTF-8?q?=E6=BA=96=E3=83=A9=E3=82=A4=E3=83=96=E3=83=A9=E3=83=AA=E3=82=92?= =?UTF-8?q?=E8=AA=AD=E3=82=81=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rust-bin.stable.latest.default には rust-src コンポーネントが含まれないため、 rust-analyzer が sysroot から標準ライブラリのソースを見つけられずエラーになっていた。 extensions に rust-src と rust-analyzer を追加して解消する。 Co-authored-by: Claude Code --- templates/seichi-portal-backend/flake.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/seichi-portal-backend/flake.nix b/templates/seichi-portal-backend/flake.nix index 96de6e5..5d00da9 100644 --- a/templates/seichi-portal-backend/flake.nix +++ b/templates/seichi-portal-backend/flake.nix @@ -21,7 +21,12 @@ { devShells.${system}.default = pkgs.mkShell { buildInputs = [ - pkgs.rust-bin.stable.latest.default + (pkgs.rust-bin.stable.latest.default.override { + extensions = [ + "rust-src" + "rust-analyzer" + ]; + }) pkgs.pkg-config pkgs.openssl pkgs.cargo-make