GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is a very, very simple question. I have tried to combine the basic kernel questions to the computer itself, with the power of the google search engine to find my answer. I can't. This will put it there though.
In the Linux Mint 21.2 freshly updated, but not fully up to date kernel, and again, if I were to apply all possible updates: Is there Rust support (via Rust added to the kernel), in Linux Mint 21.2? I don't want to rely on it right now, unless I need to, but I would think that I can do more, if it is added. So is it addded or not? I could NOT find the answer, even using YouTube. When, if at all, can we expect it? If it's added, I would like to rely on it somehow. If not, nope. Not yet.
While I'm not sure myself (too lazy to read up right now) I think you have got it backwards. Rust in kernel is not about supporting rust, it is about using rust in kernel build.
In userland you can use rust compiler regardless whether it is "in kernel" or not, it is irrelevant.
An operating-system kernel does not contain any programming-language-specific "support."
The "support" needed by any process that is implemented in any particular programming language is provided by (user-land ...) "shared libraries" such as the immortal glibc. But these also are entirely distinct from "the kernel."
Last edited by sundialsvcs; 09-02-2023 at 08:48 PM.
I mean, i would like to rely on code written in rust, if needed. I dont know rust. I want to later learn rust. After i work on my language a bit more. I was thinking of making a modified mint kernel later. But i know rust is in a kernel that linus is working on. I know what it means. In english we say it funny. Thats the way news says it. It basically means a part is written in the rust programming language, which is compiled in, to make a binary, which we install and use. I have to read linux the kernel later.
You can rely on code written in Rust now. The userspace support is rock-solid.
I meant in the kernel.
But nevermind. I'll find the answer myself, from reading the kernel now, if you guys can show me how to download the sources for the kernel. I'm unfamiliar with debian based systems how to install source code for programs, using not a CD, but the Internet. Could you just teach me the generic way to do that? Going from mint to ubuntu, to debian. Then I'll download the kernel source, for which I have, I'm sure I can learn to do a search for which package provides the kernel I have, and then download the source from that. Then, I can just read the kernel myself, and skip documentation. If I see Rust, it has rust, if it's not there, there's no rust. I kind of need to read it now sometime, anyway! Might as well be now!
That would defeat my purpose. A random kernel may not work with my system. It may break it. I want my distros kernel. I just want to know if it has rust. If not, for now, ill wait. I thought this was a simple question. If i could download the proper package, i could read and find out.
I don't think an original kernel from kernel.org would break any system unless you configured it wrong. But it's true that distros do often add their own patches. So go to your distro's repo using your browser, navigate to the sources folder and download your kernel from there.
Does this mean that the traditional gcc kernel build no longer works? Or is it only when you activate and build the rusty bits that you have to use clang?
Conventional way works fine, I just built 6.5.1. Frankly, I'm a buff of GCC. With other compilers there are always arguments how they build faster. I really do not care how fast they compile, if anything then I'm interested how fast the resulting binary runs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.