Rust Explorer playground now supports CLI, Vim, rustfmt, clippy, and macro-expand

Now you can run code on Rust Explorer without login.

I've been working on this update in the last three weeks. The front-end now uses SvelteKit, previously React Router Dom.

The editor now uses CodeMirror and supports Vim mode. Monaco gives a lot out of the box but limited customization. I moved the editor to CodeMirror to prepare for the next big update. You probably can guess it.


Now you can play with clap and run multiple commands without retyping them everytime you want to test them.

$ play --help
$ play ''
$ play ''
-d {
    "title": "Rust Explorer",
    "link": ""
$ echo 'Hello CLI' > message.txt
$ cat message.txt

Visit help to learn more.

Let me know what you think of the new design, especially the user page.


I get a SyntaxError exception when visiting the website. It seems to be due to this (from minified source code):

    const n = (localStorage == null ? void 0 : localStorage.getItem('settings')) || '',
    e = JSON.parse(n);

When visiting site for the first time, settings is not in localStorage, and empty string is not valid JSON which prevents loading the website.

1 Like

Thanks for the bug report. I've fixed it.

It's not Rust. If it were Rust, I should've been forced to handle this silly error. Maybe I should rewrite the front-end with Yew.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.