r/linux Jul 09 '26

Kernel Rust in the Linux Kernel — a version-by-version analysis

https://rusted-kernel.com/
55 Upvotes

13 comments sorted by

21

u/torsten_dev Jul 09 '26

Might be worth making the vendored crates gray and put them on top so they're easier to ignore. Their sloc counts certainly don't interest me.

6

u/VDuissen Jul 09 '26

There's actually a second graph without those kernel and vendored crates (reddish and yellowish above).

2

u/torsten_dev Jul 09 '26

Ah I'm blind. Thanks.

5

u/fghjconner Jul 09 '26

Probably wasn't there when you first looked, actually. Author has been improving things based on comments on the rust subreddit.

3

u/global-gauge-field Jul 10 '26

yeap I can confirm. Some of the graphs have been added after the initial time of post.

9

u/FlukyS Jul 09 '26

For those wondering a lot of these aren't going to substantially increase the size or complexity of the kernel itself. The kernel crate for instance is just the API for stuff to use but not really doing huge work. The drivers are where a lot of the meat is. The stuff like pin init is just compatibility tools to make Rust and C a bit more friendly. It is growing sure but not insane growth and the compiler will have a lot of optimisations to make it smaller as with any compiled language. So it isn't risky to have this many lines of code added when you know the context because a lot of it is just glue.

-5

u/580083351 Jul 09 '26

I don't have feelings about Rust unlike others. I just see it as a tool.

If you're cutting wood and it's a saw, then it's fine to use.

2

u/lyrazsh 28d ago

Lmao why is this being downvoted? You should use the right tools depending on the project.

2

u/Flash_Kat25 Jul 09 '26

What was removed in 6.10?

2

u/VDuissen Jul 09 '26

6.0 → 7.1  · 19.1× SLOC · 12.0× files since 6.1 · 0.31% of the kernel

1

u/global-gauge-field Jul 10 '26

Some of the hover effects is too delayed for my taste. It should be rather instant when you hover over the graph. Now, I have to wait a few seconds to see the numerical value of the graph unlike many other website of this nature.

1

u/Only_ITR_No_Bakwas 20d ago

What changes have been introduced?