| Post Reply | RetroFed Forums Forum Index » Linux |
| Author | Message | ||
|---|---|---|---|
SocialistVibes01
lemmy.ml
SocialistVibes01@lemmy.mlJoined: 2026-04-30 |
EEE
|
||
| 101 Original | |||
thingsiplay
lemmy.ml
thingsiplay@lemmy.mlJoined: 2026-01-09 |
At this point, I think Rust should be installed and available on most distributions. Its just part of Linux now, like C and Python. Maybe this will be, once GCC can compile Rust too. |
||
| 23 | |||
|
Ephera
lemmy.ml
Ephera@lemmy.ml Joined: 2020-05-31 |
Those are some wild restrictions. You're using the syntax and presumably compiler (rustc), but almost nothing else from Rust... |
||
| 3 | |||
|
HelloRoot
lemy.lol
HelloRoot@lemy.lol Joined: 2025-02-15 |
At this point, I think Rust should be installed and available on most distributions. Its just part of Linux now, like C and Python. Maybe this will be, once GCC can compile Rust too.
Only if it is packaged like python on arch. I never had so many problems with anything else on linux but pip, npm, and cargo. |
||
| 3 | |||
thingsiplay
lemmy.ml
thingsiplay@lemmy.mlJoined: 2026-01-09 |
Only if it is packaged like python on arch. I never had so many problems with anything else on linux but pip, npm, and cargo.
I don't think that a package manager and cargo should be included by default, if Rust compiler and the standard library was installed. One can use the compiler That would off course mean that many projects cannot be compiled without a package manager and all their dependencies. But it would make it like Python (and C compilers) be possible to compile individual files. That could make it to a standard way of distributing simple projects which does not require any external libraries at all. This could encourage such projects too, which isn't a bad thing at all to me. And it just occurred to me that probably some Rust libraries could be installed as a separate Archlinux package too, so you don't need external package manager. Haskell in example does that, and off course Python packages. |
||
| 6 | |||
|
MonkderVierte
lemmy.zip
MonkderVierte@lemmy.zip Joined: 2025-05-30 |
Uh, why is Systemd stuff dependent on any specific language, except for (C) kernel calls? |
||
| 4 | |||
|
Ephera
lemmy.ml
Ephera@lemmy.ml Joined: 2020-05-31 |
At this point, I think Rust should be installed and available on most distributions. Its just part of Linux now, like C and Python. Maybe this will be, once GCC can compile Rust too.
Firefox and Python's cryptography toolchain have a build dependency on Rust, which are two packages that virtually all Linux distributions have packaged. So, some version of the Rust compiler is going to be available on virtually all Linux distributions. There's no real reason to have the Rust compiler installed on non-dev systems, as you don't need it for running Rust programs (although I kind of assume you know this). |
||
| 9 | |||
|
Ephera
lemmy.ml
Ephera@lemmy.ml Joined: 2020-05-31 |
Uh, why is Systemd stuff dependent on any specific language, except for (C) kernel calls?
This is about the official systemd repository. They use a mono-repo-approach, where all the official components are in one repository and use the same build system, so adding a second language into that is a bigger hurdle. If you develop a third-party tool that somehow hooks into systemd, then you can use whatever language you want. |
||
| 12 | |||
|
MonkderVierte
lemmy.zip
MonkderVierte@lemmy.zip Joined: 2025-05-30 |
This is about the official systemd repository. They use a mono-repo-approach, where all the official components are in one repository and use the same build system, so adding a second language into that is a bigger hurdle. If you develop a third-party tool that somehow hooks into systemd, then you can use whatever language you want.
Ah, makes sense, thanks! While i don't think that a monorepo with no scope guard rails is a good idea. |
||
| 3 | |||
thingsiplay
lemmy.ml
thingsiplay@lemmy.mlJoined: 2026-01-09 |
Firefox and Python's cryptography toolchain have a build dependency on Rust, which are two packages that virtually all Linux distributions have packaged. So, some version of the Rust compiler is going to be available on virtually all Linux distributions. There's no real reason to have the Rust compiler installed on non-dev systems, as you don't need it for running Rust programs (although I kind...
You don't need to be a developer in order to compile little programs. Like in C it is totally normal to do so, without being a programmer. Just use a make command on a Github project and install it manually. I would put Rust at the same level as C, so yes, most people wouldn't have it installed or need it. But the compile In a way that any program could assume everyone on Linux is able to compile with a basic Makefile, like we do this with C in example (if compiler tools are installed). I didn't even think about dynamically linked standard library. |
||
| 1 | |||
|
HelloRoot
lemy.lol
HelloRoot@lemy.lol Joined: 2025-02-15 |
I don't think that a package manager and cargo should be included by default, if Rust compiler and the standard library was installed. One can use the compiler rustc without Cargo. Also there are works to create a new independent compiler for the GCC framework, but that takes forever it seems. That would off course mean that many projects cannot be compiled without a package manager and all the...
Thats what I mean by "like python on arch" |
||
| 2 | |||
thingsiplay
lemmy.ml
thingsiplay@lemmy.mlJoined: 2026-01-09 |
Uh, why is Systemd stuff dependent on any specific language, except for (C) kernel calls?
[deleted]
|
||
| 2 | |||
urushitan 漆たん
kakera.kintsugi.moe
urushitan@kakera.kintsugi.moeJoined: 2026-03-28 |
You don't need to be a developer in order to compile little programs. Like in C it is totally normal to do so, without being a programmer. Just use a make command on a Github project and install it manually. I would put Rust at the same level as C, so yes, most people wouldn't have it installed or need it. But the compile rustc should be packaged by all distributions and it should be part of a ...
Well, like with everything now, rust is much more than the compiler, and will need the entire toolchain, so you’d want rustup or pinned toolchain packages so you had access to cargo and the full ecosystem. |
||
| 2 | |||
thingsiplay
lemmy.ml
thingsiplay@lemmy.mlJoined: 2026-01-09 |
Well, like with everything now, rust is much more than the compiler, and will need the entire toolchain, so you’d want rustup or pinned toolchain packages so you had access to cargo and the full ecosystem.
Rust has a compiler |
||
| 1 | |||
|
badmin
lemmy.today
badmin@lemmy.today Joined: 2025-06-03 |
Well, like with everything now, rust is much more than the compiler, and will need the entire toolchain, so you’d want rustup or pinned toolchain packages so you had access to cargo and the full ecosystem.
All major distributions ship their own compiled rustc/cargo packages already, and they've done so for years. And putting rust projects using nightly features aside*, stable rust version updates are much less disruptive than major GCC or clang updates. Breakages are rare, known in advance, and communicated to upstreams before hand (look up "crater" if you want to learn more). * Not sure if distros package, or need to package any such packages, but I didn't do any surveys on the subject. |
||
| 1 | |||
|
badmin
lemmy.today
badmin@lemmy.today Joined: 2025-06-03 |
Only if it is packaged like python on arch. I never had so many problems with anything else on linux but pip, npm, and cargo.
That's python's problem. You have no idea how much of a life improvement simply using |
||
| 2 | |||
|
badmin
lemmy.today
badmin@lemmy.today Joined: 2025-06-03 |
Those are some wild restrictions. You're using the syntax and presumably compiler (rustc), but almost nothing else from Rust...
waat 😲 |
||
| 2 | |||
|
Ephera
lemmy.ml
Ephera@lemmy.ml Joined: 2020-05-31 |
You don't need to be a developer in order to compile little programs. Like in C it is totally normal to do so, without being a programmer. Just use a make command on a Github project and install it manually. I would put Rust at the same level as C, so yes, most people wouldn't have it installed or need it. But the compile rustc should be packaged by all distributions and it should be part of a ...
Fair enough, I guess. I mean, But yeah, at that point, you're adding a nontrivial number of megabytes to user installations for something they might not use. I would guess that even just rustc is larger than gcc and clang, since it implements more sophisticated logic... |
||
| 2 | |||
thingsiplay
lemmy.ml
thingsiplay@lemmy.mlJoined: 2026-01-09 |
Fair enough, I guess. Personally, I don't really see the point, because there's hardly any projects that can be compiled with just rustc. I mean, cargo is actually surprisingly useful for normal users, because there's a decent chance you can compile medium-sized Rust projects without having to jump through endless hoops. But yeah, at that point, you're adding a nontrivial number of megabytes to...
Because having rustc as a standard tool is not there yet. Off course most don't expect someone to have rustc only on their computer. I love Cargo, don't get me wrong. But I think there could be a rise of non Cargo and library dependency projects in future, if the infrastructure (meaning rustc and the standard library can be expected as standard dependency) is available once. Just like not every little project of C requires additional dependency trackers. One could download a project from Git and build it with rustc+make and only the dependencies available in your repository. One of the major issues with the public cratesio is, that not everyone wants to depend on it. In example Linux or other projects don't use it (as far as I know). So there might be use cases. Just like we use Python and Haskell without additional libraries, or only install them from our systems repository. Maybe it shouldn't be installed by default. But having an infastructure with basic system packages to install only "Rust" (rustc+stdlib), no cargo, no rustfmt, no rustup. Maybe this will be available once |
||
| 1 | |||
|
jdr
lemmy.ml
jdr@lemmy.ml Joined: 2021-07-28 |
Systemd keeps finding ways to be worse |
||
| -3 | |||
|
ISO
lemmy.zip
ISO@lemmy.zip Joined: 2025-06-06 |
Personally, I don’t really see the point, because there’s hardly any projects that can be compiled with just rustc. Because having rustc as a standard tool is not there yet. Off course most don't expect someone to have rustc only on their computer. I love Cargo, don't get me wrong. But I think there could be a rise of non Cargo and library dependency projects in future, if the infrastructure (m...
I think you're clearly clueless and should stop opining on matters you know nothing about. |
||
| 0 | |||
thingsiplay
lemmy.ml
thingsiplay@lemmy.mlJoined: 2026-01-09 |
I think you're clearly clueless and should stop opining on matters you know nothing about.
I think you don't know what you are talking about. |
||
| 1 | |||
urushitan 漆たん
kakera.kintsugi.moe
urushitan@kakera.kintsugi.moeJoined: 2026-03-28 |
Rust has a compiler rustc which does not need the entire toolchain like cargo and eco system. It can be used like Python and C with standard libraries only and adding libraries manually without package manager.
yes, but to manually build packages against libraries yourself would be a nightmare of tooling without cargo. It's no different than every https://wiki.debian.org/Rust Debian builds it's own local cargo registry by default. If your distro provides "pinned versions" like I said, you won't need rustup, but you'll still need cargo to do anything beyond a tiny project with no imports, unless you plan on writing async/http/encryption libraries all yourself. |
||
| 1 | |||
thingsiplay
lemmy.ml
thingsiplay@lemmy.mlJoined: 2026-01-09 |
yes, but to manually build packages against libraries yourself would be a nightmare of tooling without cargo. It's no different than every base-devel and similar package requiring cmake because sure, you could manually run the c/c++ compilers and linkers yourself against every single file, passing in the flags yourself, but that would take an obscene amount of time to manually build and run eve...
It would be similar to how we build C with make or any other language, using a Makefile in example. In example if the project contains all dependencies in the Git repository already and does not need to download extra dependencies. The Makefile and configuration would handle all of that. Or for projects that do not require dependencies, it would be quite simple compiling. Debian uses cargo, which is what I would avoid. Cargo is a package manager, that is the exact thing I'm trying to avoid here with the suggestion. I think of dependencies integrated into the system package manager (pacman in example). Debian needs to do this cargo registry, because there is no other infastructure. |
||
| 1 | |||
urushitan 漆たん
kakera.kintsugi.moe
urushitan@kakera.kintsugi.moeJoined: 2026-03-28 |
It would be similar to how we build C with make or any other language, using a Makefile in example. In example if the project contains all dependencies in the Git repository already and does not need to download extra dependencies. The Makefile and configuration would handle all of that. Or for projects that do not require dependencies, it would be quite simple compiling. Debian uses cargo, whi...
Cargo combines the features of a package manager with a build system. You can just used the build system without touching the package manager, which is what Debian and other distros do. But I mean sure, for C there's make cmake automake ninja meson so why not make another for rust |
||
| 0 | |||
thingsiplay
lemmy.ml
thingsiplay@lemmy.mlJoined: 2026-01-09 |
Cargo combines the features of a package manager with a build system. You can just used the build system without touching the package manager, which is what Debian and other distros do. But I mean sure, for C there's make cmake automake ninja meson so why not make another for rust
Nobody is talking about making another make tool for Rust. |
||
| 0 | |||
|
ISO
lemmy.zip
ISO@lemmy.zip Joined: 2025-06-06 |
I think you don't know what you are talking about.
There is more. But I don't have the time untangle the webs of cluelessness in your comments. |
||
| 0 | |||
thingsiplay
lemmy.ml
thingsiplay@lemmy.mlJoined: 2026-01-09 |
You're clueless about how cargo itself wraps/calls rustc. And how other build systems are doing the same, including the one literally mentioned in OP. "Because having rustc as a standard tool is not there yet" is a completely meaningless nonsensical sentence. Neither is rustc lacking in any way, nor is cargo imposes any sort of hard requirement on itself. You're clueless about how cargo works. ...
[deleted]
|
||
| 1 | |||
| Post Reply |
Back to top |