roc/getting_started/other.md
2021-12-09 10:36:53 +01:00

603 B

  1. Install Rust
  2. Build roc from source
  3. Run examples with:
    # Rust
    cargo run examples/hello-rust/Hello.roc
    # Zig
    cargo run examples/hello-zig/Hello.roc
    # C
    cargo run examples/hello-world/Hello.roc
    
  4. See here for the other examples.

Tip: when programming in roc, we recommend to execute ./roc check myproject/Foo.roc before ./roc myproject/Foo.roc or ./roc build myproject/Foo.roc. ./roc check can produce clear error messages in cases where building/running may panic.