Rust playground with the top 10k crates

I see the new changes are there including formatting and clippy, and apparently one can even run code without logging in now. Lovely!

Two small things I’ve noticed so far:

  • the editor is now (and I don’t know if that’s a change) configured in a way such that typing a single quotation mark, ', will automatically create a second one to form a pair (assuming a char literal, I suppose), and that’s super annoying if you’re trying to write a lifetime parameter
  • the output of cargo fmt (i.e. the error message it there’s an error) is not colored
4 Likes

This looks very nice on first try. Thanks a lot.

1 Like

The editor now uses CodeMirror which has a much nicer syntax highlighting. Though there're some minor bugs in the syntax highlighting, e.g. /* // */. I'll disable auto-closing single quote later if it doesn't require a lot of work.

rustfmt doesn't have --color option. It detects the terminal capability automatically.

1 Like

Noticed there’s a character limit of 40 for the title of saved bins now. I’ve used links to the URLO posts where they were posted as titles for bins so far, and those can – at least if you use the proper/full link – be a lot longer, even over 100 characters, (perhaps a 200 character limit would be fine). Is there a strong reason for limiting it to something as low as 40?

1 Like

The 40 chars limit is imposed to avoid truncating the title. For example

"This is a very long title for a short bi..."

For non authors, the only way to read the full title is to hover the mouse on it. It's unpleasant to read a long title text.

Maybe you can write the link as a comment in the code.

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.