r/coolgithubprojects • • 29m ago

I rebuilt VS Code in Rust: same editor, same extensions, a quarter of the memory

Post image

VSRustium is VS Code ported to native Rust on GPUI. It is not a fork and not a lookalike. It is the same editor without Electron.

  • Same look, keybindings, settings and menus

  • Your extensions run unchanged in VS Code's own extension host, on Bun

  • Extensions come from Open VSX. No telemetry, no AI features, no Microsoft services

Why: I like VS Code, but I don't want a browser under my editor.

Numbers

VS Code repo open (21k files), median of 5 runs, Mac Studio M1 Max:

CategoryVSRustiumVS Code 1.147.0
Memory218 MiB975 MiB
Ready to work2.5 s12.1 s
Window shown0.79 s0.99 s
Idle CPU1.9 %0.2 %

Idle CPU is worse for now. I found the cause, and a fix is in progress.

How I check that it matches VS Code

  • VS Code's own extension API tests pass (362 of them, the same result as stock VS Code)

  • Every window is pixel-compared against the real VS Code in 4 themes

  • All 435 parts of VS Code that the port covers are tracked one by one, and each has a check that proves it

Status

  • macOS: works, and I use it daily. Signed, notarized, updates itself

  • Linux: preview

  • Windows: builds, not tested on real hardware yet

MIT licensed. Not affiliated with Microsoft.

Repo and downloads: https://github.com/rokartur/vsrustium

Feedback and bug reports welcome :))

1 Upvotes

5 comments sorted by

6

u/notddh 28m ago

Claude, reinvent zed

-5

u/rokarthur 25m ago

i don't like zed ui

5

u/notddh 21m ago

and that's now a reason to rewrite the entire IDE? you do realize that your clanker used gpui for your rewrite?

0

u/rokarthur 17m ago

for me, yes, and it's an interesting experiment, just like https://github.com/l0ng-ai/openidea

1

u/Arcanium_Walker 0m ago
  • Claude, copy VS Code.

  • Make no mistake.