Difference between revisions of "Crystal"

From ArchWiki
Jump to navigation Jump to search
(added spanish language)
(added spanish language)
(No difference)

Latest revision as of 09:40, 29 October 2018

Crystal is a statically typed, compiled programming language with Ruby inspired syntax and global type inference.


To install Crystal, install crystal. To install the latest development version install crystal-gitAUR.


To compile and run a Crystal program:

 $ crystal hello_world.cr

To compile a Crystal program to a binary:

 $ crystal build hello_world.cr

To compile an optimized binary:

 $ crystal build --release hello_world.cr

For more options see:

 $ crystal help


The dependency manager shards is also available in the repositories. To install it, install shards. To install the latest development version install shards-gitAUR.

See also