Can you give me a step by step of building Zed IDE on windows?
- User
Can you give me a step by step of building Zed IDE on windows?
- Assistant
Certainly! Here’s a step-by-step guide to building Zed IDE on Windows. Zed is a modern, fast code editor written primarily in Rust and TypeScript, and it uses the Tauri framework for its desktop app shell.
Step-by-Step Guide to Building Zed IDE on Windows
Prerequisites
- Windows 10 or 11 (64-bit)
- Git — for cloning the repository
Download and install from: https://git-scm.com/download/win - Rust toolchain — for building Rust code
Install from https://rustup.rs/
After installation, open a new terminal and run:rustup update - Node.js and npm — for building the frontend (TypeScript)
Download and install from: https://nodejs.org/en/download/
(Recommended: LTS version) - Visual Studio Build Tools — for compiling native dependencies
Download from: https://visualstudio.microsoft.com/visual-cpp-build-tools/
During installation, select Desktop development with C++ workload. - Tauri prerequisites — Tauri requires some additional tools:
- Install Windows Subsystem for Linux (WSL) or ensure you have PowerShell 7+ and Windows SDK installed.
- Install cargo-tauri CLI:
cargo install tauri-cli
Step 1: Clone the Zed IDE repository
Open PowerShell or Command Prompt and run:
git clone https://github.com/zed-industries/zed.git cd zed
Step 2: Install Node.js dependencies
Inside the
zeddirectory, run:npm installThis will install all the JavaScript/TypeScript dependencies.
Step 3: Build the Rust backend
Zed’s backend is written in Rust. To build it, run:
cargo build --releaseThis will compile the Rust code in release mode.
Step 4: Build the frontend
Run the frontend build command:
npm run buildThis compiles the TypeScript and bundles the frontend assets.
Step 5: Build the Tauri app
Now, build the full desktop app with Tauri:
npm run tauri buildThis command will package the Rust backend and the frontend into a Windows executable.
Step 6: Run the app locally (optional)
To run the app without packaging:
npm run tauri devThis will launch the Zed IDE in development mode.
Troubleshooting Tips
- Make sure your Rust toolchain is up to date (
rustup update). - Ensure Visual Studio Build Tools are installed correctly.
- If you get errors related to missing Windows SDK, install it via Visual Studio Installer.
- If
cargo-tauriis not found, ensure your Cargo bin directory is in your PATH. - For any Node.js errors, try deleting
node_modulesand runningnpm installagain.
Summary of commands
git clone https://github.com/zed-industries/zed.git cd zed npm install cargo build --release npm run build npm run tauri build
If you want, I can also help you with setting up a development environment or debugging specific errors you encounter during the build. Just let me know!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.