r/rustjerk

▲ 12 r/rustjerk+1 crossposts

Rust linter for method ordering (looking for feedback)

Hi,

I'm learning Rust (I have experience with Java and Go) and built a small linter funcorder-rs.
It checks that inside impl blocks, methods are ordered as:

  1. Constructors (pub fn new() -> Self etc.).
  2. Public methods.
  3. Private methods

More than looking if you guys find it useful (which it's also nice) I am wondering if I am using idiomatic Rust, best practices, etc.

This is the link: https://github.com/manuelarte/funcorder-rs

Cheers!

reddit.com
u/manuelarte — 4 days ago
▲ 201 r/rustjerk

It's over. Node.js is rewriting Cargo. Pack it up boys, RIIR has failed

We spent years rewriting their entire frontend toolchain (SWC, Oxc, Rspack) in pure, blazing-fast, memory-safe Rust to save them 2 seconds of build time.

And how do they repay us? They rewrote our sacred cargo publish in TypeScript just because GitHub Actions is a 'Node.js native environment' and they didn't want to wait for rustup to install.

The audacity. The absolute lack of fear of garbage collection.

Here is the proof of our defeat:https://github.com/tu6ge/publish-action/issues/15

u/Live_Possession_9839 — 6 days ago
▲ 874 r/rustjerk

One line, no unsafe, no unwrap -> crashes the entire linux kernel. And "people" have the gall to call this a "safe" programming language.

u/java-aficionado — 8 days ago
▲ 263 r/rustjerk

Don't code while tired/late at night. You'll come back the next day and have to figure out how to refactor things like this:

Yes, that is a struct called bool. How do I refactor this?

u/Aln76467 — 10 days ago

Check out my CCC fork!✨✨✨

In this growing age of ✨✨✨AI✨✨✨ content it is imperative we as rust developers embrace it. Even in the world of C code, there has to be ✨✨✨AI✨✨✨.

https://preview.redd.it/zz4an29s9i0h1.png?width=1920&format=png&auto=webp&s=24c61733f050be183beae2e066556b9424bc35e5

This is why I implemented AI(Automatic-quotes In-place-of-string-literals) in the MOST MODERN ✨✨✨C✨✨✨ Compiler written in RUST!!!
https://github.com/wadsaek/claudes-c-compiler/commit/bdaa75cad6d7dd13dcc93b62b2dcd9b7bd818b54

reddit.com
u/wadsaek — 10 days ago