FreeBSD kernel module in Rust . Contribute to johalun/echo development by creating an account on GitHub.
github.com
Requirements:
- FreeBSD machine
- Rust nightly
- Xargo
I recommend using rustup for installing and handling different versions of Rust.
It will need the compiler because of the package/port, even if the compiler isn't needed and only Cargo is in the actual use. Come to think of it, compiling the kernel in C is a common user task for FreeBSD users. Compiling, rather than inserting code, would obviously need the Rust compiler.
As long as it can be used with existing kernel drivers written in C, which is likely. So much code like graphics modules is necessary for many people's uses, that will take too much to be written in another language as it's taken a long time for those to develop.
That's a project that
Dimitri Chuikov can contribute to, and add Documentation, including a Howto, on how to use it.
Imagine if the FreeBSD kernel in Rust were used in
https://www.minibsd.org/, which is a 16 MB FreeBSD fork. That would be halfway towards a whole new operating system.
many here still said that I don't have the competence for that.
I saw criticism of the idea, but I don't know if anyone said that. I don't have the ability to do lots of things which are complex and require a specific knowledge set.
I see criticism of ideas a lot, while I don't get offended by them, I get frustrated with my interpretation of them as people defaulting to, "you can't do this," "you can't do that", which seems like being stuck in a loop for what is or may be better. But, it turns out that Rust as a FreeBSD kernel module is a project that has been done before.
It's good that the project was found for those who like to try it. And it's good that the link to it and the thread will bring attention to it. It's fitting for the forum. It would be great to see its implementation be discussed in the near future as well. It would be cool to see and learn how that runs.