Hacker News new | ask | show | jobs
by cozzyd 484 days ago
Fortunately the rust inside Linux doesn't use cargo and uses the normal kernel build system.
1 comments

kbuild just calls cargo under the hood.
No it doesn't. I checked and kbuild calls rustc directly.

The only results for cargo in entire the linux source tree is documentation suggesting you install bindgen via cargo install.... Plus a bunch of comments referencing "cargo-cult programming"

You checked with grep or something more?
https://github.com/search?q=repo%3Atorvalds%2Flinux%20cargo&...

And you can see under samples/rust that only a kbuild-style Makefile is provided: https://github.com/torvalds/linux/tree/master/samples/rust

not enough reading