Skip to content

Visual Studio Code, rebuilt in Rust

Rust
README

VSRustium

VS Code, rebuilt in Rust.

Download  ·  Benchmark  ·  Coverage  ·  Build

VSRustium with the VS Code source open, dark theme

VS Code 1.148.0 rebuilt as a native app in Rust on GPUI. The workbench, editor and services are Rust; extensions run unchanged in VS Code's own extension host, on Bun. Same look, keyboard, mouse, settings and extension API, checked part by part against the upstream source. Not a fork: this repository holds the port only, and VS Code is a plain checkout of its release tag that the build reads and never edits.

Builds for macOS and Linux; Windows is in progress.

Benchmark

Opening the VS Code 1.148.0 source (21,627 files) with warm caches, median of 5 runs:

VSRustium VS Code 1.148.0 Zed 1.30.2
Window with the folder 0.66 s 0.67 s -
Ready (CPU settled) 2.9 s 5.1 s -
Peak memory (footprint, all processes) 488 MiB 1042 MiB 378 MiB
Peak memory (RSS, all processes) 755 MiB 1753 MiB 560 MiB
Memory at 90 s (footprint, all processes) 223 MiB 584 MiB 225 MiB
CPU time until ready 2.4 s 7.8 s -
Idle CPU, 60 to 90 s after launch 0.5 % of a core 0.2 % of a core -
Quit 0.13 s 0.23 s -

Release builds of both with default settings and the same built-in extensions, AI features off in VS Code (VSRustium leaves them out), on a Mac Studio (M1 Max, 32 GB, macOS 27). Both are measured from outside the same way: port/tools/bench runs it, and port/results/benchmark.md has the method, the raw samples and the command. Zed's column comes from a later run of the same tool with all three apps, AI features, updates and telemetry off in Zed, where VSRustium measured 489, 752 and 222 MiB; its times wait for a run on a quiet machine (port/notes.md, "Benchmarks").

Coverage

469 of 554 items done (84%). 439 of the 439 parts of VS Code 1.148.0 the port covers match upstream 1:1. 85 work items are still open: 7 for Linux, 35 for Windows, 43 for the VS Code 1.148.0 uplift. 155 more parts are left out on purpose. A part is one upstream folder: a feature, a service or a built-in extension; a work item is one row of a milestone's work (Linux, Windows, the uplift). Both are counted from the port's ledger, port/ledger.md and port/ledger/.

%%{init: {"theme": "base", "themeVariables": {"pie1": "#2da44e", "pie2": "#d4a72c", "pie3": "#cf222e", "pie4": "#8c959f", "pieStrokeColor": "#ffffff", "pieOuterStrokeColor": "#ffffff", "pieSectionTextColor": "#ffffff", "pieLegendTextColor": "#8c959f", "pieTitleTextColor": "#8c959f"}}}%%
pie showData
    "Matches VS Code 1:1" : 439
    "Works, with open gaps" : 0
    "Work items still open" : 85
    "Left out on purpose" : 155
By area
What Matches 1:1 With gaps Left out Done
Platform services: files, configuration, keybindings, windows, updates 69 0 43 ████████████████████ 100%
Workbench features: debug, Git, terminal, search, settings, extensions view 72 0 33 ████████████████████ 100%
Workbench services: editors, views, layout, themes, storage 66 0 30 ████████████████████ 100%
Built-in extensions: languages, themes, Git, Markdown, npm 89 0 6 ████████████████████ 100%
Extension API: the calls extensions make into the editor 59 0 31 ████████████████████ 100%
Editor features: find, folding, suggest, hover, multi-cursor 57 0 3 ████████████████████ 100%
Window parts: title bar, activity bar, side bar, panel, status bar 12 0 2 ████████████████████ 100%
Extension host: runs unmodified VS Code extensions 7 0 0 ████████████████████ 100%
Base library 0 0 5 all left out
Whole-app checks: look, memory, no telemetry, Open VSX gallery 5 0 0 ████████████████████ 100%
Text editor core: model, view, cursor 2 0 2 ████████████████████ 100%
Port-only features: settings import from VS Code 1 0 0 ████████████████████ 100%
All 439 0 155 ████████████████████ 100%

