LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 09-02-2023, 09:06 AM   #1
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,417
Blog Entries: 43

Rep: Reputation: 36
Rust Support in Linux Mint 21.2 Kernel?


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.
 
Old 09-02-2023, 09:25 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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.
 
Old 09-02-2023, 07:47 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,665
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
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 07:48 PM.
 
Old 09-03-2023, 11:52 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by des_a View Post
If it's added, I would like to rely on it somehow.
What do you mean by this?
 
Old 09-03-2023, 09:33 PM   #5
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,417

Original Poster
Blog Entries: 43

Rep: Reputation: 36
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.
 
Old 09-03-2023, 11:20 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
You can rely on code written in Rust now. The userspace support is rock-solid.
 
Old 09-04-2023, 11:22 PM   #7
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,417

Original Poster
Blog Entries: 43

Rep: Reputation: 36
Quote:
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!
 
Old 09-04-2023, 11:52 PM   #8
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,417

Original Poster
Blog Entries: 43

Rep: Reputation: 36
What I accidently downloaded by doing:

Code:
git clone git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-meta/+git/jammy .

as told by the apt program
Was a meta package of some sort.
 
Old 09-05-2023, 12:11 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,595
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Quote:
Originally Posted by des_a View Post
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.
Just go to kernel.org and download the kernel of your choice. The latest kernel there will probably be more recent than any distro kernel.
 
Old 09-05-2023, 10:27 PM   #10
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,417

Original Poster
Blog Entries: 43

Rep: Reputation: 36
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.
 
Old 09-05-2023, 11:32 PM   #11
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,595
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
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.
 
Old 09-06-2023, 06:20 AM   #12
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
How to use rust compiler for kernel.
 
Old 09-07-2023, 12:06 AM   #13
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,595
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Quote:
Originally Posted by Emerson View Post
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?
 
Old 09-07-2023, 06:42 AM   #14
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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.
 
Old 09-08-2023, 05:25 AM   #15
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,417

Original Poster
Blog Entries: 43

Rep: Reputation: 36
How do I go to linux mint's repositories manually? I don't know how apt works as well as I knew how urpmi repositories worked.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Learn Rust by debugging Rust LXer Syndicated Linux News 0 07-30-2022 01:09 PM
LXer: Rust Foundation launches Rust Community Grants program LXer Syndicated Linux News 0 04-01-2022 03:30 PM
LXer: Rusty Linux kernel draws closer with new patch adding support for Rust as second language LXer Syndicated Linux News 0 12-08-2021 05:21 AM
LXer: Rust code in Linux kernel looks more likely as language team lead promises support LXer Syndicated Linux News 0 07-15-2020 10:03 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration