Re:Show HN: Blades – fast static site generator written in Rust
by bacondude3 on Tuesday October 13, 2020 @12:32AM
(#24762297)
I don't know much about Rust. Can it be compiled into a standalone binary? C programs typically rely on header files and are not standalone, and Rust is (basically) C but with safeguards around memory, right?
[ Parent
| on HN ]
Re:Show HN: Blades – fast static site generator written in Rust
by scns on Tuesday October 13, 2020 @01:18AM
(#24762502)
Yes it can when you use musl instead of glibc
Re:Show HN: Blades – fast static site generator written in Rust
by bacondude3 on Tuesday October 13, 2020 @01:24AM
(#24762530)
Thanks! Where can I read more about that? I looked at musl's website, but didn't see any mention of standalone binaries on the page comparing it to glibc. [0]
[0]: https://wiki.musl-libc.org/functional-differences-from-glibc...
Re:Show HN: Blades – fast static site generator written in Rust
by cyphar on Tuesday October 13, 2020 @11:16AM
(#24766384)
This is more of a Rust quirk[1] than a glibc/musl thing. Glibc can be used statically (though it's not really recommended -- hence why Rust doesn't support it and requires you to use musl instead).
[1]: https://doc.rust-lang.org/edition-guide/rust-2018/platform-a...
Re:Show HN: Blades – fast static site generator written in Rust
by saagarjha on Tuesday October 13, 2020 @01:40AM
(#24762608)
This page mentions it: https://www.musl-libc.org/intro.html