News for hackers. Stuff that matters.
Re:Bzip2 crate switches from C to 100% rust by whytevuhuni on Wednesday June 18, 2025 @07:47AM (#44309036)
I’m genuinely curious now, what made you so convinced that it would be completely statically linked?
Re:Bzip2 crate switches from C to 100% rust by IshKebab on Wednesday June 18, 2025 @08:43AM (#44309399)
I think people often talk about Rust only supporting static linking so he probably inferred that it couldn't dynamically link with anything.

Also Go does produce fully static binaries on Linux and so it's at least reasonable to incorrectly guess that Rust does the same.

Definitely shouldn't be so confident though!

Re:Bzip2 crate switches from C to 100% rust by CamouflagedKiwi on Wednesday June 18, 2025 @10:20AM (#44310146)
Go may or may not do that on Linux depending what you import. If you call things from `os/user` for example, you'll get a dynamically linked binary unless you build with `-tags osusergo`. A similar case exists for `net`.
Re:Bzip2 crate switches from C to 100% rust by guappa on Wednesday June 18, 2025 @04:43PM (#44313129)
go by default links libc
Re:Bzip2 crate switches from C to 100% rust by IshKebab on Thursday June 19, 2025 @08:05AM (#44317864)
It doesn't. See the sibling comment.