I changed something in lib.rs
in basic-cli
and was very pleasantly surprised to see that I could rebuild the platform with the only the roc command. How does this work?
the short answer is that it's a brittle stopgap solution right now :sweat_smile:
Hahaha nice
we have a bunch of code that detects (via guessing by looking at what's in the directory) what language the host is written in, and then also guessing what command to run to rebuild it
what I'd like to move toward is having the host be in charge of rebuilding - so instead of running roc build
on basic-cli
, when you run cargo build
on basic-cli
that also rebuilds the roc code in the platform (using build.rs
probably)
a nice thing about switching to that setup is that it means applications built on platforms in local directories will run faster, because you won't have to wait for the Rebuilding platform...
step every time anymore
Nice, that does sound like a good move
Last updated: Jul 06 2025 at 12:14 UTC