In the Rust platform switching example, a host.c file is used. Why is this necessary here?
Mostly cause we link to a static library then later finish building the executable when using the legacy linker
Rust doesn't like emiting a static library with main in it. Or at least we had trouble making it do so
As such we had to add main and supporting infra via c
Ah interesting, I wonder why rust doesn’t like to do that
It's pretty nonstandard, so I'm not too surprised.
Last updated: Jul 06 2025 at 12:14 UTC