Skip to content

Commit

Permalink
fix the rust-analyzer bug that prevented rust-analyzer from running o…
Browse files Browse the repository at this point in the history
…n NixOS
  • Loading branch information
bluelinden committed Apr 10, 2024
1 parent b2081b9 commit 6f881a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
2 changes: 1 addition & 1 deletion backend/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.74.1"
channel = "1.77.2"
components = ["rust-analyzer"]
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
clang
llvmPackages.clangUseLLVM
rust-bindgen
lld
llvm
];

LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
Expand Down

0 comments on commit 6f881a9

Please sign in to comment.