From edcae88476236ccb2dbcd8ca564b86f26ffa30ef Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sat, 23 May 2026 14:36:59 +0200 Subject: [PATCH] chore(zed): pin rust-analyzer for firmware crate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Zed's bundled rust-analyzer calls `cargo metadata --lockfile-path`, which is still gated behind `-Z unstable-options` on cargo 1.95.0 (both stable and the esp Xtensa fork). Workspaces fail to load with the bundled binary. Point lsp.rust-analyzer.binary.path at the rustup-managed rust-analyzer (version-locked to cargo 1.95 stable, no unstable flags). Also set cargo.target = xtensa-esp32s3-espidf with allTargets=false so RA doesn't try to check the crate for the host target — esp-idf-sys can't build for macOS. --- .zed/settings.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.zed/settings.json b/.zed/settings.json index 3d24a6f..771d6d7 100644 --- a/.zed/settings.json +++ b/.zed/settings.json @@ -1,4 +1,21 @@ { + "lsp": { + "rust-analyzer": { + "binary": { + "path": "/Users/julien/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rust-analyzer", + "arguments": [] + }, + "initialization_options": { + "cargo": { + "target": "xtensa-esp32s3-espidf", + "allTargets": false + }, + "check": { + "allTargets": false + } + } + } + }, "languages": { "JavaScript": { "formatter": { "language_server": { "name": "oxc" } },