3 ms·
> I just don't want you to force me. Rust supports dynamic linking, and has since well before 1.0.
by kibwen 2y ago
> I just don't want you to force me.
Rust supports dynamic linking, and has since well before 1.0.
- palata 2y agoIn practice, it feels like everybody assumes that Rust is installed through Rustup and dependencies are statically linked from cargo. I have tried going the dynamic linking way, it's painful when it's not impossible.
- School-Cotton 2y agoRegardless of what "everybody assumes", you can in fact build rust binaries without using rustup or cargo. Distros do this. Yes, it's more painful for end users than just typing `cargo build`, but that's irrelevant to distro maintainers.
- palata 2y agoSome software (e.g. IDEs) will call `rustup` for some reason (yep, it happened to me and I therefore couldn't use that software). > Yes, it's more painful for end users than just typing `cargo build` Cargo is fine, I don't mind installing cargo. I just don't want my packages to be handled by my package manager. I don't want every project to ship their own custom package manager like rustup.
- glandium 2y agoThat's kind of a disingenuous take. Rust supports producing dynamically loadable libraries. It doesn't support dynamically linking arbitrary dependencies, which is what most people would understand from "Rust supports dynamic linking" in a discussion about static linking.
- kibwen 2y ago> It doesn't support dynamically linking arbitrary dependencies I don't understand why one would think this. You make it sound as though Rust only supports dynamic linking for glibc, but that's certainly not true.
- glandium 2y agoThe keyword is "arbitrary". Say you have dependencies on reqwest and clap, want to dynamically link against them? Not gonna happen. That's what people talk about most of the time for static vs. dynamic linking, at least in my circles.