Compiling and running cairo files

cargo run --bin cairo-run -- /path/to/file.cairo

If we want to run code that is gas tested:

cargo run --bin cairo-run -- /path/to/file.cairo --available-gas 200

We currently only run the main function with no arguments beside implicits.

Example

``` // Calculates fib... fn main() -> u128 { fib(1u128, 1u128, 100_u128) }

fn fib(a: u128, b: u128, n: u128) -> u128 { if n == 0 { a } else { fib(b, a + b, n - 1_u128) } } ```

Additional Information