This repo provides an official way to try the Crystal programming language on Windows.
Microsoft.VisualStudio.Workload.VCTools
and Microsoft.VisualStudio.Component.VC.ATL
components.
scoop install git
scoop bucket add crystal-preview https://github.com/neatorobito/scoop-crystal
scoop install vs_2022_cpp_build_tools
. The Visual Studio Installer UI will open to display progress. If you see ERROR Exit code was 3010!
, this simply means you need to reboot. Run the same command again and reboot.scoop install crystal
Create a file called hello.cr with the editor of your choice:
puts "Hello from Windows!"
Restart your terminal and voila!
The majority of the language is available and functional on Windows with the exception of multi-threading and signals.
Keep in mind, however, that Crystal for Windows is still under development and so you may encounter some issues. Please file bugs for any issues you encounter on the Crystal repo page. For more in-depth information and the current status of the Windows port, see #5430 Coordinate porting to Windows