Skip to content

Commit

Permalink
Allow testing without gas calculation (#1211)
Browse files Browse the repository at this point in the history
- **Update Cairo**
- **Allow testing without gas calculation**
  • Loading branch information
maciektr authored Mar 20, 2024
1 parent 8dd0e76 commit d7e626d
Show file tree
Hide file tree
Showing 6 changed files with 133 additions and 53 deletions.
61 changes: 32 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 22 additions & 22 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,28 @@ assert_fs = "1"
async-trait = "0.1"
axum = { version = "0.6", features = ["http2"] }
cairo-felt = "0.9.1"
cairo-lang-casm = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-compiler = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-debug = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-defs = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-diagnostics = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-filesystem = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-formatter = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-language-server = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-lowering = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-project = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-runner = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-semantic = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-sierra = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-sierra-generator = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-sierra-to-casm = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-sierra-type-size = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-starknet = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-starknet-classes = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-syntax = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-test-plugin = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-test-runner = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a" }
cairo-lang-utils = { git = "https://github.com/starkware-libs/cairo", rev = "0e51256f50ce6e20ba746f7d1dcfea3aaaacb86a", features = ["env_logger"] }
cairo-lang-casm = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-compiler = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-debug = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-defs = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-diagnostics = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-filesystem = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-formatter = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-language-server = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-lowering = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-project = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-runner = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-semantic = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-sierra = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-sierra-generator = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-sierra-to-casm = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-sierra-type-size = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-starknet = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-starknet-classes = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-syntax = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-test-plugin = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-test-runner = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe" }
cairo-lang-utils = { git = "https://github.com/starkware-libs/cairo", rev = "53db45434c501e56ac84f1b27fac311183f14dbe", features = ["env_logger"] }
camino = { version = "1", features = ["serde1"] }
cargo_metadata = ">=0.18"
clap = { version = "4", features = ["derive", "env", "string"] }
Expand Down
2 changes: 1 addition & 1 deletion extensions/scarb-cairo-run/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ authors.workspace = true

[dependencies]
anyhow.workspace = true
assert_fs.workspace = true
cairo-felt.workspace = true
cairo-lang-runner.workspace = true
cairo-lang-sierra.workspace = true
Expand All @@ -25,3 +24,4 @@ thiserror.workspace = true
[dev-dependencies]
scarb-test-support = { path = "../../utils/scarb-test-support" }
snapbox.workspace = true
assert_fs.workspace = true
3 changes: 3 additions & 0 deletions extensions/scarb-cairo-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ serde_json.workspace = true
[dev-dependencies]
snapbox.workspace = true
test-for-each-example = { path = "../../utils/test-for-each-example" }
scarb-test-support = { path = "../../utils/scarb-test-support" }
assert_fs.workspace = true
indoc.workspace = true
Loading

0 comments on commit d7e626d

Please sign in to comment.