Comment by saidinesh5
2 days ago
The Rust in kernel doesn't use Cargo, does it? (Genuine question - someone do confirm)
That being said, it depends on how well the two languages integrate with each other - I think.
Some of the best programming experience I had so far was when using Qt C++ with QML for the UI. The separation of concerns was so good, QML was really well suited for what it was designed for - representing the Ui state graph and scripting their interactions etc ... And it had a specific role to fill.
Rust in the kernel - does it have any specific places where it would fit well?
I’m right with you! Qt C++ with QML is the absolute best combo for programming GUI apps. I wrote about it on my blog post[1].
[1] https://rubymamistvalove.com/block-editor
Yes, cargo is involved. R4L currently works by invoking kbuild to determine the CFLAGS, then passes them to bindgen to generate the rust kernel bindings. It then invokes cargo under the hood, which uses the bindings and the crate to generate a static lib that the rest of the kernel build system can deal with.
no? there's only a single mention of cargo in the entire kernel, and it's in a docs page describing how to install bindgen, a toolchain dependency of the kernel, below a whole list of other non-cargo ways to install bindgen.
https://github.com/search?q=repo%3Atorvalds%2Flinux%20cargo&...