roc/crates/cli/tests/platform-switching
2025-01-08 01:51:12 -08:00
..
c-platform Merge branch 'main' into auto-snake-case 2025-01-08 01:51:12 -08:00
rust-platform Merge branch 'main' into auto-snake-case 2025-01-08 01:51:12 -08:00
web-assembly-platform Merge branch 'main' into auto-snake-case 2025-01-08 01:51:12 -08:00
zig-platform Merge branch 'main' into auto-snake-case 2025-01-08 01:51:12 -08:00
README.md move platform-switching into cli tests 2024-12-22 15:15:26 +11:00
rocLovesC.roc move platform-switching into cli tests 2024-12-22 15:15:26 +11:00
rocLovesRust.roc move platform-switching into cli tests 2024-12-22 15:15:26 +11:00
rocLovesWebAssembly.roc move platform-switching into cli tests 2024-12-22 15:15:26 +11:00
rocLovesZig.roc move platform-switching into cli tests 2024-12-22 15:15:26 +11:00

Platform switching

To run, cd into this directory and run this in your terminal:

roc --build-host --suppress-build-host-warning rocLovesC.roc

About these examples

They use a very simple platform which does nothing more than printing the string you give it.

If you want to start building your own platforms, these are some very simple example platforms to use as starting points.