"Matches 1:1" means upstream's tests or a named check against VS Code pass. No part works with open gaps.

Milestone work Done Open Progress
M21 uplift 11 43 ████░░░░░░░░░░░░░░░░ 20%
M24 Windows 1 35 ░░░░░░░░░░░░░░░░░░░░ 2%
M23 Linux 18 7 ██████████████░░░░░░ 72%

Left out on purpose: AI features, Microsoft services, telemetry, remote and tunnels, by decision (port/notes.md), and upstream's test infrastructure and the Electron process, IPC and DOM layers the native app replaces.

Cost

The port was written by AI agents in 573 sessions, coordinators and their subagents, from 2026-11-23 to 2026-12-04: 130,005 model calls, 16.9 billion tokens.

Model Calls Input Cache read Cache write Output Cost
Claude Opus 5.5 123,610 0.25 M 15,381 M 993 M 61.8 M $9,282
Claude Mythos 5.2 1,538 0.0033 M 130.6 M 9.0 M 1.5 M $176
Claude Fable 5.2 227 0.0005 M 49.7 M 2.4 M 0.2 M $42
Claude Haiku 5.5 3,063 85.2 M 0 0 8.1 M $20
GPT-6 Luna 1,567 5.4 M 126.1 M 0 0.7 M $2
All 130,005 91 M 15,688 M 1,005 M 72.1 M $9,522

Counted from the agent session logs, each call once; cost at OpenRouter list prices per token type, long-prompt tiers included; Claude Mythos 5.2 has no OpenRouter price and is priced as Claude Fable 5.2. Prompt caching does most of the saving: the 15.7 billion cache-read tokens cost $3,114, at full input price they would cost $63,000.

Download

Releases:

  • macOS: darwin-arm64 for Apple silicon, darwin-x64 for Intel. Signed, notarized, updates itself.
  • Linux: linux-x64 and linux-arm64 archives (.tar.gz) and AppImages (.AppImage), glibc 2.39 or newer: Ubuntu 24.04, Debian 13. A preview: webviews in X11 sessions only (WebKitGTK 4.1), no self-update, the rest in the "M23 Linux" rows of port/ledger.md.
  • Nix: flake.nix packages the Linux archives and moves to each release once that release builds (update-flake.yml). Run it with nix run github:rokartur/vsrustium, or install packages.<system>.default from a NixOS or Home Manager configuration.

Build

Rust (stable) with cargo-gc 0.2.0, Bun 1.4.5, Node.js 24 and Zig 0.17 (it builds the terminal's libghostty-vt):

git clone --branch 1.148.0 --depth 1 https://github.com/microsoft/vscode upstream
(cd upstream && npx -y [email protected] install && npx -y [email protected] run compile)
cargo install cargo-gc --version 0.2.0 --locked
bun port/tools/build-exthost
(cd native && cargo gc build --release -p app)
native/target/release/vsrustium

CI runs the ledger, README coverage and license checks, and cargo test --workspace on macOS arm64 and Linux x64 and arm64, on every push to main and pull request. Windows runs by hand in windows.yml while it is paused.

port/tools/package-app (macOS) and port/tools/package-linux make the release app. How the work is tracked and checked: CONTRIBUTING.md. Security issues: SECURITY.md. Community rules: CODE_OF_CONDUCT.md.

License

Apache-2.0: the port by Artur Rok, derived from VS Code by Microsoft, whose MIT notice NOTICE.txt keeps. Third-party notices: VS Code's ThirdPartyNotices.txt in upstream/, which the packaged app ships with the licenses of the packages it adds.

Not affiliated with Microsoft. Visual Studio Code is a trademark of Microsoft.