Skip to content

Commit

Permalink
Update Cairo
Browse files Browse the repository at this point in the history
  • Loading branch information
maciektr committed Sep 9, 2024
1 parent d892c53 commit a71e02d
Show file tree
Hide file tree
Showing 28 changed files with 116 additions and 179 deletions.
139 changes: 70 additions & 69 deletions Cargo.lock

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ members = [
"resolver" = "2"

[workspace.package]
version = "2.8.0"
version = "2.8.2"
edition = "2021"

authors = ["Software Mansion <[email protected]>"]
Expand All @@ -35,30 +35,30 @@ anyhow = "1"
assert_fs = "1"
async-trait = "0.1"
axum = { version = "0.6", features = ["http2"] }
cairo-lang-casm = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-compiler = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-debug = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-defs = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-diagnostics = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-doc = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-filesystem = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-formatter = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-language-server = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-lowering = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-parser = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-project = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-runner = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-semantic = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-sierra = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-sierra-generator = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-sierra-to-casm = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-sierra-type-size = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-starknet = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-starknet-classes = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-syntax = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-test-plugin = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-test-runner = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820" }
cairo-lang-utils = { git = "https://github.com/starkware-libs/cairo", rev = "d3628c337e20fdd3753b89c8dc59fefc2f406820", features = ["env_logger"] }
cairo-lang-casm = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-compiler = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-debug = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-defs = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-diagnostics = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-doc = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-filesystem = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-formatter = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-language-server = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-lowering = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-parser = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-project = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-runner = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-semantic = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-sierra = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-sierra-generator = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-sierra-to-casm = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-sierra-type-size = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-starknet = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-starknet-classes = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-syntax = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-test-plugin = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-test-runner = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97" }
cairo-lang-utils = { git = "https://github.com/starkware-libs/cairo", rev = "1eb938a901d448a44e868b9e930a828d16db9d97", features = ["env_logger"] }
camino = { version = "1", features = ["serde1"] }
cargo_metadata = ">=0.18"
clap = { version = "4", features = ["derive", "env", "string"] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Circle struct with radius field


Fully qualified path: `hello_world::Circle`

## Members
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Implementation of the Shape trait for Circle


Fully qualified path: `hello_world::CircleShape`

```rust
Expand All @@ -15,7 +14,6 @@ impl CircleShape of Shape<Circle>

Shape constant


Fully qualified path: `hello_world::CircleShape::SHAPE_CONST`

```rust
Expand All @@ -29,7 +27,6 @@ const SHAPE_CONST: felt252 = 'xyz';

Implementation of the area method for Circle


Fully qualified path: `hello_world::CircleShape::area`

```rust
Expand All @@ -43,7 +40,6 @@ fn area(self: Circle) -> u32

Type alias for a pair of circles


Fully qualified path: `hello_world::CircleShape::ShapePair`

```rust
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Color enum with Red, Green, and Blue variants


Fully qualified path: `hello_world::Color`

## Variants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

FOO constant with value 42


Fully qualified path: `hello_world::FOO`

```rust
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Pair type alias for a tuple of two u32 values


Fully qualified path: `hello_world::Pair`

```rust
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Shape trait for objects that have an area


Fully qualified path: `hello_world::Shape`

```rust
Expand All @@ -15,7 +14,6 @@ trait Shape<T>

Constant for the shape type


Fully qualified path: `hello_world::Shape::SHAPE_CONST`


Expand All @@ -25,7 +23,6 @@ Fully qualified path: `hello_world::Shape::SHAPE_CONST`

Calculate the area of the shape


Fully qualified path: `Shape::area`

```rust
Expand All @@ -39,7 +36,6 @@ fn area(self: T) -> u32

Type alias for a pair of shapes


Fully qualified path: `hello_world::Shape::ShapePair`


Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# fib

Calculate the nth Fibonacci number

# Arguments
* `n` - The index of the Fibonacci number to calculate

Calculate the nth Fibonacci number # Arguments * `n` - The index of the Fibonacci number to calculate

Fully qualified path: `hello_world::fib`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Main function that calculates the 16th Fibonacci number


Fully qualified path: `hello_world::main`

```rust
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# it_works

Really
works.


Fully qualified path: `hello_world::tests::it_works`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Tests module


Fully qualified path: `hello_world::tests`

## Free functions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Main function that cairo runs as a binary entrypoint.


Fully qualified path: `hello_world_sub_package::main`

```rust
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# test

Function that prints "test" to stdout with endline.
Can invoke it like that:
```cairo
fn main() {
test();
}
```

Function that prints "test" to stdout with endline. Can invoke it like that: ```cairo fn main() { test(); } ```

Fully qualified path: `hello_world_sub_package::test`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Main function that cairo runs as a binary entrypoint.


Fully qualified path: `hello_world_sub_package::main`

```rust
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
# test

Function that prints "test" to stdout with endline.
Can invoke it like that:
```cairo
fn main() {
test();
}
```
This is a under feature attribute comment.

Function that prints "test" to stdout with endline. Can invoke it like that: ```cairo fn main() { test(); } ```

Fully qualified path: `hello_world_sub_package::test`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Circle struct with radius field


Fully qualified path: `hello_world::Circle`

## Members
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Implementation of the Shape trait for Circle


Fully qualified path: `hello_world::CircleShape`

```rust
Expand All @@ -15,7 +14,6 @@ impl CircleShape of Shape<Circle>

Shape constant


Fully qualified path: `hello_world::CircleShape::SHAPE_CONST`

```rust
Expand All @@ -29,7 +27,6 @@ const SHAPE_CONST: felt252 = 'xyz';

Implementation of the area method for Circle


Fully qualified path: `hello_world::CircleShape::area`

```rust
Expand All @@ -43,7 +40,6 @@ fn area(self: Circle) -> u32

Type alias for a pair of circles


Fully qualified path: `hello_world::CircleShape::ShapePair`

```rust
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Color enum with Red, Green, and Blue variants


Fully qualified path: `hello_world::Color`

## Variants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

FOO constant with value 42


Fully qualified path: `hello_world::FOO`

```rust
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Pair type alias for a tuple of two u32 values


Fully qualified path: `hello_world::Pair`

```rust
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Shape trait for objects that have an area


Fully qualified path: `hello_world::Shape`

```rust
Expand All @@ -15,7 +14,6 @@ trait Shape<T>

Constant for the shape type


Fully qualified path: `hello_world::Shape::SHAPE_CONST`


Expand All @@ -25,7 +23,6 @@ Fully qualified path: `hello_world::Shape::SHAPE_CONST`

Calculate the area of the shape


Fully qualified path: `Shape::area`

```rust
Expand All @@ -39,7 +36,6 @@ fn area(self: T) -> u32

Type alias for a pair of shapes


Fully qualified path: `hello_world::Shape::ShapePair`


Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# fib

Calculate the nth Fibonacci number

# Arguments
* `n` - The index of the Fibonacci number to calculate

Calculate the nth Fibonacci number # Arguments * `n` - The index of the Fibonacci number to calculate

Fully qualified path: `hello_world::fib`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Main function that calculates the 16th Fibonacci number


Fully qualified path: `hello_world::main`

```rust
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# test

Function that prints "test" to stdout with endline.
Can invoke it like that:
```cairo
fn main() {
test();
}
```

Function that prints "test" to stdout with endline. Can invoke it like that: ```cairo fn main() { test(); } ```

Fully qualified path: `hello_world::test`

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# it_works

Really
works.


Fully qualified path: `hello_world::tests::it_works`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Tests module


Fully qualified path: `hello_world::tests`

## Free functions
Expand Down
Loading

0 comments on commit a71e02d

Please sign in to comment.