r/coolgithubprojects • u/rokarthur • 1h ago
I rebuilt VS Code in Rust: same editor, same extensions, a quarter of the memory
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:
| Category | VSRustium | VS Code 1.147.0 |
|---|---|---|
| Memory | 218 MiB | 975 MiB |
| Ready to work | 2.5 s | 12.1 s |
| Window shown | 0.79 s | 0.99 s |
| Idle CPU | 1.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 :))
13
Upvotes
13
u/Arcanium_Walker 32m ago
16
u/notddh 59m ago
Claude, reinvent zed
3
u/CallTheDutch 19m ago
I'm sure claud did as good of a job as the teams at microsoft did over the years. (/s)
2
u/misanthropocene 12m ago
Are you/have you automated intake of vscode updates/changes into your pipeline? Keeping up with it as it evolves, gets features, etc.? It would be interesting to explore automation patterns for maintaining a port with close, continuous following of upstream.
3
u/FIDST 16m ago
Can we make it acceptable to say,
"(A)I made this ...." ?
I respect what you and others (and myself) are doing. But it is misleading.
1
u/Adventure_Chipmunk 18m ago
Don't listen to the haters. "Why did you do this?"
BECAUSE I CAN.
1
u/allunia333 9m ago
how did you verified the memory usage?