2026-10-26 17:49 UTC
That’s true if you try to replicate the same program without Cargo. But that’s not what I am suggesting. If you don’t need regex and all the dependencies, then you don’t need Cargo. And this could encourage to write programs without all these dependencies. Also Cargo is deeply integrated into Rust, but Rust is not deeply integrated (speak no dependency) to Cargo. I know of all the features and why Cargo is fantastic, I love it myself.
But one has nothing to do with the other. My suggestion is for tools and code that doesn’t need these dependencies. I am not suggesting to replicate the same work or features as when doing huge applications with Cargo and dependencies. We can write programs with stdlib only, hell even without stdlib (technically, I’m not suggesting this as the new normal).
Replies (1)
-
@Ferk@lemmy.ml 2026-10-26 17:55
Ok, then we are back to what I said earlier, unlike python / c++, you are likely gonna need dependencies in rust. regex was just an example… You can manage with rustc for very basic things or for using rust in an otherwise C code, of maybe for some particular cases when compiling freestanding stuff, but you’d be in the minority. If this was a significant usecase then we would indeed have a rustc package in archlinux… in the meantime you would need to homebrew yourself a rustc aur package if you really don’t want to have cargo.